Embodiment
Treatment system, method and device and a kind of Aggregation Proxy AP of a kind of request message that the embodiment of the invention is provided below in conjunction with accompanying drawing are described in detail.
As shown in Figure 1, be a kind of request message treatment system that the embodiment of the invention provides, this system comprises: XD (XCAP Dispatcher, XCAP Request dispatcher) and Aggregation Proxy AP;
Described XCAP Request dispatcher XD is used to receive the request message that the XML document administrative client sends; And detect the territory ownership of the described XML document administrative client that sends a request message according to the request message of described reception, and according to the territory of described detection ownership result, with described request message to the corresponding net distribution of described XML document administrative client home domain.
Described request message can be based on the request message of http protocol, can comprise XCAP request message and search request message.
In a concrete example, when described request message is the XCAP request message.Described XCAP Request dispatcher detects the territory ownership of the XML document administrative client of described transmission XCAP request message according to the user ID of carrying in the described XCAP request message, wherein, for example: obtain the X-3GPP-Intended-Identity header field content in the XCAP request message, this header field content is for initiating the user ID of XCAP request message; When the X-3GPP-Intended-Identity header field does not exist, obtain XUI among the XCAP request message Request-URI as user ID.
In a concrete example, if according to above-mentioned detection determine described XCAP request message for this territory network XDMC sent, then this XCAP request message is asked allocation algorithm according to polling algorithm or other, send among the corresponding Aggregation Proxy AP in this territory network and handle; The corresponding Aggregation Proxy AP of described this territory network comprises at least one Aggregation Proxy AP, and described XCAP Request dispatcher XD is distributed to one of them Aggregation Proxy AP according to the described request allocation algorithm with described XCAP request; For example, when the described request allocation algorithm adopts polling algorithm, described XCAP Request dispatcher XD gives AP1, AP2, APn successively according to the arrival order of described XCAP request, up to all Aggregation Proxy AP all poll once after, begin the circulation distribution from AP1 again.
In the concrete example of another one, if described XCAP request message be the foreign lands network XDMC sent, then this XCAP request message is sent to the XCAP Request dispatcher of this foreign lands network, and issue the corresponding AP in these foreign lands by the XCAP Request dispatcher of described foreign lands network and handle; If perhaps described XCAP request message be the foreign lands network XDMC sent, then directly this XCAP request message is sent to the corresponding AP of this foreign lands network.Concrete example can for, if described XCAP request message be the foreign lands network XDMC sent, then this XCAP request message is sent to the XCAP Request dispatcher of this foreign lands network, by the XCAP Request dispatcher of described foreign lands network according to corresponding allocation algorithm, polling algorithm for example is to corresponding at least one Aggregation Proxy AP of this foreign lands network.Perhaps, if described XCAP request message be the foreign lands network XDMC sent, then directly this XCAP request message is sent to the corresponding Aggregation Proxy AP of this foreign lands network, when if this foreign lands network has a plurality of Aggregation Proxy AP can receive the XCAP request message, then according to corresponding allocation algorithm, for example polling algorithm is distributed at least one Aggregation Proxy AP of these foreign lands with this XCAP request.
Described Aggregation Proxy AP, be used for the XCAP request message of XCAP Request dispatcher distribution is carried out authentication processing, and with described XCAP request message through authentication processing, route to the server of processes said request message, the server of described processes said request message can be xml document management server, search agent, it is concrete when described request message is the XCAP request message, then route to xml document management server, when described request message is search request message, then route to search agent.Need to prove that for the XML document administrative client XDMC that sends described XCAP request message, described Aggregation Proxy AP both can be the Aggregation Proxy AP of this territory network, also can be the Aggregation Proxy AP of foreign lands network.
Be that XCAP message is that example describes with described request message more than, when described request message was search request message, concrete processing mode was the same with each embodiment of foregoing description, repeats no more herein.
In above argumentation is that described request message treatment system can also comprise xml document management server on each example basis of XCAP request message with described request message.
Described xml document management server is used for the XCAP request message of described this territory network that receives is handled.Described processing comprises, resolves described XCAP request message; According to described analysis result, described XML document is operated accordingly.Described operation can comprise one of following manner: to the management of XML document, XML document changed notice,, revises the deletion of XML file, and other editors.
In addition, the described request message in above argumentation is that described request message treatment system can also comprise search agent on each example basis of search request message.
Described search agent receives described search request message from described Aggregation Proxy AP, described search request message is sent to xml document management server carries out content search, receive the Search Results that described xml document management server returns, described Search Results is returned to described XML document administrative client through described Aggregation Proxy AP.
On the basis of above-mentioned all example, among the described request message treatment system embodiment, described system also comprises XML document administrative client XDMC, described XML document administrative client XDMC, be used for carrying out information interaction by described XCAP request message and described xml document management server, perhaps mutual by the search request message and the search agent of search; This XDMC can be server entity for terminal equipment.Described XML document administrative client XDMC can comprise wireless communication terminal, PDA, plain old telephone terminal, computer terminal etc.
XCAP Request dispatcher among each message handling system embodiment described above can be following foundation each concrete XCAP Request dispatcher embodiment as described in Figure 2.
As shown in Figure 2, be the specific embodiment of XCAP Request dispatcher among above each request message treatment system embodiment, described XCAP Request dispatcher comprises:
Request receiving element 201 is used to receive the request message that the XML document administrative client sends;
Territory ownership detecting unit 202 is used for the territory ownership according to the described XML document administrative client that sends a request message of described request message detection;
Request Dispatching Unit 203 is used for according to the territory of described detection ownership result, with described request message to the corresponding net distribution of described XML document administrative client home domain so that corresponding network authenticates described request message.Concrete can be to be distributed to this territory Aggregation Proxy AP if testing result belongs to this territory network user; If belong to the foreign lands network user then be transmitted to the foreign lands network; The mode of transmitting does not limit.
Need to prove that described request message can comprise the XCAP request message, or search request message.
In another embodiment, ownership detecting unit 202 in described territory can comprise: sign is obtained subelement 2021 and label detection subelement 2022.
Described sign is obtained the user ID that subelement 2021 is used for obtaining described request message, specifically can comprise: obtain the X-3GPP-Intended-Identity header field content in the request message, this header field content is the user ID of initial request messages; When the X-3GPP-Intended-Identity header field does not exist, obtain XUI among the request message Request-URI as user ID;
Described label detection subelement 2022 is used for the user ID according to described request message, detects the territory ownership of the described XML document administrative client that sends a request message, and provides the territory ownership result of detection.For example, can check in this territory customer data base whether this user ID belongs to this territory network for according to the described user ID that gets access to.
In another embodiment, request Dispatching Unit 203 can comprise:
Allocation algorithm obtains subelement 2031, is used to obtain the request allocation algorithm that sends described request message;
Request distribution subelement 2302 is used for according to the described request allocation algorithm, described request message is sent to the corresponding Aggregation Proxy of described this territory network, so that this territory network carries out authentication processing to described request message.
Wherein, the corresponding Aggregation Proxy AP of described this territory network comprises at least one Aggregation Proxy AP.Described request allocation algorithm can be polling algorithm or other algorithms.For example: when the described request allocation algorithm adopts polling algorithm, the described request transmitting element according to the arrival order of described request message give successively AP1, AP2, APn up to all AP all poll once after, begin the circulation distribution from AP1 again.
And in another embodiment, described request Dispatching Unit 203, can comprise: address search subelement 2303, belong to the foreign lands network if be used for the territory ownership result of described detection for request message, will search the server address information of the processes said request message of the foreign lands network that described request message belonged to according to user ID entrained in the described request message; For example: can carry out the DNS inquiry according to the entrained user ID of described request message, and transmit described request message according to the server address information or the identification information of the foreign lands processes said request message that inquires; Perhaps, inquire about in the list of server addresses of the processes said request message of in this territory network, storing according to the entrained user ID of described request message, and transmit described request message according to the server address information of the processes said request message that inquires.
Request distribution subelement 2304 is used for the address information according to the server of described processes said request message of searching, and sends described request message.
Need to prove that the server of described processes said request message can be understood as the XCAP Request dispatcher or the foreign lands Aggregation Proxy AP of foreign lands.
On the basis of this embodiment, described described request Dispatching Unit 203 can comprise: allocation algorithm obtains subelement 2031, is used to obtain the request allocation algorithm that sends described request message; Request distribution subelement 2032 sends to the corresponding Aggregation Proxy of described foreign lands network with described request message, so that described Aggregation Proxy carries out authentication processing to described request message according to the described request allocation algorithm.
In another concrete example, if territory ownership detecting unit 202 detects the described XML document administrative client that sends a request message and belongs to foreign lands, be that described request message is that the XDMC of foreign lands network sends, then request distribution subelement 2032 sends to the XCAP Request dispatcher of this foreign lands network with this request message, and issues the corresponding AP in these foreign lands by the XCAP Request dispatcher of described foreign lands network and handle; Perhaps directly this request message is sent to the Aggregation Proxy AP of this foreign lands network.In the concrete example can also for, described request distribution subelement 2032 sends to this request message the XCAP Request dispatcher of this foreign lands network, wherein, the XCAP Request dispatcher of corresponding AP in described foreign lands and foreign lands network can be interpreted as outer domain server.According to corresponding allocation algorithm, polling algorithm for example is to corresponding at least one Aggregation Proxy AP of this foreign lands network by the XCAP Request dispatcher of described foreign lands network.Perhaps, directly this XCAP request sends to the corresponding Aggregation Proxy AP of this foreign lands network, if when this foreign lands network has a plurality of AP can receive the XCAP request, then according to corresponding allocation algorithm, for example polling algorithm is distributed at least one Aggregation Proxy AP of these foreign lands with this XCAP request.
Need to prove, in the execution mode of above XCAP Request dispatcher, the division of each functional module only illustrates, can be as required in the practical application, facility such as the realization of the configuration requirement of corresponding hardware or software is considered, and the above-mentioned functions distribution is finished by different functional modules, the internal structure that is about to described XCAP Request dispatcher is divided into different functional modules, to finish all or part of function described above.And in the practical application, corresponding functional modules in the present embodiment can be to be realized by relevant hardware, also can carry out corresponding software by relevant hardware finishes, for example, aforesaid request receiving element 201, territory ownership detecting unit 202 can be for having the hardware of carrying out aforementioned functional, such as, receiver, and other the general receiving systems that can carry out aforementioned functional, territory ownership detecting unit 202 can be for carrying out the par-ticular processor of aforementioned functional, detector, thereby also can be to carry out the general processor that the corresponding computer program is finished aforementioned functional, perhaps other hardware devices.
As shown in Figure 3, Aggregation Proxy AP described in a kind of request message treatment system that provides for the embodiment of the invention, this Aggregation Proxy AP comprises: authentication ' unit 301 and routing unit 302;
Described authentication ' unit 301, be used for the request message that is sent by the XML document administrative client that comes from the XCAP Request dispatcher is carried out authentication processing, the XML document administrative client in described XML document administrative client territory under described XCAP Request dispatcher is confirmed as this Aggregation Proxy AP;
Described routing unit 302 is used for described request message through authentication processing is routed to the server of processes said request message.Wherein, described server to processes said request message comprises corresponding xml document management server or search agent.
As shown in Figure 4, the processing method of a kind of request message that provides for the embodiment of the invention, this method comprises:
The 401:XCAP Request dispatcher receives the request message that the XML document administrative client sends;
The 402:XCAP Request dispatcher is according to the territory ownership of the XML document administrative client of the described transmission described request of described request message detection message;
The 403:XCAP Request dispatcher is according to the territory of described detection ownership result, with described request message to the corresponding net distribution of described XML document administrative client home domain so that corresponding network authenticates described request message.
As shown in Figure 5, the processing method of the another kind of request message that provides for the embodiment of the invention, this example example is that the XCAP request message is that example describes with this request message, this method comprises:
Need to prove, below among each method embodiment, except specified otherwise, the handling process of search request message is the same with the handling process of XCAP request message.
The 501:XCAP Request dispatcher receives the XCAP request message that the XML document administrative client sends;
The 502:XCAP Request dispatcher detects the territory ownership of the XML document administrative client of described transmission XCAP request message according to described XCAP request message;
Obtain the user ID of carrying in the XCAP request message, specifically can comprise: obtain the X-3GPP-Intended-Identity header field content in the XCAP request message, this header field content is for initiating the user ID of XCAP request message; When the X-3GPP-Intended-Identity header field does not exist, obtain XUI among the XCAP request message Request-URI as user ID;
Determine the territory ownership of the XML document administrative client of initiation XCAP request message according to user ID, for example, can be for according to the described user ID that gets access to, check in this territory customer data base whether this user ID is this territory network user, if then be defined as the XCAP request message that this territory network sends;
503: the testing result according to 502, determine if the XCAP request message that this territory network sends then is distributed to described request the corresponding Aggregation Proxy AP of this territory network processes said request message; If be the XCAP request message that the foreign lands network sends, then described request message is transmitted to corresponding foreign lands network, the mode of forwarding does not limit.
In a specific embodiment, as shown in Figure 6, if the XCAP request message that this territory network sends, then described request is distributed to the corresponding Aggregation Proxy AP of this territory network and handles described XCAP request message and may further include:
601: obtain the request allocation algorithm that sends described XCAP request message;
602:, described request message is sent to the corresponding Aggregation Proxy AP of described this territory network, so that this territory network carries out authentication processing to described request message according to the described request allocation algorithm.
Concrete can comprise: described Aggregation Proxy AP carries out authentication processing to the request message of the XML document administrative client transmission of this territory network; With described request message through authentication processing, route is given the corresponding xml document management server in this territory.So that described xml document management server is handled the described XCAP request that receives.Concrete processing mode is the same with describing in the aforementioned system embodiment.
Need to prove,, then described search request message is sent to search agent according to described request allocation algorithm if described request message is a search request message.So that being sent to xml document management server with described searching request, described search agent carries out content search; Receive the Search Results that described search agent returns, described Search Results is returned to described XML document administrative client.
By the described request allocation algorithm described request message based on XCAP is distributed at least one Aggregation Proxy AP and carry out authentication processing, make the load balancing of this territory each Aggregation Proxy AP, improve the ability of handling the XCAP request greatly, guaranteed the stability of whole system performance.
In another specific embodiment, as shown in Figure 7, if the XCAP request message that the foreign lands network sends then is sent to described request message the Aggregation Proxy of this foreign lands network or the XCAP Request dispatcher of this foreign lands network; This method can further include:
701:, will search the server address information of the processes said request message of the foreign lands network that described request message belonged to according to user ID entrained in the described request message if ownership result in the territory of described detection belongs to the foreign lands network for described XCAP request message; For example: carry out DNS inquiry according to described user ID, perhaps, inquire about in the list of server addresses of the processes said request message of in this territory network, storing according to described user ID.
702:, send described request message according to the server info of described processes said request message of searching.Wherein, describedly sending to the Aggregation Proxy AP that corresponding foreign lands network can be the foreign lands network, can also be the XCAP Request dispatcher XD of foreign lands network.
In the object lesson can for: if described XCAP request message be the foreign lands network XDMC sent, then this XCAP request message is sent to the XCAP Request dispatcher of this foreign lands network, by the XCAP Request dispatcher of described foreign lands network according to corresponding allocation algorithm, polling algorithm for example is to corresponding at least one Aggregation Proxy AP of this foreign lands network.Perhaps, if described XCAP request message be the foreign lands network XDMC sent, then directly this XCAP request message is sent to the corresponding Aggregation Proxy AP of this foreign lands network, when if this foreign lands network has a plurality of Aggregation Proxy AP can receive the XCAP request message, then according to corresponding allocation algorithm, for example polling algorithm is distributed at least one Aggregation Proxy AP of these foreign lands with this XCAP request message.By the described request allocation algorithm described XCAP request message is distributed at least one Aggregation Proxy AP and carry out authentication processing, make the load balancing of foreign lands each Aggregation Proxy AP, improve the ability of handling the XCAP request greatly, guaranteed the stability of whole system performance.
Further can comprise on the basis of this object lesson: if described request message is the XCAP request message, then described Aggregation Proxy AP carries out authentication processing to the request message of the XML document administrative client transmission of this territory network; With described request message through authentication processing, route is given the corresponding xml document management server in these foreign lands.So that described xml document management server is handled the described XCAP request message that receives.Concrete processing mode is the same with describing in the aforementioned system embodiment.
If described request message is a search request message, then described search request message is sent to search agent according to described request allocation algorithm.So that being sent to xml document management server with described searching request, described search agent carries out content search; Receive the Search Results that described search agent returns, described Search Results is returned to described XML document administrative client.
A kind of request message treatment system, method and the device that the embodiment of the invention provides and a kind of Aggregation Proxy AP receive the request message that the XML document administrative client sends by described XCAP Request dispatcher; And detect the territory ownership of the described XML document administrative client that sends a request message according to the request message of described reception, and according to the territory of described detection ownership result, with described request message to the corresponding net distribution of described XML document administrative client home domain; Described at least one Aggregation Proxy AP carries out authentication processing to this territory network requests message of described XCAP Request dispatcher distribution, and with described request message through authentication processing, routes to the server of processes said request message; If described request message is the XCAP request message, then routes to corresponding xml document management server and handle; If search request message then routes to search agent and handles.If described request message comes from the XML document administrative client of foreign lands network, then described XCAP Request dispatcher can carry out the DNS inquiry by described user ID, perhaps the server address information of the foreign lands processes said request message of inquiry described request message in the list of server addresses of the processes said request message of the foreign lands of storing in this territory network is given the described request forwards server of the corresponding processes said request message of foreign lands network.Like this, the request message that not only can guarantee non-this territory network can not be transmitted to this territory network internal and carry out authentication processing, has improved the system load ability of Aggregation Proxy AP yet; The embodiment of the invention can also be distributed at least one Aggregation Proxy AP with the request message of described this territory network by the described request allocation algorithm and be carried out authentication processing, make the load balancing of each Aggregation Proxy AP, improve the ability of handling request message greatly, guaranteed the stability of whole system performance.
Through the above description of the embodiments, one of ordinary skill in the art will appreciate that: realize that all or part of step in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise step as above-mentioned method embodiment, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.