Exemplo n.º 1
0
        private Hashtable HandleSimulatorFeaturesRequest(Hashtable mDhttpMethod, UUID agentID)
        {
            //            m_log.DebugFormat("[SIMULATOR FEATURES MODULE]: SimulatorFeatures request");

            OSDMap copy = DeepCopy();

            // Let's add the agentID to the destination guide, if it is expecting that.
            if (copy.ContainsKey("OpenSimExtras") && ((OSDMap)(copy["OpenSimExtras"])).ContainsKey("destination-guide-url"))
            {
                ((OSDMap)copy["OpenSimExtras"])["destination-guide-url"] = Replace(((OSDMap)copy["OpenSimExtras"])["destination-guide-url"], "[USERID]", agentID.ToString());
            }

            SimulatorFeaturesRequestDelegate handlerOnSimulatorFeaturesRequest = OnSimulatorFeaturesRequest;

            if (handlerOnSimulatorFeaturesRequest != null)
            {
                handlerOnSimulatorFeaturesRequest(agentID, ref copy);
            }

            //Send back data
            Hashtable responsedata = new Hashtable();

            responsedata["int_response_code"]   = 200;
            responsedata["content_type"]        = "text/plain";
            responsedata["str_response_string"] = OSDParser.SerializeLLSDXmlString(copy);

            return(responsedata);
        }
Exemplo n.º 2
0
        private Hashtable HandleSimulatorFeaturesRequest(Hashtable mDhttpMethod, UUID agentID)
        {
            if (m_log.IsDebugEnabled)
            {
                m_log.DebugFormat("{0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
            }

            OSDMap copy = DeepCopy();

            SimulatorFeaturesRequestDelegate handlerOnSimulatorFeaturesRequest = OnSimulatorFeaturesRequest;

            if (handlerOnSimulatorFeaturesRequest != null)
            {
                handlerOnSimulatorFeaturesRequest(agentID, ref copy);
            }

            //Send back data
            Hashtable responsedata = new Hashtable();

            responsedata["int_response_code"] = 200;
            responsedata["content_type"]      = "text/plain";
            responsedata["keepalive"]         = false;

            responsedata["str_response_string"] = OSDParser.SerializeLLSDXmlString(copy);

            return(responsedata);
        }
Exemplo n.º 3
0
        private Hashtable HandleSimulatorFeaturesRequest(Hashtable mDhttpMethod, UUID agentID)
        {
//            m_log.DebugFormat("[SIMULATOR FEATURES MODULE]: SimulatorFeatures request");

            OSDMap copy = DeepCopy();

            SimulatorFeaturesRequestDelegate handlerOnSimulatorFeaturesRequest = OnSimulatorFeaturesRequest;

            if (handlerOnSimulatorFeaturesRequest != null)
            {
                handlerOnSimulatorFeaturesRequest(agentID, ref copy);
            }

            //Send back data
            Hashtable responsedata = new Hashtable();

            responsedata["int_response_code"] = 200;
            responsedata["content_type"]      = "text/plain";
            responsedata["keepalive"]         = false;

            responsedata["str_response_string"] = OSDParser.SerializeLLSDXmlString(copy);

            return(responsedata);
        }