CN104468833B - The method and apparatus that solicited message is uniformly processed - Google Patents

The method and apparatus that solicited message is uniformly processed Download PDF

Info

Publication number
CN104468833B
CN104468833B CN201410834375.8A CN201410834375A CN104468833B CN 104468833 B CN104468833 B CN 104468833B CN 201410834375 A CN201410834375 A CN 201410834375A CN 104468833 B CN104468833 B CN 104468833B
Authority
CN
China
Prior art keywords
request
response message
parameter
function module
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410834375.8A
Other languages
Chinese (zh)
Other versions
CN104468833A (en
Inventor
陈健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410834375.8A priority Critical patent/CN104468833B/en
Publication of CN104468833A publication Critical patent/CN104468833A/en
Priority to PCT/CN2015/095466 priority patent/WO2016101753A1/en
Application granted granted Critical
Publication of CN104468833B publication Critical patent/CN104468833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides the method and apparatus that a kind of solicited message is uniformly processed, wherein, method includes:Receive the request that the function module in webpage is sent;Obtain the required parameter of request;Solicited message is judged according to the required parameter of acquisition, to obtain judging result;If it is identical request that judgment result displays, which are asked with request before, the handling result asked before from local cache reading;And handling result is sent to function module.Method and device provided by the present invention, when judgment result displays request is identical request with asking before, then from the handling result of same request before local cache reading;The pressure of the processing data of server can so be alleviated, improve the efficiency of solicited message processing.

Description

The method and apparatus that solicited message is uniformly processed
Technical field
The present invention relates to the technical fields of terminal device, and specifically, the present invention relates to the sides that solicited message is uniformly processed Method and device.
Background technology
At present, as the development of Internet technology, server can receive substantial amounts of solicited message, service has undoubtedly been aggravated Device handles the pressure of data, and the ability of server process data directly influences the usage experience of user.
Existing technology, for each request, server can be handled it, and return to corresponding handling result. In web app, it can be accomplished by AJAX (Asynchronous JavaScript And XML, Ajax) technology It is handled for different solicited messages, for example, being handled by AJAX technologies the request for obtaining data message;Pass through AJAX technologies handle the request for sending data message;The request of Jian Wenben is handled by AJAX technologies;Pass through AJAX technologies handle the request of cross-domain communication;The request responded by AJAX technologies to time delay is handled;With And the request that can only send a data message in the same time handle by AJAX technologies etc., the solicited message Type not merely include the above type, details are not described herein.In this way, it will cause for the processing data information asked Process is extremely cumbersome, has aggravated the pressure of server process data, meanwhile, also reduce the efficiency that solicited message is handled.
Therefore, it is necessary to the method and apparatus that a kind of solicited message is uniformly processed are provided, to tackle and solve foregoing phase Close technical problem.
The content of the invention
The dress that the method and solicited message being uniformly processed the embodiment provides a kind of solicited message are uniformly processed It puts, to overcome above-mentioned technical problem or to solve the above problems at least partly.
The present invention provides a kind of method that solicited message is uniformly processed, including:
Receive the request that the function module in webpage is sent;
Obtain the required parameter of the request;
The solicited message is judged according to the required parameter of acquisition, to obtain judging result;
If request described in the judgment result displays is identical request with request before, before local cache reading The handling result of request;And
The handling result is sent to the function module.
The present invention also provides the device that a kind of solicited message is uniformly processed, including:
Request receiving module, for receiving the request of the transmission of the function module in webpage;
Required parameter acquisition module, for obtaining the required parameter of the request;
Judgment module judges the solicited message for the required parameter according to acquisition, to obtain judging result;
Processing module, if being identical request for being asked described in the judgment result displays with request before, from this Ground caching reads the handling result asked before;And the handling result is sent to the function module.
In technical scheme, the solicited message is judged especially by the required parameter of acquisition, with Obtain judging result;If request described in the judgment result displays is identical request with request before, read from local cache Take the handling result asked before;The pressure of the processing data of server can so be alleviated, improve solicited message processing Efficiency.Meanwhile reduce the information content of solicited message processing, improve the development efficiency of application.Further, since reduce request The processing procedure of information, the data message amount corresponding with handling result of acquisition will also greatly reduce, and reduce data message The possibility of error adds the stability of application, decreases the cost for safeguarding data information security.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description It obtains substantially or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 a are the flow diagram for the method that the solicited message of the embodiment of the present invention is uniformly processed;
Fig. 1 b are that information unification processing is made requests between disparate modules and request manager in the embodiment of the present invention Schematic diagram;
Fig. 1 c are the flow diagram for the method that the solicited message of the embodiment of the present invention is uniformly processed;
Fig. 1 d are between the disparate modules in the embodiment of the present invention by monitoring the schematic diagram for realizing that handling result is shared;
Fig. 2 is the block schematic illustration of the internal structure for the device that the solicited message of the embodiment of the present invention is uniformly processed.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges Diction " comprising " refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or during " coupled " to another element, it can be directly connected or coupled to other elements or there may also be Intermediary element.In addition, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange Take leave whole or any cell and all combination of the "and/or" including one or more associated list items.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology), there is the meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless by specific definitions as here, idealization or the meaning of overly formal otherwise will not be used To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, only possesses the equipment of the wireless signal receiver of non-emissive ability, and including receiving and transmitting hardware Equipment, have on bidirectional communication link, can carry out two-way communication reception and emit hardware equipment.This equipment It can include:Honeycomb or other communication equipments, show with single line display or multi-line display or without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can With combine voice, information processing, fax and/or info-communication ability;PDA (Personal Digital Assistant, it is personal Digital assistants), radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day can be included It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " they can be portable, can transport, mounted on the vehicles (aviation, Sea-freight and/or land) in or be suitable for and/or be configured to, in local runtime and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or with music/video playing function mobile phone or the equipment such as smart television, set-top box.
The present inventor is it is considered that judge solicited message especially by the required parameter of acquisition, to obtain To judging result;If it is identical request that judgment result displays, which are asked with request before, asked before being read from local cache Handling result;The pressure of the processing data of server can so be alleviated, improve the efficiency of solicited message processing.
It should be noted that the same solicited message in the solution of the present invention refers to there is the identical master for sending request The a plurality of solicited message of the content of body, identical request type and identical solicited message.
Moreover, technical staff is applied the technical scheme of the present invention when writing each function module of webpage, without being directed to The solicited message of each function module, processing information repeat and the written in code of redundancy;Technical staff only need to be in function mould The sentence that required parameter is sent to request manager is write in block, and request manager can be sent out automatically according to each function module The required parameter sent generates corresponding solicited message and is sent to server;And it is carried out after receiving the response message of server Processing, corresponding function module is returned to by handling result;The development efficiency of webpage is improved, reduces the redundancy of code.
The technical solution that the invention will now be described in detail with reference to the accompanying drawings.
Fig. 1 a are the flow diagram for the method that the solicited message of the embodiment of the present invention is uniformly processed.It should be noted that The species of solicited message in the embodiment of the present invention is diversified, and solicited message can obtain data message (get) Solicited message, solicited message can also send the solicited message of data message (post), and solicited message can also be Jian Wenben (plain) solicited message, solicited message can also be the solicited messages of cross-domain communication (jsonp), and solicited message can also be To the solicited message of time delay response (delay), solicited message can also be to that can only send a data in the same time The solicited message of information (lock), but the type of solicited message not merely includes the above type, and details are not described herein.
It should be noted that in the solution of the present invention, the processing of solicited message is ordered into, i.e.,:Only in webpage In function module receive the handling result of previous request after, just start in webpage request manager send New request is sequentially completed each request, and the function module in webpage is returned to until the data of all requests.
Meanwhile the solicited message appeared in identification solicited message with before is same solicited message, then it please to present It asks and does not process, the handling result asked before is directly read from caching;So alleviate the pressure of the processing data of server Power.
As shown in Figure 1a, the method flow that solicited message is uniformly processed in the present embodiment specifically includes following steps:
S110:Receive the request that the function module in webpage is sent.
In embodiments of the present invention, as shown in Figure 1 b, multiple function modules can be included in webpage, each function module is real Existing function is different.
Moreover, also different solicited messages is classified according to request method in the inventive solutions;For example, The solicited message sorted out includes:The solicited message of data message (get) is obtained, sends the request letter of data message (post) Breath, the solicited message of Jian Wenben (plain), the solicited message of cross-domain communication (jsonp), to time delay response (delay) Solicited message, to the solicited message of a data message (lock) can only be sent in the same time.
In order to enable those of ordinary skill in the art more fully understand the present invention, currently used parameter particularized below Configuration:
A, corresponding uniform resource locator is asked.
Specifically, uniform resource locator can identify the position of resource, and to Resource orientation.System as a result, Various operations are carried out to resource, such as:Accessing operation, update operation, replacement operation and the operation for searching Resource Properties.
B, the type of request method.
Specifically, the type of request method can be for obtaining the type of data message (get), and request method can also It is for sending the type of data message (post).
C, standardized data formats.
Currently used is that standard JSON (JavaScript Object Notation) changes data format, wherein, JSON It is a kind of data interchange format of lightweight, using the text formatting for being totally independent of language, has and be easy to people's reading and write, The advantage of machine parsing and generation is also easy to simultaneously.
D, the condition of request is sent.
Specifically, the condition for sending request could be provided as:Same request can only be sent once within the same time;Also may be used Using will send request condition setting as:In sometime threshold value, request can not be sent again.
E, the processing mode of request data.
Specifically, the processing mode of request data can be arranged to:Cache request data.
It should be noted that as described above, only list currently used parameter configuration.In the solution of the present invention, Corresponding parameter can also be configured, details are not described herein according to actual application environment.
S120:Obtain the required parameter of request.
In this step, corresponding required parameter is asked to may include:It is at least one in request method, request configuration parameter.
S130:Solicited message is judged according to the required parameter of acquisition, to obtain judging result.
S140:It is identical request that if judgment result displays, which are asked with request before, please before being read from local cache The handling result asked;And handling result is sent to function module.
In this application scene, solicited message is judged by the required parameter of acquisition, to obtain judging result;If It is identical request that judgment result displays, which are asked with request before, then the handling result asked before from local cache reading;This Sample can alleviate the pressure of the processing data of server, improve the efficiency of solicited message processing.Meanwhile reduce solicited message The information content of processing improves the development efficiency of application.Further, since reduce the processing procedure of solicited message, acquisition with The corresponding data message amount of handling result will also greatly reduce, and reduce the possibility of data message error, add application Stability, decrease the cost for safeguarding data information security.
In practical applications, as shown in Figure 1 b, when function module A for the first time to request manager send solicited message, please The content asked is specially:Obtain the poet Meng Haoran's Tang Dynasty《Spring is known》Full text, and the request is recorded in request manager;This For sample when function module A sends the solicited message of identical content to request manager again, request manager is directly from local slow The handling result for reading and asking before is deposited, and handling result is sent to function module A, i.e.,:Function module A gets the poem Tang Dynasty People Meng Haoran's《Spring is known》Full text information.
In practical applications, as shown in Figure 1 b, when function module B for the first time to request manager send solicited message, please The content asked is specially:The icon of 360 security guards is sent, and the request is recorded in request manager;So when function mould When block B sends the solicited message of identical content again, request manager directly reads the processing knot asked before from local cache Fruit, and handling result is sent to function module B, function module B gets the icon of 360 security guards.
As shown in Figure 1 b, information unification is made requests between the disparate modules in the embodiment of the present invention and request manager The schematic diagram of processing.
Function module A is for obtaining the data message in relation to " how improving memory " and by acquired " a variety of raisings The data message of memory " is shown in webpage, and function module B is used to search for and picture related with environmental protection in query webpage, And the acquired picture related with environmental protection is included in webpage.
As shown in Figure 1 b, the request manager in webpage receives the required parameter that the function module A in webpage is sent In request method be specially that configuration parameter in the required parameter that get and function module A are sent can specifically include obtaining The uniform resource locator (url) of data;In addition, the request method in the required parameter that function module A is sent can also be specific Configuration parameter in the required parameter sent for post and function module A can specifically include the url for sending data.
Request manager in webpage receives the request method in the required parameter that the function module B in webpage is sent Configuration parameter in the required parameter that specially get and function module B is sent can specifically include the unified money for obtaining data Source finger URL (url);In addition, the request method in the required parameter that function module B is sent can also be specially post, Yi Jigong Configuration parameter in the required parameter that energy modules A is sent can specifically include the url for sending data.
When judgment result displays request is different requests from asking before, as illustrated in figure 1 c, institute of the embodiment of the present invention The method that the solicited message of offer is uniformly processed further includes following process step:
S111:If it is different requests that judgment result displays, which are asked from request before, generated according to the required parameter of acquisition Respective request information to server to send.
In this step, corresponding required parameter is asked to may include:It is at least one in request method, request configuration parameter.
Specifically, in an embodiment of the present invention, request manager according to the request method of acquisition, request configuration parameter, At least one of default configuration parameters under the request method generate solicited message.
In practical applications, as shown in Figure 1 b, when the request manager in webpage receives the function module A in webpage Request method in the required parameter of transmission is specially the configuration parameter tool in the required parameter that get and function module A is sent When body can include obtaining uniform resource locator (url) of data, request manager according to the request method (get) of reception, Default configuration ginseng under request configuration parameter (the uniform resource locator url for obtaining data) and the request method (get) Number generates the solicited message of the request method (get).
In practical applications, as shown in Figure 1 b, when the request manager in webpage receives the function module B in webpage Request method in the required parameter of transmission is specially the configuration parameter in the required parameter that post and function module B is sent When specifically can include sending uniform resource locator (url) of data, request manager is according to the request method of reception (post), request configures the acquiescence under parameter (the uniform resource locator url for sending data) and the request method (post) Parameter is configured, generates the solicited message of the request method (post).
S112:The response message returned according to server carries out respective handling, and handling result is sent to function module.
In this step, the response message that server returns includes response message parameter.Response message parameter may include:It rings It answers at least one in the return code of information, the content of response message.
Specifically, processing mode is preset to carry out respective handling according to response message parameter selection;And processing is tied Fruit is sent to function module, wherein, same type of response message parameter corresponds to same default processing mode.
Further, if the return code of response message is similar to default return code/consistent, corresponded to using default return code Default processing mode handled.For example, when asking the information of user in a certain social software, if the return of response message Code is " -1 ", then is handled using the default processing mode of return code " -1 ", such as to be prompted comprising the pop-up of " being not logged in " User.
Further, if the content of response message is similar with default returned content/identical, using default returned content pair The default processing mode answered is handled.For example, if the content of response message is " can not find server ", using described interior The default processing mode held is handled, for example, replacing current network connection point.
In practical application, after function module receives the handling result of request manager, corresponding function is performed, for example, Display function, sending function.
As shown in Figure 1 b, when function module A performs the function of display, Tang Dynasty that function module A can will be got " spring naps, unconscious of the dawn. Everywhere, birdsong for the full text of the dawn in spring of poet Meng Haoran.Wind and rain sound yesterday, flower fall to know how many " it is shown in webpage In.
When function module A performs the function of sending, function module A can be by the poet Meng Haoran's Tang Dynasty got " spring naps, unconscious of the dawn. Everywhere, birdsong for the full text of dawn in spring.Wind and rain sound yesterday, flower fall to know how many " it is sent.
Similarly, when function module B performs the function of display, 360 security guards that function module B can will be got Icon be shown in webpage.
When function module B performs the function of sending, function module B can be by the figure of 360 security guards got Mark is sent.
In this application scene, when judgment result displays request is different requests from asking before, according to acquisition Required parameter generates respective request information to be sent to server;And the response message returned according to server carries out corresponding position Reason, and handling result is sent to corresponding function module;By by the type of response message parameter and default processing mode phase It is corresponding so that the response message that server returns is corresponding with handling result, is realized automatically to originally huge data message It is orderly and classification management.
In addition, in order to realize the shared of acquired handling result between disparate modules, request manager is by handling result Share to other function modules of monitor function module in webpage.
As shown in Figure 1 d, shown between the disparate modules in the embodiment of the present invention by what monitoring realization handling result was shared It is intended to.
It should be noted that realize handling result during sharing, it is necessary to carry out by monitoring between different modules The incident management that monitored data is asked and trigger data is monitored.
As shown in Figure 1 d, the get handling results of function module A are shared to function module B by request manager, wherein, work( Can module B function module A can be monitored in webpage, in this way, function module B can also sharing functionality modules A get Handling result, therefore, function module B just can be by the poet Meng Haoran's Tang Dynasty got《Spring is known》Full text " spring dormancy be can not help It dawn, hears birds singing everywhere.Wind and rain sound yesterday, flower fall to know how many " it is shown in webpage.
In addition, the get handling results of function module B can also be shared to function module A by request manager, wherein, work( Can modules A function module B can be monitored in webpage, in this way, when function module A can also sharing functionality module B Get handling results, such function module A can just include the icon of 360 security guards got in webpage.
It should be noted that shared handling result is not only text information or picture or video provides Material etc., details are not described herein.
Fig. 2 is the block schematic illustration of the internal structure for the device that the solicited message of the embodiment of the present invention is uniformly processed.Such as Fig. 2 Shown, the device that the present embodiment solicited message is uniformly processed includes:Request receiving module 210, required parameter acquisition module 220, Judgment module 230 and processing module 240.
Specifically, request receiving module 210, for receiving the request of the transmission of the function module in webpage.
Required parameter acquisition module 220, for obtaining the required parameter of request;
Wherein, corresponding required parameter is asked to may include:It is at least one in request method, request configuration parameter.
Judgment module 230 judges solicited message for the required parameter according to acquisition, to obtain judging result.
Processing module 240, if it is identical request to be asked for judgment result displays with request before, from local cache Read the handling result asked before;And handling result is sent to function module.
In the above-described embodiments, when it is identical request that judgment result displays, which are asked with asking before, processing module is straight Connect the handling result from same request before local cache reading;The pressure of the processing data of server can so be alleviated, carried The high efficiency of solicited message processing.Meanwhile reduce the information content of solicited message processing, improve the development efficiency of application. Further, since reducing the processing procedure of solicited message, the data message amount corresponding with handling result of acquisition also will greatly It reduces, reduces the possibility of data message error, add the stability of application, decrease and safeguard data information security Cost.
Further, if processing module 240 is additionally operable to judgment result displays request from being asked before as different requests, root Respective request information is generated according to the required parameter of acquisition to be sent to server;And according to server return response message into Row respective handling, and handling result is sent to function module.
It is preferred that processing module is specifically used under the request method according to acquisition, request configuration parameter, the request method At least one of default configuration parameters generate solicited message.
Further, processing module 240 includes first processing units and second processing unit.
Specifically, if first processing units ask for judgment result displays with request before to be identical request, from The handling result that local cache reading is asked before;And handling result is sent to function module.
If it is different requests that second processing unit, which is asked for judgment result displays from request before, according to asking for acquisition Parameter generation respective request information is asked to be sent to server;And the response message returned according to server carries out corresponding position Reason, and handling result is sent to function module.
Further, second processing unit includes the first subelement, and the first subelement is used for according to the choosing of response message parameter Default processing mode is selected to carry out respective handling;And handling result is sent to function module;Wherein, same type of response Information parameter corresponds to same default processing mode.
Wherein, the response message that server returns includes response message parameter.Response message parameter may include:Response message Return code, at least one in the content of response message.
Further, second processing unit further includes the second subelement, if the second subelement is used for the return of response message Code is similar to default return code/consistent, then is handled using the default corresponding default processing mode of return code.
Further, second processing unit further includes the 3rd subelement, if the 3rd subelement is used for the content of response message It is similar with default returned content/identical, then it is handled using the default corresponding default processing mode of returned content.
In the above-described embodiments, when it is different requests that judgment result displays, which are asked from asking before, processing module root Respective request information is generated according to the required parameter of acquisition to be sent to server;And according to server return response message into Row respective handling, and handling result is sent to corresponding function module;By the way that the type of response message parameter is located with default Reason mode is corresponding so that the response message that server returns is corresponding with handling result, is realized automatically to originally huge Orderly and classification the management of data message.
In addition, in order to realize the shared of acquired handling result between disparate modules, the dress that request data is uniformly processed It puts and further includes handling result sharing module.
Handling result sharing module, for handling result to be shared to other function moulds of monitor function module in webpage Block.
Above-mentioned request receiving module, the specific implementation of the function of required parameter acquisition module, judgment module and processing module Method may be referred to the particular content of the above-mentioned method flow step as shown in Fig. 1 a, Fig. 1 b, Fig. 1 c, Fig. 1 d, no longer superfluous herein It states.
In addition, present invention additionally comprises with above-mentioned request receiving module, required parameter acquisition module, judgment module and processing The terminal device of the device of module is uniformly processed solicited message according to above device.
Those skilled in the art of the present technique are appreciated that the present invention includes being related to perform in operation described herein One or more equipment.These equipment can specially be designed and manufactured or can also include general for required purpose Known device in computer.These equipment have the computer program being stored in it, these computer programs are selectively Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) readable medium or be stored in It e-command and is coupled to respectively in any kind of medium of bus suitable for storage, the computer-readable medium is included but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card Piece.It is, readable medium includes by equipment (for example, computer) so as to any Jie for the form storage or transmission information read Matter.
Those skilled in the art of the present technique be appreciated that can with computer program instructions come realize these structure charts and/or The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other The processor of programmable information processing method is realized, so as to pass through the processing of computer or other programmable information processing methods Device performs the scheme specified in the frame of structure chart and/or block diagram and/or flow graph disclosed by the invention or multiple frames.
Those skilled in the art of the present technique are appreciated that in the various operations crossed by discussion in the present invention, method, flow Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, it is each with having been crossed by discussion in the present invention Other steps, measures, and schemes in kind operation, method, flow may also be alternated, changed, rearranged, decomposed, combined or deleted. Further, it is of the prior art have with disclosed in the present invention various operations, method, the step in flow, measure, scheme It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (14)

1. a kind of method that solicited message is uniformly processed, which is characterized in that including:
Receive the request that the function module in webpage is sent;
The required parameter of the request is obtained, and the request is classified according to request method;
The solicited message is judged according to the required parameter of acquisition, to obtain judging result;
If request described in the judgment result displays is identical request with request before, asked before being read from local cache Handling result;And
The handling result is sent to the function module;
If request described in the judgment result displays is different requests from request before, phase is generated according to the required parameter of acquisition Solicited message is answered to be sent to server;The response message returned according to the server carries out respective handling, wherein, the sound Information is answered to include response message parameter, presets processing mode according to the response message parameter selection to carry out respective handling;With And the handling result is sent to the function module, wherein, same type of response message parameter corresponds to same default Processing mode.
2. according to the method described in claim 1, it is characterized in that, the response message parameter include it is following at least one:
The return code of response message, the content of response message.
3. according to the method described in claim 2, it is characterized in that, described preset processing according to the response message parameter selection Mode the step of carrying out respective handling to further comprise:
If the return code of the response message is similar to default return code/consistent, corresponding pre- using the default return code If processing mode is handled.
4. according to the method described in claim 3, it is characterized in that, described preset processing according to the response message parameter selection Mode the step of carrying out respective handling to further comprise:
It is corresponding using the default returned content if the content of the response message is similar with default returned content/identical Default processing mode is handled.
5. according to the described method of any one of claim 1-4, which is characterized in that the required parameter includes following at least one Person:
Request method, request configuration parameter.
6. according to the described method of any one of claim 1-4, which is characterized in that described to be generated according to the required parameter of acquisition Respective request information the step of transmission to server to further comprise:
According at least one of default configuration parameters under the request method of acquisition, request configuration parameter, the request method, generation The solicited message.
7. according to the described method of any one of claim 1-4, which is characterized in that the method is further included:
The handling result is shared to other function modules that the function module is monitored in the webpage.
8. a kind of device that solicited message is uniformly processed, which is characterized in that including:
Request receiving module, for receiving the request of the transmission of the function module in webpage;
Required parameter acquisition module for obtaining the required parameter of the request, and the request is classified according to request method;
Judgment module judges the solicited message for the required parameter according to acquisition, to obtain judging result;
Processing module if being identical request for being asked described in the judgment result displays with request before, is delayed from local Deposit the handling result for reading and asking before;And the handling result is sent to the function module;If it is additionally operable to described sentence Request described in disconnected the results show is different requests with request before, according to the required parameter of acquisition generation respective request information with It is sent to server;And the response message returned according to the server carries out respective handling, and handling result is sent to The function module;
The processing module includes:
First processing units if request described in the judgment result displays is identical request with request before, are delayed from local Deposit the handling result for reading and asking before;And the handling result is sent to the function module;
Second processing unit, if request described in the judgment result displays is different requests from request before, according to acquisition Required parameter generates respective request information to be sent to server;The response message returned according to the server carries out corresponding position Reason, and handling result is sent to the function module;
Wherein, the response message includes response message parameter, and second processing unit further includes:
First subelement, for presetting processing mode according to the response message parameter selection to carry out respective handling;It and will The handling result is sent to the function module;Wherein, same type of response message parameter corresponds to same default processing Mode.
9. device according to claim 8, which is characterized in that the response message parameter include at least one:
The return code of response message, the content of response message.
10. device according to claim 9, which is characterized in that second processing unit further includes:
Second subelement, if the return code for the response message is similar to default return code/consistent, using described default The corresponding default processing mode of return code is handled.
11. device according to claim 9, which is characterized in that second processing unit further includes:
3rd subelement, if similar with default returned content/identical for the content of the response message, using described default The corresponding default processing mode of returned content is handled.
12. according to the devices described in claim 11, which is characterized in that the required parameter include it is following at least one:
Request method, request configuration parameter.
13. device according to claim 12, which is characterized in that
The acquiescence that the processing module is specifically used under the request method according to acquisition, request configuration parameter, the request method is matched somebody with somebody At least one of parameter is put, generates the solicited message.
14. device according to claim 13, which is characterized in that described device further includes:Sharing module, for by described in Handling result shares to other function modules that the function module is monitored in the webpage.
CN201410834375.8A 2014-12-26 2014-12-26 The method and apparatus that solicited message is uniformly processed Active CN104468833B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410834375.8A CN104468833B (en) 2014-12-26 2014-12-26 The method and apparatus that solicited message is uniformly processed
PCT/CN2015/095466 WO2016101753A1 (en) 2014-12-26 2015-11-24 Method and device for uniformly processing request information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410834375.8A CN104468833B (en) 2014-12-26 2014-12-26 The method and apparatus that solicited message is uniformly processed

Publications (2)

Publication Number Publication Date
CN104468833A CN104468833A (en) 2015-03-25
CN104468833B true CN104468833B (en) 2018-05-29

Family

ID=52914184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410834375.8A Active CN104468833B (en) 2014-12-26 2014-12-26 The method and apparatus that solicited message is uniformly processed

Country Status (2)

Country Link
CN (1) CN104468833B (en)
WO (1) WO2016101753A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468833B (en) * 2014-12-26 2018-05-29 北京奇虎科技有限公司 The method and apparatus that solicited message is uniformly processed
CN106161519B (en) * 2015-04-01 2019-06-21 阿里巴巴集团控股有限公司 A kind of information acquisition method and device
CN106484738B (en) * 2015-09-01 2020-08-28 腾讯科技(深圳)有限公司 Page processing method and device
CN112866085B (en) * 2016-12-19 2023-04-07 创新先进技术有限公司 Resource transmission method and device
CN106953857B (en) * 2017-03-16 2020-03-10 郑州云海信息技术有限公司 Server-side multithread management method based on CS framework
CN110399181A (en) * 2019-07-23 2019-11-01 深圳市元征科技股份有限公司 Software Development Kit funcall method, system and electronic equipment and medium
CN112527826A (en) * 2019-09-19 2021-03-19 北京京东振世信息技术有限公司 Method and device for processing request
CN113114768A (en) * 2021-04-14 2021-07-13 北京京东振世信息技术有限公司 Service request processing method, device and system
CN113778688A (en) * 2021-09-17 2021-12-10 Oppo广东移动通信有限公司 Memory management system, memory management method, and memory management device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662503A (en) * 2009-09-14 2010-03-03 金蝶软件(中国)有限公司 Information transmission method, proxy server and service system in network
CN103123630A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Method, system, mobile terminal and server for obtaining webpage contents
CN103177042A (en) * 2011-12-26 2013-06-26 宇龙计算机通信科技(深圳)有限公司 Method and device for browsing webpage
CN103455632A (en) * 2013-09-22 2013-12-18 金蝶软件(中国)有限公司 Method and client for display web pages
CN103678549A (en) * 2013-12-04 2014-03-26 新浪网技术(中国)有限公司 Webpage table data sharing method and device
CN104065637A (en) * 2013-07-10 2014-09-24 腾讯科技(深圳)有限公司 Web-game running method and device
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100550019C (en) * 2007-03-22 2009-10-14 金蝶软件(中国)有限公司 OODB Object Oriented Data Base access method and system
CN103218434B (en) * 2013-04-15 2016-09-14 小米科技有限责任公司 A kind of method and apparatus loading static resource
CN104090801A (en) * 2014-07-11 2014-10-08 Tcl通讯(宁波)有限公司 Method for fast opening webpage of mobile terminal browser and browser
CN104123356B (en) * 2014-07-17 2017-06-27 成都康赛信息技术有限公司 A kind of method that webpage response is improved under big data quantity
CN104468833B (en) * 2014-12-26 2018-05-29 北京奇虎科技有限公司 The method and apparatus that solicited message is uniformly processed

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662503A (en) * 2009-09-14 2010-03-03 金蝶软件(中国)有限公司 Information transmission method, proxy server and service system in network
CN103123630A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Method, system, mobile terminal and server for obtaining webpage contents
CN103177042A (en) * 2011-12-26 2013-06-26 宇龙计算机通信科技(深圳)有限公司 Method and device for browsing webpage
CN104065637A (en) * 2013-07-10 2014-09-24 腾讯科技(深圳)有限公司 Web-game running method and device
CN103455632A (en) * 2013-09-22 2013-12-18 金蝶软件(中国)有限公司 Method and client for display web pages
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client
CN103678549A (en) * 2013-12-04 2014-03-26 新浪网技术(中国)有限公司 Webpage table data sharing method and device

Also Published As

Publication number Publication date
CN104468833A (en) 2015-03-25
WO2016101753A1 (en) 2016-06-30

Similar Documents

Publication Publication Date Title
CN104468833B (en) The method and apparatus that solicited message is uniformly processed
CN104270521A (en) Method for processing incoming call number and mobile terminal
US8959162B2 (en) Publisher-based message data cashing in a publish-subscription environment
CN105515900A (en) Method and device for acquiring on-line state of terminal
CN108846295B (en) Sensitive information filtering method and device, computer equipment and storage medium
CN107038523B (en) Based on the patrol task management method and device for controlling grid altogether
WO2010028401A1 (en) System and method for collaborative short messaging and discussion
CN104243661A (en) Method, server and mobile terminal for determining types of incoming call numbers
CN102542010B (en) Searching linked content using an external search system
CN106095789A (en) A kind of message subscribing managing device and method
CN103812906B (en) Website recommendation method and device and communication system
WO2012114284A1 (en) Peer-to-peer collaboration of publishers in a publish-subscription environment
CN106533914A (en) Message notification method and apparatus
CN103490978A (en) Terminal, server and message monitoring method
CN109388551A (en) There are the method for loophole probability, leak detection method, relevant apparatus for prediction code
CN109582854B (en) Method and apparatus for generating information
KR101606319B1 (en) Method of push messages management using database
US20120215858A1 (en) Caching potentially repetitive message data in a publish-subscription environment
CN108023740B (en) Risk prompting method and device for abnormal information in monitoring
CN109408279A (en) Data back up method and device
CN109921920A (en) A kind of failure information processing method and relevant apparatus
CN113256240B (en) Message processing method and device and server
CN103473290B (en) The processing method and processing device of the attribute data of point of interest
CN103853764B (en) End message synchronous method and device
CN104572945A (en) File search method and device based on cloud storage space

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220726

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right