コード例 #1
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("UpdateAgentLanguage", "POST");
     m_service.RemoveStreamHandler("UpdateAgentInformation", "POST");
     m_service.RemoveStreamHandler("AvatarPickerSearch", "GET");
     m_service.RemoveStreamHandler("HomeLocation", "POST");
     m_service.RemoveStreamHandler("TeleportLocation", "POST");
 }
コード例 #2
0
 public void DeregisterCaps()
 {
     if (m_service == null)
     {
         return; //If display names aren't enabled
     }
     m_service.RemoveStreamHandler("SetDisplayName", "POST");
     m_service.RemoveStreamHandler("GetDisplayNames", "GET");
 }
コード例 #3
0
            /// <summary>
            ///
            /// </summary>
            /// <param name="data"></param>
            /// <param name="path"></param>
            /// <param name="param"></param>
            /// <returns></returns>
            public byte[] uploaderCaps(string path, Stream request,
                                       OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                handlerUpLoad = OnUpLoad;
                UUID newAssetID;

                handlerUpLoad(HttpServerHandlerHelpers.ReadFully(request), out newAssetID);

                OSDMap map = new OSDMap();

                map["new_asset"] = newAssetID.ToString();
                map["item_id"]   = UUID.Zero;
                map["state"]     = "complete";
                clientCaps.RemoveStreamHandler(uploadMethod, "POST", uploaderPath);

                return(OSDParser.SerializeLLSDXmlBytes(map));
            }
コード例 #4
0
ファイル: InventoryCAPS.cs プロジェクト: kow/Aurora-Sim
            /// <summary>
            ///
            /// </summary>
            /// <param name="data"></param>
            /// <param name="path"></param>
            /// <param name="param"></param>
            /// <returns></returns>
            public string uploaderCaps(byte[] data, string path, string param)
            {
                UUID   inv = inventoryItemID;
                string res = String.Empty;
                OSDMap map = new OSDMap();

                map["new_asset"]          = newAssetID.ToString();
                map["new_inventory_item"] = inv;
                map["state"] = "complete";
                res          = OSDParser.SerializeLLSDXmlString(map);

                clientCaps.RemoveStreamHandler(uploadMethod, "POST", uploaderPath);

                m_invCaps.UploadCompleteHandler(m_assetName, m_assetDes, newAssetID, inv, parentFolder, data, m_invType, m_assetType);

                return(res);
            }
コード例 #5
0
ファイル: AssetCAPS.cs プロジェクト: satlanski2/Aurora-Sim
            /// <summary>
            ///
            /// </summary>
            /// <param name="data"></param>
            /// <param name="path"></param>
            /// <param name="param"></param>
            /// <returns></returns>
            public string uploaderCaps(byte[] data, string path, string param)
            {
                handlerUpLoad = OnUpLoad;
                UUID newAssetID;

                handlerUpLoad(data, out newAssetID);

                string res = String.Empty;
                OSDMap map = new OSDMap();

                map["new_asset"] = newAssetID.ToString();
                map["item_id"]   = UUID.Zero;
                map["state"]     = "complete";
                res = OSDParser.SerializeLLSDXmlString(map);
                clientCaps.RemoveStreamHandler(uploadMethod, "POST", uploaderPath);

                return(res);
            }
コード例 #6
0
            ///<summary>
            ///</summary>
            ///<param name = "data"></param>
            ///<param name = "path"></param>
            ///<param name = "param"></param>
            ///<returns></returns>
            public byte[] uploaderCaps(string path, Stream request,
                                       OSHttpRequest httpRequest, OSHttpResponse httpResponse)
            {
                UUID inv = inventoryItemID;

                byte[] data = HttpServerHandlerHelpers.ReadFully(request);
                clientCaps.RemoveStreamHandler(uploadMethod, "POST", uploaderPath);

                newAssetID = m_invCaps.UploadCompleteHandler(m_assetName, m_assetDes, newAssetID, inv, parentFolder,
                                                             data, m_invType, m_assetType, m_everyone_mask, m_group_mask,
                                                             m_next_owner_mask);

                OSDMap map = new OSDMap();

                map["new_asset"]          = newAssetID.ToString();
                map["new_inventory_item"] = inv;
                map["state"] = "complete";

                return(OSDParser.SerializeLLSDXmlBytes(map));
            }
コード例 #7
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("AvatarPickerSearch", "GET");
     m_service.RemoveStreamHandler("HomeLocation", "POST");
     m_service.RemoveStreamHandler("TeleportLocation", "POST");
 }
コード例 #8
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("ProductInfoRequest", "GET");
 }
コード例 #9
0
ファイル: UserStatsCAPS.cs プロジェクト: nhede/WhiteCore-Dev
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("ViewerStats", "POST");
 }
コード例 #10
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("GroupMemberData", "POST");
 }
コード例 #11
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("AgentPreferences", "POST");
     m_service.RemoveStreamHandler("UpdateAgentLanguage", "POST");
     m_service.RemoveStreamHandler("UpdateAgentInformation", "POST");
 }
コード例 #12
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("ChatSessionRequest", "POST");
 }
コード例 #13
0
ファイル: MapCAPS.cs プロジェクト: SignpostMarv/Aurora-Sim
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("MapLayer", "POST");
     m_mapLayer.Clear();
 }
コード例 #14
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("AgentExperiences", "GET");
 }
コード例 #15
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("GetTexture", "GET");
     m_service.RemoveStreamHandler("UploadBakedTexture", "POST");
     m_service.RemoveStreamHandler("GetMesh", "GET");
 }
コード例 #16
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("RetrieveNavMeshSrc", "GET");
 }
コード例 #17
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("ExperiencePreferences", "POST");
     m_service.RemoveStreamHandler("FindExperienceByName", "POST");
     m_service.RemoveStreamHandler("GetExperiences", "POST");
 }
コード例 #18
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("GroupAPIv1", "GET");
     m_service.RemoveStreamHandler("GroupAPIv1", "POST");
 }
コード例 #19
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("SimulatorFeatures", "GET");
 }
コード例 #20
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("MeshUploadFlag", "GET");
 }
コード例 #21
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("EventQueueGet", "POST", m_capsPath);
     MainServer.Instance.RemovePollServiceHTTPHandler("POST", m_capsPath);
 }
コード例 #22
0
 public void DeregisterCaps()
 {
     m_service.RemoveStreamHandler("SetDisplayName", "POST");
     m_service.RemoveStreamHandler("GetDisplayNames", "GET");
 }