CN107528974A - request processing method, device, computing device and storage medium - Google Patents

request processing method, device, computing device and storage medium Download PDF

Info

Publication number
CN107528974A
CN107528974A CN201710723506.9A CN201710723506A CN107528974A CN 107528974 A CN107528974 A CN 107528974A CN 201710723506 A CN201710723506 A CN 201710723506A CN 107528974 A CN107528974 A CN 107528974A
Authority
CN
China
Prior art keywords
user interface
layer
response data
request
accumulation layer
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.)
Pending
Application number
CN201710723506.9A
Other languages
Chinese (zh)
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.)
Digital Trade Technology (Beijing) Co., Ltd.
Original Assignee
Century Light Technology Development (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 Century Light Technology Development (beijing) Co Ltd filed Critical Century Light Technology Development (beijing) Co Ltd
Priority to CN201710723506.9A priority Critical patent/CN107528974A/en
Publication of CN107528974A publication Critical patent/CN107528974A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of request processing method, device, computing device and storage medium, wherein, request processing method is performed based on the framework being made up of user interface layer, accumulation layer and Internet, and this method includes:Pending request is created in user interface layer, pending request is transferred to accumulation layer by user interface layer;Accumulation layer records processing state according to pending request, and pending request is transferred into Internet;Internet carries out network request according to pending request, and met with a response data, and response data is transferred into accumulation layer;Accumulation layer memory response data and/or to response data carry out data conversion, obtain user interface presentation data;Accumulation layer is by response data or user interface presentation data transfer to user interface layer;User interface layer is shown according to response data or user interface presentation data.Utilize technical scheme provided by the invention so that code structure becomes apparent from, and reduces code coupling, improves the scalability of code.

Description

Request processing method, device, computing device and storage medium
Technical field
The present invention relates to Internet technical field, and in particular to a kind of request processing method, device, computing device and storage Medium.
Background technology
With the development of Internet technology, the mobile terminal such as mobile phone, PAD is widely used in a variety of applications, on mobile terminal Software program development has also obtained rapid development therewith.For a software program, except needing to meet user to work( The demand of energy, it is also necessary to improve the experience sense of user, a software program is with the variation of its function and the increasing of complexity Add, size of code can be increasing corresponding to the software program, but there is coupling for code corresponding to software program in the prior art The problem of conjunction property is high, scalability is low so that it is difficult to effectively managed code, sometimes when needing one parameter of modification or increasing Add just needs to modify to many places in code during One function, or even needs to be written over many codes, so as to The efficiency of software program development is had a strong impact on.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State request processing method, device, computing device and the storage medium of problem.
According to an aspect of the invention, there is provided a kind of request processing method, this method is based on by user interface layer, deposited Reservoir and Internet composition framework and perform, this method includes:
Pending request is created in user interface layer, pending request is transferred to accumulation layer by user interface layer;
Accumulation layer records processing state according to pending request, and pending request is transferred into Internet;
Internet carries out network request according to pending request, and met with a response data, and response data is transferred into storage Layer;
Accumulation layer memory response data and/or to response data carry out data conversion, obtain user interface presentation data;
Accumulation layer is by response data or user interface presentation data transfer to user interface layer;
User interface layer is shown according to response data or user interface presentation data.
According to another aspect of the present invention, there is provided one kind request processing unit, the device are based on by user interface layer, deposited Reservoir and Internet composition framework and run, the device includes:User interface layer processing module, accumulation layer processing module and net Network layers processing module;
User interface layer processing module is used for:Pending request is created in user interface layer, pending request is transmitted To accumulation layer;
Accumulation layer processing module is used for:Processing state is recorded according to pending request, and pending request is transferred to net Network layers;
Network layer handles module is used for:Network request is carried out according to pending request, meet with a response data, and by number of responses According to being transferred to accumulation layer;
Accumulation layer processing module is further used for:Memory response data and/or to response data carry out data conversion, obtain User interface presentation data;By response data or user interface presentation data transfer to user interface layer;
User interface layer processing module is further used for:It is shown according to response data or user interface presentation data.
According to another aspect of the invention, there is provided a kind of computing device, including:Processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory is used to deposit an at least executable instruction, and executable instruction makes the above-mentioned request processing method of computing device Corresponding operation.
In accordance with a further aspect of the present invention, there is provided a kind of storage medium, it is executable that at least one is stored with storage medium Instruction, executable instruction make computing device be operated as corresponding to above-mentioned request processing method.
According to technical scheme provided by the invention, pending request is created in user interface layer, user interface layer will be treated Processing request is transferred to accumulation layer, and accumulation layer records processing state according to pending request, and pending request is transferred into net Network layers, then according to pending request progress network request, met with a response Internet data, and response data is transferred into storage Layer, then accumulation layer memory response data and/or to response data carry out data conversion, obtain user interface presentation data, deposit Reservoir by response data or user interface presentation data transfer to user interface layer, end user's boundary layer according to response data or User interface presentation data are shown.Technical scheme provided by the invention is constructed by user interface layer, accumulation layer and network The frameworks of layer composition, user interface layer, accumulation layer and Internet are effectively separated, specify that the content that each layer is responsible for, Enable to code structure more clear, reduce code coupling, improve the scalability of code, contribute to code It is managed.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the schematic flow sheet of request processing method according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of request processing method in accordance with another embodiment of the present invention;
Fig. 3 shows the structured flowchart of request processing unit according to an embodiment of the invention;
Fig. 4 shows the structured flowchart of request processing unit in accordance with another embodiment of the present invention;
Fig. 5 shows a kind of structural representation of computing device according to embodiments of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
The present invention constructs a kind of Development Framework for mobile terminal, and the framework is applicable to the mobile terminal of different system, The framework is made up of user interface layer, accumulation layer and Internet, the present invention by user interface layer, accumulation layer and Internet effectively Separate, specify that the content that each layer is responsible for.Wherein, user interface layer is mainly used in user's display data;Accumulation layer master It is used to be deposited according to pending request record processing state and the response data to return before pending request is sent Storage and arrangement;Internet is mainly used in access server interface.
Fig. 1 shows the schematic flow sheet of request processing method according to an embodiment of the invention, this method be based on by User interface layer, accumulation layer and Internet composition framework and perform, as shown in figure 1, this method comprises the following steps:
Step S100, creates pending request in user interface layer, and pending request is transferred to and deposited by user interface layer Reservoir.
When user wants to obtain data from server, pending request can be created in user interface layer, is being created After pending request, pending request can be transferred to accumulation layer by user interface layer.Wherein, one is carried in pending request A little necessary parameters, such as the parameter such as module title involved by the request and method name.In a specific embodiment, use Want to obtain user profile from server in family, then the pending request created is specially user profile inquiry request, and this is treated Entrained module title can be that line module (such as UserModule), method name can obtain for user profile in processing request Method name (such as getUserInfo) is taken, in addition, can also carry the parameters such as user's mark in the pending request.
Step S101, accumulation layer records processing state according to pending request, and pending request is transferred into Internet.
After pending request is transferred to accumulation layer by user interface layer, accumulation layer is according to pending request record processing shape State, and pending request is transferred to Internet.Those skilled in the art can be at the particular content setting according to pending request Reason state, is not limited herein.For example, when it is pending request be specially user profile inquiry request when, then accumulation layer according to The recorded processing state of the pending request can be " in inquiry ";And for example, when pending request is specially chat message hair When sending request, then accumulation layer can be " in transmission " according to the recorded processing state of the pending request.
Step S102, Internet carry out network request according to pending request, and met with a response data, and response data is passed It is handed to accumulation layer.
After pending request is transferred to Internet by accumulation layer, Internet is according to pending request access server interface Network request is carried out, met with a response data, and response data then is transferred into accumulation layer.
Step S103, accumulation layer memory response data and/or to response data carry out data conversion, obtain user interface exhibition Registration evidence.
Accumulation layer can store the response data into database;And/or accumulation layer can carry out data to response data and turn Change, the data of required data structure when response data is converted into user interface presentation, so as to obtain user interface presentation number According to so that user interface layer is shown.
Step S104, accumulation layer is by response data or user interface presentation data transfer to user interface layer.
If accumulation layer only stores response data in step s 103, data conversion is not carried out to response data, So in step S104, response data is transferred to user interface layer by accumulation layer;If accumulation layer is to sound in step s 103 Answer data to carry out data conversion, obtain user interface presentation data, then in step S104, accumulation layer can be directly by user Showing interface data transfer is to user interface layer.
Step S105, user interface layer are shown according to response data or user interface presentation data.
After accumulation layer is by response data or user interface presentation data transfer to user interface layer, user interface layer according to Response data or user interface presentation data are shown.
The request processing method provided according to the present embodiment, creates pending request, user interface in user interface layer Pending request is transferred to accumulation layer by layer, and accumulation layer records processing state according to pending request, and pending request is passed Internet is handed to, then Internet carries out network request according to pending request, and met with a response data, and response data is transmitted To accumulation layer, then accumulation layer memory response data and/or data conversion is carried out to response data, obtain user interface presentation number According to accumulation layer is by response data or user interface presentation data transfer to user interface layer, and end user's boundary layer is according to response Data or user interface presentation data are shown.Technical scheme provided by the invention is constructed by user interface layer, accumulation layer With the framework of Internet composition, user interface layer, accumulation layer and Internet are effectively separated, specify that what each layer was responsible for Content, enable to code structure more clear, reduce code coupling, improve the scalability of code, contribute to Code is managed.
Fig. 2 shows the schematic flow sheet of request processing method in accordance with another embodiment of the present invention, and this method is based on Performed by the framework that user interface layer, accumulation layer and Internet form, as shown in Fig. 2 this method comprises the following steps:
Step S200, creates pending request in user interface layer, and pending request is transferred to the by user interface layer One processor.
When user wants to obtain data from server, pending request can be created in user interface layer, is being created After pending request, pending request can be transferred to first processor by user interface layer.
Step S201, first processor are pre-processed to pending request, and pretreated pending request is passed It is handed to accumulation layer.
Wherein, first processor is used to before pending request is sent carry out unified pretreatment to pending request, and Pretreated pending request is transferred to accumulation layer.Those skilled in the art can be pre- according to the curriculum offering of pending request The particular content of processing, is not limited herein.For example, pretreatment can be user login information authentication processing, user right information Authentication processing etc..
In a specific embodiment, first processor can be BeforeHandler, and those skilled in the art can treat place Whether reason request is configured by first processor, specifically, only need to be when creating pending request, to pending request pair The first processor attribute answered is configured, for example, being configured to needBeforeHandler attributes.If pending request Need by first processor, then needBeforeHandler attributes can be positioned to allow for, that is, be arranged to " ture ";If treat Processing request needs not move through first processor, then can be arranged to not allow needBeforeHandler attributes, that is, be arranged to “false”.Those skilled in the art can be according to being actually needed to whether pending request configures by first processor, this Place does not limit.
Step S202, accumulation layer are treated according to pretreated pending request record processing state by pretreated Processing request is transferred to Internet.
After pretreated pending request is transferred to accumulation layer by first processor, accumulation layer is according to pretreated Pending request record processing state, and pretreated pending request is transferred to Internet.Those skilled in the art can Processing state is set according to the particular content of pending request, not limited herein.For example, when pending request is specially to chat During information sending request, then accumulation layer can be " to send according to the recorded processing state of pretreated pending request In ".
Step S203, Internet carry out network request according to pretreated pending request, and meet with a response data, and will Response data is transferred to accumulation layer.
After pretreated pending request is transferred to Internet by accumulation layer, Internet is waited to locate according to pretreated Reason request access server interface carries out network request, and met with a response data, and response data then is transferred into accumulation layer.
Step S204, accumulation layer update processing state according to response data.
For example, when pending request is specially that chat message sends request, chat message has been understood according to response data It is successfully transmitted, then corresponding processing state can be updated to " transmission " by accumulation layer.
Step S205, accumulation layer memory response data and/or to response data carry out data conversion, obtain user interface exhibition Registration evidence, and by response data or user interface presentation data transfer to second processor.
Accumulation layer can store the response data into database, and response data then is transferred into second processor;With/ Or, accumulation layer can carry out data conversion to response data, required data knot when response data is converted into user interface presentation The data of structure, user interface presentation data are obtained, then by user interface presentation data transfer to second processor.
Step S206, second processor carry out subsequent treatment to response data or user interface presentation data, and will be after Continue the response data of processing or the user interface presentation data transfer through subsequent treatment to user interface layer.
Wherein, the user interface presentation data that second processor is used to obtain the response data or data conversion of return are entered The unified subsequent treatment of row, and by the response data through subsequent treatment or the user interface presentation data transfer through subsequent treatment extremely User interface layer.Those skilled in the art can be follow-up according to the curriculum offerings of perhaps user interface presentation data in response data The particular content of processing, is not limited herein.
In a specific embodiment, second processor can be AfterHandler, and those skilled in the art can be to response Whether data or user interface presentation data are configured by second processor, specifically, need to only create pending request When, second processor attribute corresponding to pending request is configured, for example, being set to needAfterHandler attributes Put.If response data corresponding with pending request or user interface presentation data are needed by second processor, can incite somebody to action NeedAfterHandler attributes are positioned to allow for, that is, are arranged to " ture ";If response data corresponding with pending request or User interface presentation data need not move through second processor, then can be arranged to needAfterHandler attributes not allow, i.e., It is arranged to " false ".Those skilled in the art can be according to being actually needed to whether response data or user interface presentation data pass through Cross second processor to be configured, do not limit herein.
Step S207, user interface layer is according to the response data through subsequent treatment or the user interface presentation through subsequent treatment Data are shown.
In second processor by the response data through subsequent treatment or the user interface presentation data transfer through subsequent treatment To user interface layer, user interface layer is according to the response data through subsequent treatment or the user interface presentation number through subsequent treatment According to being shown.
The request processing method provided according to the present embodiment, constructs and is made up of user interface layer, accumulation layer and Internet Framework, by user interface layer, accumulation layer and Internet effectively separate, specify that the content that each layer is responsible for, and utilize First processor and second processor carry out unified pretreatment and subsequent treatment respectively so that and code structure is more clear, Code coupling is reduced, realizes the uncoupled purpose of code, improves the scalability of code, enabling easily right Code is managed, and is favorably improved the efficiency of software program development.
Fig. 3 show it is according to an embodiment of the invention request processing unit structured flowchart, the device be based on by with Family boundary layer, accumulation layer and Internet composition framework and run, as shown in figure 3, the device includes:User interface layer handles mould Block 310, accumulation layer processing module 320 and network layer handles module 330.
User interface layer processing module 310 is used for:Pending request is created in user interface layer, pending request is passed It is handed to accumulation layer.
Accumulation layer processing module 320 is used for:Processing state is recorded according to pending request, and pending request is transferred to Internet.
Network layer handles module 330 is used for:Network request is carried out according to pending request, meet with a response data, and will ring Data transfer is answered to accumulation layer.
Accumulation layer processing module 320 is further used for:Memory response data and/or to response data carry out data conversion, Obtain user interface presentation data;By response data or user interface presentation data transfer to user interface layer.
User interface layer processing module 310 is further used for:Opened up according to response data or user interface presentation data Show.
The request processing unit provided according to the present embodiment, user interface layer processing module are created in user interface layer and treated Processing request, pending request being transferred to accumulation layer, accumulation layer processing module records processing state according to pending request, and Pending request is transferred to Internet, network layer handles module carries out network request according to pending request, and meet with a response number According to and response data being transferred into accumulation layer, accumulation layer processing module memory response data and/or carries out data to response data Conversion, obtains user interface presentation data, and by response data or user interface presentation data transfer to user interface layer, user Boundary layer processing module is shown according to response data or user interface presentation data.Technical scheme structure provided by the invention The framework being made up of user interface layer, accumulation layer and Internet, user interface layer, accumulation layer and Internet effectively divided Open, specify that the content that each layer is responsible for, enable to code structure more clear, reduce code coupling, improve The scalability of code, helps to be managed code.
Fig. 4 show it is in accordance with another embodiment of the present invention request processing unit structured flowchart, the device be based on by User interface layer, accumulation layer and Internet composition framework and run, as shown in figure 4, the device includes:User interface layer processing Module 410, first processor processing module 420, accumulation layer processing module 430, network layer handles module 440 and second processor Processing module 450.Specifically, user interface layer processing module 410 may be provided in user interface layer, first processor processing mould Block 420 may be provided in first processor, and accumulation layer processing module 430 may be provided in accumulation layer, network layer handles module 440 It may be provided in Internet, second processor processing module 450 may be provided in second processor.
User interface layer processing module 410 is used for:Pending request is created in user interface layer, pending request is passed It is handed to first processor.
First processor processing module 420 is used for:Pending request is pre-processed, and will be pretreated pending Request is transferred to accumulation layer.
Accumulation layer processing module 430 is used for:According to pretreated pending request record processing state, and will be through pre- place The pending request of reason is transferred to Internet.
Network layer handles module 440 is used for:Network request is carried out according to pretreated pending request, meet with a response number According to, and response data is transferred to accumulation layer.
Accumulation layer processing module 430 is further used for:Memory response data and/or to response data carry out data conversion, Obtain user interface presentation data;By response data or user interface presentation data transfer to second processor.
Alternatively, accumulation layer processing module 430 is further used for:Processing state is updated according to response data.
Second processor processing module 450 is used for:Subsequent treatment is carried out to response data or user interface presentation data, and By the response data through subsequent treatment or the user interface presentation data transfer through subsequent treatment to user interface layer.
User interface layer processing module 410 is further used for:According to the response data through subsequent treatment or through subsequent treatment User interface presentation data be shown.
The request processing unit provided according to the present embodiment, constructs and is made up of user interface layer, accumulation layer and Internet Framework, by user interface layer, accumulation layer and Internet effectively separate, specify that the content that each layer is responsible for, and utilize First processor and second processor carry out unified pretreatment and subsequent treatment respectively so that and code structure is more clear, Code coupling is reduced, realizes the uncoupled purpose of code, improves the scalability of code, enabling easily right Code is managed, and is favorably improved the efficiency of software program development.
Present invention also offers a kind of non-volatile memory medium, storage medium is stored with an at least executable instruction, should Executable instruction can perform the request processing method in above-mentioned any means embodiment.
Fig. 5 shows a kind of structural representation of computing device according to embodiments of the present invention, the specific embodiment of the invention The specific implementation to computing device does not limit.
As shown in figure 5, the computing device can include:Processor (processor) 502, communication interface (Communications Interface) 504, memory (memory) 506 and communication bus 508.
Wherein:
Processor 502, communication interface 504 and memory 506 complete mutual communication by communication bus 508.
Communication interface 504, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..
Processor 502, for configuration processor 510, it can specifically perform the correlation in above-mentioned request processing method embodiment Step.
Specifically, program 510 can include program code, and the program code includes computer-managed instruction.
Processor 502 is probably central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that computing device includes, can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 506, for depositing program 510.Memory 506 may include high-speed RAM memory, it is also possible to also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 510 specifically can be used for so that processor 502 performs the request processing side in above-mentioned any means embodiment Method.The specific implementation of each step may refer to right in corresponding steps and the unit in above-mentioned request Processing Example in program 510 The description answered, will not be described here.It is apparent to those skilled in the art that for convenience and simplicity of description, on The equipment of description and the specific work process of module are stated, may be referred to the corresponding process description in preceding method embodiment, herein Repeat no more.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are come one of some or all parts in realizing according to embodiments of the present invention A little or repertoire.The present invention is also implemented as setting for performing some or all of method as described herein Standby or program of device (for example, computer program and computer program product).Such program for realizing the present invention can deposit Storage on a computer-readable medium, or can have the form of one or more signal.Such signal can be from because of spy Download and obtain on net website, either provide on carrier signal or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (10)

1. a kind of request processing method, it is characterised in that methods described is based on being made up of user interface layer, accumulation layer and Internet Framework and perform, methods described includes:
Pending request is created in user interface layer, the pending request is transferred to the storage by the user interface layer Layer;
The accumulation layer is transferred to the network according to the pending request record processing state, and by the pending request Layer;
The Internet carries out network request according to the pending request, and met with a response data, and the response data is passed It is handed to the accumulation layer;
The accumulation layer stores the response data and/or carries out data conversion to the response data, obtains user interface exhibition Registration evidence;
The accumulation layer is by the response data or the user interface presentation data transfer to the user interface layer;
The user interface layer is shown according to the response data or the user interface presentation data.
2. request processing method according to claim 1, wherein, it is characterised in that the user interface layer is treated described Processing request is transferred to the accumulation layer and further comprised:
The pending request is transferred to first processor by the user interface layer, and the first processor is to described pending Request is pre-processed, and pretreated pending request is transferred into the accumulation layer.
3. request processing method according to claim 1, wherein, it is characterised in that in the accumulation layer by the response Before data or the user interface presentation data transfer to the user interface layer, methods described also includes:
The accumulation layer updates the processing state according to the response data.
4. according to the request processing method described in claim any one of 1-3, wherein, it is characterised in that the accumulation layer is by institute State response data or the user interface presentation data transfer to the user interface layer further comprises:
The accumulation layer is by the response data or the user interface presentation data transfer to second processor, at described second Manage device and the response data or the user interface presentation data are carried out with subsequent treatment, and by the response data through subsequent treatment Or the user interface presentation data transfer through subsequent treatment is to the user interface layer;
The user interface layer is shown specially according to the response data or the user interface presentation data:The use Family boundary layer is shown according to the response data through subsequent treatment or the user interface presentation data through subsequent treatment.
5. one kind request processing unit, it is characterised in that described device is based on being made up of user interface layer, accumulation layer and Internet Framework and run, described device includes:User interface layer processing module, accumulation layer processing module and network layer handles module;
The user interface layer processing module is used for:Pending request is created in user interface layer, by the pending request It is transferred to the accumulation layer;
The accumulation layer processing module is used for:According to the pending request record processing state, and by the pending request It is transferred to the Internet;
The network layer handles module is used for:Network request is carried out according to the pending request, meet with a response data, and by institute State response data and be transferred to the accumulation layer;
The accumulation layer processing module is further used for:Store the response data and/or data are carried out to the response data Conversion, obtains user interface presentation data;By the response data or the user interface presentation data transfer to the user Boundary layer;
The user interface layer processing module is further used for:Entered according to the response data or the user interface presentation data Row displaying.
6. request processing unit according to claim 5, wherein, it is characterised in that described device also includes:First processing Device processing module;
The user interface layer processing module is further used for:The pending request is transferred to first processor;
The first processor processing module is used for:The pending request is pre-processed, and waits to locate by pretreated Reason request is transferred to the accumulation layer.
7. request processing unit according to claim 5, wherein, it is characterised in that the accumulation layer processing module enters one Walk and be used for:The processing state is updated according to the response data.
8. according to the request processing unit described in claim any one of 5-7, wherein, it is characterised in that described device also includes: Second processor processing module;
The accumulation layer processing module is further used for:By the response data or the user interface presentation data transfer to Two processors;
The second processor processing module is used for:The response data or the user interface presentation data are subsequently located Reason, and by the response data through subsequent treatment or the user interface presentation data transfer through subsequent treatment to the user interface Layer;
The user interface layer processing module is further used for:According to the response data through subsequent treatment or the use through subsequent treatment Family showing interface data are shown.
9. a kind of computing device, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as right will Ask and operated corresponding to the request processing method any one of 1-4.
10. a kind of storage medium, an at least executable instruction is stored with the storage medium, the executable instruction makes processing Device performs to be operated corresponding to the request processing method as any one of claim 1-4.
CN201710723506.9A 2017-08-22 2017-08-22 request processing method, device, computing device and storage medium Pending CN107528974A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710723506.9A CN107528974A (en) 2017-08-22 2017-08-22 request processing method, device, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710723506.9A CN107528974A (en) 2017-08-22 2017-08-22 request processing method, device, computing device and storage medium

Publications (1)

Publication Number Publication Date
CN107528974A true CN107528974A (en) 2017-12-29

Family

ID=60681821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710723506.9A Pending CN107528974A (en) 2017-08-22 2017-08-22 request processing method, device, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN107528974A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826018A (en) * 2010-05-20 2010-09-08 瑞斯康达科技发展股份有限公司 Interactive development system and method for interface of network element management system
CN103064690A (en) * 2012-12-16 2013-04-24 互动在线(北京)科技有限公司 Development framework based on Android operating system and execution method thereof
CN104301386A (en) * 2014-11-03 2015-01-21 合一网络技术(北京)有限公司 Server application system development framework and running method thereof
CN105607906A (en) * 2015-12-18 2016-05-25 北京金山安全软件有限公司 Service implementation method and device and electronic equipment
US20160274874A1 (en) * 2014-01-08 2016-09-22 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing request

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101826018A (en) * 2010-05-20 2010-09-08 瑞斯康达科技发展股份有限公司 Interactive development system and method for interface of network element management system
CN103064690A (en) * 2012-12-16 2013-04-24 互动在线(北京)科技有限公司 Development framework based on Android operating system and execution method thereof
US20160274874A1 (en) * 2014-01-08 2016-09-22 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing request
CN104301386A (en) * 2014-11-03 2015-01-21 合一网络技术(北京)有限公司 Server application system development framework and running method thereof
CN105607906A (en) * 2015-12-18 2016-05-25 北京金山安全软件有限公司 Service implementation method and device and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HAITANG416: "《三层架构及其优点》", 《HTTPS://BLOG.CSDN.NET/HAITANG416/ARTICLE/DETAILS/4195327》 *
MOUSA AL-MOHAMMED: "Distributed Object Technologies for Element Management System", 《HELSINKI UNIVERSITY OF TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING TELECOMMUNICATIONS SOFTWARE AND MULTIMEDIA LABORATORY》 *
任晓鹏等: "基于框架的Web系统开发研究", 《计算机工程与设计》 *

Similar Documents

Publication Publication Date Title
KR101622815B1 (en) Method of providing assistance to the end-user of a software application
CN108305072A (en) Dispose method, equipment and the computer storage media of block chain network
JP2020531976A (en) A device that provides a set of cryptographically protected, filtered, and sorted transaction datasets for blockchain links.
CN102955717B (en) Message management equipment and method in distributed message processing system
CN107885777A (en) A kind of control method and system of the crawl web data based on collaborative reptile
CN112287015B (en) Image generation system, image generation method, electronic device, and storage medium
CN102981911B (en) Distributed message handling system and device and method thereof
US20200226615A1 (en) Customer service representative dashboard application
CN105453058B (en) Directory service is found and/or study
CN103927321A (en) Method And System Using Crowdsourcing To Improve Sentiment Analytics
CN103858409A (en) Aggregation of sensor appliances using device registers and wiring brokers
Smirnov et al. Agent-based support of mass customization for corporate knowledge management
CN106056437A (en) Order management method and system
CN108701130A (en) Hints model is updated using auto-browsing cluster
US20210117299A1 (en) Data agnostic monitoring service
CN108665129A (en) A kind of Workflow Custom method and device
CN108595681A (en) Method, apparatus and system for list displaying
CN107609907A (en) The regulation and control method and device of advertisement position
CN108173839A (en) Right management method and system
CN109739906A (en) A kind of report form generation method and system
CN107800781A (en) A kind of configuration data processing method and device
CN107026879A (en) A kind of data cache method and background application system
CN102034144A (en) Group compositing algorithms for presence background
CN106570742A (en) Bulk commodity transaction platform product based network on-line auction method
CN108365976B (en) Network service optimization method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180328

Address after: 100083 1-701-1, Haidian District Cheng Fu Road, Haidian District, Beijing, seven layer 1-701-1

Applicant after: Digital Trade Technology (Beijing) Co., Ltd.

Address before: 100083, Haidian District, Beijing, Fu Cheng Road, No. 28 excellent building, block A, floor 8

Applicant before: Century Light Technology Development (Beijing) Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171229