CN107872437A - A kind of method, apparatus and server for service request - Google Patents
A kind of method, apparatus and server for service request Download PDFInfo
- Publication number
- CN107872437A CN107872437A CN201610857223.9A CN201610857223A CN107872437A CN 107872437 A CN107872437 A CN 107872437A CN 201610857223 A CN201610857223 A CN 201610857223A CN 107872437 A CN107872437 A CN 107872437A
- Authority
- CN
- China
- Prior art keywords
- data
- request
- blocker
- file
- specific field
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
Abstract
This programme embodiment provides a kind of method, apparatus and system for service request.This programme embodiment is applied to the server for being configured with least one blocker, and each blocker is configured with least one data interaction interface, and each data interaction interface is used for Various types of data request and the related data for transmitting a kind of business;When receiving the request of data of client transmission, request of data is sent by the data interaction interface of itself, request of data is any one in Various types of data request under the data interaction interface;And the first data returned by the data interaction interface server of itself in response to request of data;According to the specific field related to request of data, the first data are entered with row format conversion, to obtain the second data corresponding with specific field;Second data are sent to client, higher to solve data interaction cost in the prior art between client and server, data interaction is less efficient, and server processing load it is larger the problem of.
Description
【Technical field】
This programme is related to Internet technical field, more particularly to a kind of method, apparatus and server for service request.
【Background technology】
In the prior art, for every kind of business, for example, order business or diary service, server is required for client
End provides different data, services, for example, data query service and data download service, therefore server is needed for every kind of business
Every data, services, database service interface corresponding to exploitation.But for same business, the reality of different pieces of information service interface
Existing roughly the same, simply the processing to data is different, but the data content obtained after handling is identical.Fig. 1 is refer to, it is
It is used for the exemplary plot of the server of service request in the prior art, as shown in figure 1, in the prior art, for every kind of business, client
End needs the inquiry service interface of the business provided to server to send inquiry request, and inquiry service interface processes data into
Data are inquired about, or, the download service interface of the business provided to server sends download request, and download service interface is by number
According to being processed into downloading data.For same business, because content identical data can be done difference by different database service interfaces
Format analysis processing, to meet the needs of different, so in being got respectively by two database service interfaces under same business
Hold identical, but data that form is different.
For the same group of data in every kind of business, server needs to define multiple different database service interfaces respectively in fact
Existing different service, client need to call multiple different database service interfaces to obtain content identical data, add visitor
Data interaction cost between family end and server, reduces data interaction efficiency, also add the processing load of server.
【The content of the invention】
In view of this, this programme embodiment provides a kind of method and device for service request, existing to solve
Data interaction cost in technology between client and server is higher, and data interaction is less efficient, and the processing of server
Bear the problem of larger.
The one side of this programme embodiment, there is provided a kind of method for service request, it is at least one applied to being configured with
The server of blocker, each blocker are configured with least one data interaction interface, and each data interaction interface is used for
Transmit Various types of data request and the related data of a kind of business;Methods described is performed on each blocker;Including:
When receiving the request of data of client transmission, sending the data by the data interaction interface of itself please
Ask, the request of data is any one in Various types of data request under the data interaction interface;And number for passing through itself
The first data returned according to the interactive interface reception server in response to the request of data;
According to the specific field related to the request of data, first data are entered with row format conversion, with obtain with
Second data corresponding to the specific field;
Second data are sent to the client.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, according to it is described
The related specific field of request of data, first data are entered with row format conversion, it is corresponding with the specific field to obtain
Second data, including:
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;
Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, by the link of first file of generation
As second data.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, according to it is described
The related specific field of request of data, first data are entered with row format conversion, it is corresponding with the specific field to obtain
Second data, including:
According to the type field included in the request of data, data format corresponding to the type field is determined;
First data are entered with row format conversion using the finger data format, to generate the second file;
Using second file of generation as second data, or, by the link of second file of generation
As second data.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described by certainly
Before the data interaction interface of body sends the request of data, methods described also includes:From the request of data described in extraction
Specific field, and the specific field to extracting stores;
According to the specific field related to the request of data, first data are entered before row format conversion, it is described
Method also includes:Obtain the specific field of storage.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, by described second
Data are sent to the client, including:
Generate the header information of request response;
Using second data of generation and the header information, request response is generated;
The request response is sent to the client.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described by certainly
The first data that server described in the data interaction interface of body returns in response to the request of data, including:
The data type information returned by the data interaction interface of itself, the data type information, which includes, to be referred to
Determine field, first data are included in the specific field;
First data are obtained from the specific field of the data type information.
The one side of this programme embodiment, there is provided a kind of device for service request, it is at least one applied to being configured with
The server of blocker, each blocker are configured with least one data interaction interface, and each data interaction interface is used for
Transmit Various types of data request and the related data of a kind of business;Described device is arranged on each blocker;Including:
First I/O unit, for when receiving the request of data of client transmission, passing through place blocker
Data interaction interface sends the request of data, and the request of data is appointing in Various types of data request under the data interaction interface
Meaning one;And it is additionally operable to by server described in the data interaction interface of place blocker in response to the data
Ask the first data returned;
Data processing unit, for according to the specific field related to the request of data, being carried out to first data
Form is changed, to obtain the second data corresponding with the specific field;
Second I/O unit, for second data to be sent into the client.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, at the data
Unit is managed, is specifically used for:
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;
Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, by the link of first file of generation
As second data.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, at the data
Unit is managed, is specifically used for:
According to the type field included in the request of data, data format corresponding to the type field is determined;
First data are entered with row format conversion using the finger data format, to generate the second file;
Using second file of generation as second data, or, by the link of second file of generation
As second data.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, described device is also
Including:
Extraction unit, for being sent in first I/O unit by the data interaction interface of place blocker
Before the request of data, the specific field is extracted from the request of data;
Memory cell, for being stored to the specific field that the extraction unit extracts;
Acquiring unit, in the data processing unit according to the specific field related to the request of data, to institute
State the first data to enter before row format conversion, obtain the specific field of the memory cell storage.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, described second is defeated
Enter/output unit, be specifically used for:
Generate the header information of request response;
Using second data of generation and the header information, request response is generated;
The request response is sent to the client.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, described first is defeated
Enter/output unit, be specifically used for:
The data type information returned by the data interaction interface of place blocker, the data type information
Comprising specific field, first data are included in the specific field;
First data are obtained from the specific field of the data type information.
The one side of this programme embodiment, there is provided a kind of server, including at least one blocker, each blocker
It is configured with least one data interaction interface;
Each blocker includes the above-mentioned device for service request.
The one side of this programme embodiment, a kind of method for service request is also provided, it is described to block applied to blocker
Cut device and be configured with least one data interaction interface, each data interaction interface is used for the Various types of data request for transmitting a kind of business
And related data;Including:
When receiving the request of data of client transmission, sending the data by the data interaction interface of itself please
Ask, the request of data is any one in Various types of data request under the data interaction interface;And number for passing through itself
The first data returned in response to the request of data are received according to interactive interface;
According to the specific field related to the request of data, first data are entered with row format conversion, with obtain with
Second data corresponding to the specific field;
Second data are sent to the client.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, according to it is described
The related specific field of request of data, first data are entered with row format conversion, it is corresponding with the specific field to obtain
Second data, including:
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;
Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, by the link of first file of generation
As second data.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, according to it is described
The related specific field of request of data, first data are entered with row format conversion, it is corresponding with the specific field to obtain
Second data, including:
According to the type field included in the request of data, data format corresponding to the type field is determined;
First data are entered with row format conversion using the finger data format, to generate the second file;
Using second file of generation as second data, or, by the link of second file of generation
As second data.
The one side of this programme embodiment, a kind of device for service request is also provided, is arranged on blocker, it is described
Blocker is configured with least one data interaction interface, and each data interaction interface please for transmitting a kind of Various types of data of business
Ask and related data;Including:
First I/O unit, when receiving the request of data of client transmission, connect by the data interaction of itself
Mouth sends the request of data, and the request of data is any one in Various types of data request under the data interaction interface;With
And the first data returned by the data interaction interface of itself in response to the request of data;
Processing unit, for according to the specific field related to the request of data, entering row format to first data
Conversion, to obtain the second data corresponding with the specific field;
Second I/O unit, second data are sent to the client.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the processing are single
Member, it is specifically used for:
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;
Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, by the link of first file of generation
As second data.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the processing are single
Member, it is specifically used for:
According to the type field included in the request of data, data format corresponding to the type field is determined;
First data are entered with row format conversion using the finger data format, to generate the second file;
Using second file of generation as second data, or, by the link of second file of generation
As second data.
As can be seen from the above technical solutions, this programme embodiment has the advantages that:
In this programme embodiment, in the server for every kind of one data interactive interface of service definition, for every kind of industry
Different pieces of information of being engaged in request, all realizes the transmission of request of data using a data interactive interface and obtains related data, by intercepting
Device is uniformly carried out according to the specific field related to request of data to the data that one or more data interaction interface returns
Form is changed, and can obtain the data matched with request of data.With in the prior art, every kind of business needs to utilize multiple data
The mode that service interface carries out acquisition and the processing of data is compared, and the technical scheme that this programme embodiment is provided can be reduced
The number of database service interface, for every kind of business, one data interactive interface of client call, therefore reduce client with
Data interaction cost between server, improves data interaction efficiency, also reduces the processing load of server.Solve existing
Have that the data interaction cost in technology between client and server is higher, and data interaction is less efficient, and the place of server
The problem of reason burden is larger.
【Brief description of the drawings】
In order to illustrate more clearly of the technical scheme of this programme embodiment, below by embodiment it is required use it is attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of this programme, for this area
For those of ordinary skill, without having to pay creative labor, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is the exemplary plot for the server for being used for service request in the prior art;
Fig. 2 is the first pass schematic diagram for the method for service request that this programme embodiment is provided;
Fig. 3 is the first exemplary plot of the system applied for the method for service request that this programme embodiment is provided;
Fig. 4 is the second procedure instance graph for the method for service request that this programme embodiment is provided;
Fig. 5 is the second exemplary plot of the system applied for the method for service request that this programme embodiment is provided;
Fig. 6 is the 3rd schematic flow sheet of the method for service request that this programme embodiment is provided;
Fig. 7 is the 4th flow example figure of the method for service request that this programme embodiment is provided;
Fig. 8 is the 3rd exemplary plot of the system applied for the method for service request that this programme embodiment is provided;
Fig. 9 is the 5th flow example figure of the method for service request that this programme embodiment is provided;
Figure 10 is the 6th flow example figure of the method for service request that this programme embodiment is provided;
Figure 11 is the 4th exemplary plot of the system applied for the method for service request that this programme embodiment is provided;
Figure 12 is the first functional block diagram of the device for service request that this programme embodiment is provided;
Figure 13 is the structural representation for the server that this programme embodiment is provided;
Figure 14 is the second functional block diagram of the device for service request that this programme embodiment is provided
Figure 15 is the simplified block diagram of blocker 100.
【Embodiment】
In order to be better understood from the technical scheme of this programme, this programme embodiment is retouched in detail below in conjunction with the accompanying drawings
State.
It will be appreciated that described embodiment is only this programme part of the embodiment, rather than whole embodiments.Base
Embodiment in this programme, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
Its embodiment, belong to the scope of this programme protection.
The term used in this programme embodiment is only merely for the purpose of description specific embodiment, and is not intended to be limiting
This programme." one kind ", " described " and "the" of singulative used in this programme embodiment and appended claims
It is also intended to including most forms, unless context clearly shows that other implications.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent
There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when the detection (condition of statement
Or event) when " or " in response to detecting (condition or event of statement) ".
This programme embodiment provides a kind of method for service request, and the method for being used for service request is applied to configuration
There is the server of at least one blocker, each blocker is configured with least one data interaction interface.
In this programme embodiment, the groundwork flow of blocker includes startup service → interception request → processing interception please
Ask, it is specific as follows:
Start service:
1st, the blocker configured in the server can be run in the lump with startup of server;
2nd, after startup of server, the blocker configured in the server brings into operation according to the enabled instruction received.
Wherein, the instruction that blocker receives can be issued by client, or, can also be by server where blocker
Issue;Can also by the server institute in the cluster other servers issue.
Interception request:
During blocker is run, the various requests that the server can be sent to client are monitored;Intercept
The request listened to is identified device, if identifying the request of data that the request intercepted belongs in this programme embodiment,
Then the request is intercepted and stored in equipment caching;If identify that the request listened to is not belonging in this programme embodiment
The request intercepted directly can be directly forwarded to corresponding interface in the server by request of data, blocker.
Handle interception request:
The request in caching is handled according to specified order.
Blocker in this programme can be realized by computer program, or, it can also be independently arranged with corresponding work(
The entity computing device of energy is realized.If being realized by computer program, blocker can by such as C language, C Plus Plus,
The computer programming languages such as JavaScript language are realized.
For example, the function of blocker can provide interception service for following several servers:
It is responsible for the server (such as webserver, being referred to as Web server) to client offer document, in cluster
It is responsible for being responsible in the server or cluster of data processing the server of data storage in the responsible server to communicate, cluster.
In this programme embodiment, each data interaction interface is used for Various types of data request and the dependency number for transmitting a kind of business
According to.It should be noted that the function (such as query function and download function) being related to for every kind of business in this programme embodiment is fixed
An adopted data interactive interface, can be with other interfaces of Additional definitions, or in data with existing interactive interface for other functions
The new function of lower increase.
In this programme embodiment, in the server for every kind of one data interactive interface of service definition, for every kind of industry
Business is all using realizing the transmission of request of data using a data interactive interface and obtain related data.With in the prior art, often
The mode of acquisition and processing that kind business needs to carry out data using two database service interfaces is compared, this programme embodiment institute
The technical scheme of offer can reduce the number of database service interface, solve in the prior art between client and server
The problem of data interaction cost is higher.
The processing method of request in caching is specifically described blocker mentioned above below.
The method for service request that this programme embodiment is provided is performed in each blocker.Fig. 2 is refer to, its
The first pass schematic diagram of the method for service request provided by this programme embodiment, as illustrated, this method includes
Following steps:
S201, when receiving the request of data of client transmission, sending data by the data interaction interface of itself please
To ask, the request of data is any one in Various types of data request under the data interaction interface, and, handed over by the data of itself
The first data that mutual interface the reception server returns in response to the request of data.
S202, according to the specific field related to the request of data, the first data are entered with row format conversion, to obtain and refer to
Determine the second data corresponding to field.
S203, the second data are sent to client.
In this programme embodiment, by blocker according to the specific field related to request of data, uniformly to one or
The data that multiple data interaction interfaces return enter row format conversion, can obtain the data matched with request of data.With it is existing
In technology, the mode that every kind of business needs to carry out service request using multiple database service interfaces is compared, in this programme embodiment,
For every kind of business, one data interactive interface of client call, therefore reduce the friendship of the data between client and server
Mutual cost, data interaction efficiency is improved, also reduce the processing load of server.Solve client in the prior art and clothes
Be engaged in device between data interaction cost it is higher, data interaction is less efficient, and server processing load it is larger the problem of.
In a concrete implementation scheme, above-mentioned client can be mounted in the application program in terminal
(nativeApp), or a web page program (webApp) of the browser in terminal is can also be, the embodiment of the present invention is to this
Without limiting.It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to personal computer
(Personal Computer, PC), radio hand-held equipment, tablet personal computer (Tablet Computer), mobile phone, wearable device
Deng.
Fig. 3 is refer to, the of its system applied for the method for service request provided by this programme embodiment
One exemplary plot, as shown in figure 3, client and server can be included in the system, at least one block can be configured in server
Device is cut, at least one data interaction interface is configured with each blocker.The corresponding data interactive interface of every kind of business, each
Data interaction interface is used for Various types of data request and the related data for transmitting a kind of business, therefore, each data of every kind of business
Request can correspond to and be sent to a data interactive interface, and the data to be met with a response by a data interactive interface.Need
Illustrate, example carried out using a blocker and N number of data interaction interface (N is integer more than or equal to 1) in Fig. 3,
It is not limited in this programme embodiment in server only configure a blocker, the configuration quantity of blocker can be according to actual need
Disposed, this programme embodiment is to this without being particularly limited to.
" in S201 when receiving the request of data of client transmission, the number of itself is passed through to this programme embodiment below
Request of data is sent according to interactive interface, the request of data is any one in Various types of data request under the data interaction interface,
And the first data returned by the data interaction interface server of itself in response to the request of data " realization side
Method is specifically described.The step can specifically include:
As shown in figure 3, in this programme embodiment, for each blocker at least one blocker, it is likely to connect
Receive request of data.The industry that S201~S203 is provided in this programme can be used for the blocker for receiving request of data
The processing method for data of being engaged in, the data asked the request of data are handled.
Fig. 4 is refer to, the second procedure instance graph of its method for service request provided by this programme embodiment,
As shown in Figure 3 and Figure 4, in this programme embodiment, the blocker disposed in server can receive the data of client transmission
Request, blocker need the request of data for sending the client, sent by the data interaction interface of itself.Will in blocker
Before sending the request of data by the data interaction interface of itself, blocker needs extraction and the number from the request of data
According to the related specific field of request;Then, blocker stores to the specific field related to the request of data extracted.
As shown in figure 4, in a concrete implementation scheme, blocker will can extract related to the request of data
Specific field store into environmental variance, then again by environmental variance storage arrive designated storage location.The designated storage location
Can be deployed in the caching of blocker, as blocker caching in the memory space independently opened up, or, this specify storage
Position can also be local offline memory device, or, the designated storage location can also be local high-speed processing apparatus,
It will be understood by those skilled in the art that this programme is limited without special this.
It is understood that because blocker is stored to the specific field related to request of data of extraction, because
This, when blocker needs to use the specific field related to the request of data, can extract stored with request of data phase
The specific field of pass.
It is understood that because blocker may receive multiple request of data, therefore it is related to request of data
Specific field is there is also multiple,, can be to every in this programme embodiment in order to realize the storage to multiple different specific fields
Individual specific field is individually stored, and each specific field is stored in some partition holding in above-mentioned designated storage location.
It can in addition contain the corresponding relation between the request of further data storage and partition holding, store in the partition holding be with it is right
The specific field for the request of data correlation answered.Certainly, this is a kind of implementation, and this programme is only used for for example, not
For limiting this programme embodiment.
It should be noted that equivalent to one memory space of environmental variance, can be used for use required for storing blocker
The specific field related to the request of data, and when blocker needs to use the specific field related to the request of data,
The specific field related to the request of data is provided to blocker.
Further, as shown in Figure 3 and Figure 4, blocker is carrying out the specific field related to request of data to store it
Afterwards, data interaction corresponding to the type of service on the blocker can be determined according to the type of service carried in the request of data
Interface, so as to which the request of data received is sent by the data interaction interface.
Further, can basis after the request of data that server is sent by data interaction interface to blocker
The request of data obtains the first data.
In a concrete implementation scheme, the path for obtaining the first data is carried in the request of data, therefore, according to this
Request of data, server can inquire corresponding first data from database.
Further, server is after the first data are obtained, by receiving the data interaction interface of request of data, to blocking
Cut device and return to the first data, so, as shown in Figure 3 and Figure 4, blocker can pass through the data interaction interface of itself
The first data that the server returns in response to the request of data.
In a concrete implementation scheme, server can will return to the first data storage of blocker in data class
In the specific field of type information, so, the data type that blocker can is returned by the data interaction interface of itself
Information, and first data are obtained from the specific field of the data type information.
So that data type information is base class as an example, server can will return to the first data storage of blocker in base class
Map attribute fields in, the base class is then sent to blocker, so, the data interaction that blocker can passes through itself
Interface, receives the base class of server return, and obtains the first data from the Map attribute fields of the base class.
It is understood that multiple fields can be included in base class, enter in this programme embodiment by taking Map attribute fields as an example
Row explanation, can also be by the first data storage in other fields, as long as consulting agreement between blocker and server in advance
Good, this programme embodiment is to this without being particularly limited to.
It should be noted that server can be by the fixed specific field using in a data type information (as above
State the Map attribute fields in base class) the first data are carried, the data type information is then sent to blocker, so, blocked
The first data that device can is returned to server by all data interaction interfaces using same section of code logic are cut to carry
Take processing, it is not necessary to develop different code logics to complete the extraction process of returned data, therefore reduce opening for blocker
Send out cost.
Below to this programme embodiment " according to the specific field related to the request of data in S202, to described first
Data enter row format conversion, to obtain corresponding with the specific field the second data " implementation method be specifically described.Should
Step can specifically include:
In a concrete implementation scheme, as shown in figure 4, blocker takes by the data interaction interface of itself
After the first data for being returned in response to request of data of business device, being asked with the data of storing before is extracted from designated storage location
Related specific field is sought, then according to the specific field related to the request of data, the first data returned to server
Enter row format conversion, to obtain the second data corresponding with specific field.
In this programme embodiment, the specific field related to request of data can be the rear asyllabia included in request of data
Section, or, or the type field included in request of data.For example, if request of data is Uniform Resource Identifier
(Uniform Resource Identifier, URI), the specific field related to the request of data are to be included in request of data
Suffix field.Or in another example, if request of data be URL (Uniform Resource Locator,
URL), the specific field related to the request of data is the type field included in request of data.
In a concrete implementation scheme, as shown in Figure 3 and Figure 4, according to the rear asyllabia included in the request of data
Section, determines data format corresponding to the suffix field;Then, row format is entered to first data using the data format
Conversion, to generate the first file;Finally, using first file of generation as second data, or, by the institute of generation
The link of the first file is stated as second data.
Or in another concrete implementation scheme, as shown in Figure 3 and Figure 4, according to what is included in the request of data
Type field, determine data format corresponding to the type field;Then, first data are entered using the data format
Row format is changed, to generate the second file;Finally, using second file of generation as second data, or, by life
Into second file link as second data.
It is understood that in this programme embodiment, blocker, can be true according to the specific field related to request of data
Fixed corresponding data format, and then, for every kind of business, a number can be called by the first data conversion into different data formats
According to interactive interface, therefore, while interface quantity is reduced, the different pieces of information demand for meeting client, Neng Gouxiang are remained able to
Client provides different data, services, such as download function and query function.
It is understood that the file in Fig. 4 can represent above-mentioned first file or above-mentioned second file.
In a concrete implementation scheme, request of data can include but is not limited to:Inquiry request or download request.
Wherein, the suffix field or type field included in request of data can indicate the request of data be inquiry request or under
Carry request.
, can be according to pair between default suffix field and data format for example, if request of data is inquiry request
It should be related to, determine data format corresponding to suffix field.
In another example if request of data is download request, blocker needs to inquire about the default request list for supporting to download,
The corresponding relation of the specific field and data template related to request of data is included in the request list.If inquire support to download
Request list in include the specific field corresponding data template related to request of data, then it is corresponding can to obtain the specific field
Data template, the data template is as data format corresponding to the specific field.
In this programme embodiment, the request list for supporting to download can be pre-set, the request list that the support is downloaded can
Using a configuration item as blocker.In the request list, by the specific field and data template related to request of data
It is associated.
Conversely, if blocker is inquired in the request list for supporting to download not comprising data mould corresponding to the specific field
Plate, blocker send data interaction interface to client and do not support the prompt message of down operation, in order to the client to
Family exports the prompt message, to prompt user data interactive interface not support down operation.In this way, it would not be looked for because of blocker
Occurs mistake less than data template.
It should be noted that on the premise of blocker has query function, if it is desired to which the download of corresponding data is provided
During function, corresponding data template can be increased, the first data are handled using data template, obtain and download function is provided
When required data, it is not necessary to the new data interaction interface of Additional definitions one realizes download function again, so reducing
The development cost of data interaction interface in server, improve the development efficiency of server.
Below to the method for this programme embodiment " second data are sent to the client by blocker in S203 "
It is specifically described.The step can specifically include:
In a concrete implementation scheme, blocker can generate the header information of request response, then, utilize
The second data and header information of generation, request response is generated, finally, request response is sent to client.
If request of data corresponding to the request response is download request, wherein, the report in the request response
Specific field in header can serve to indicate that the second data carried in request response download to client, this
Sample, client can be judged to carry in request response according to the specific field in the header information of request response
The second data need it is locally downloading, so as to be made a distinction with the second data obtained by inquiry request.
Below so that data interaction interface is order interface as an example, the above-mentioned method for service request illustrate
It is bright.
Fig. 5 is refer to, its system applied for the method for service request provided by this programme one embodiment
The second exemplary plot, as shown in figure 5, can exemplarily and without limitation, in server dispose two data interactive interfaces,
A data interactive interface in the present embodiment can be implemented as order (Order) interface, for alignment processing and order industry
Related data of being engaged in request and related data, such as order inquiries data and/or order downloading data.Another data interaction interface
Daily record (Daily) interface can be implemented as, for alignment processing and diary service related data is asked and related data, such as day
Will inquires about data and/or daily record downloading data.It will be understood by those skilled in the art that under other service conditions, can also be real
Now to complete a variety of different pieces of information interactive interfaces of other business functions, the data interaction interface that this example is neutralized in the case of other is equal
Multiple functions foregoing in the disclosure can be realized.
This programme embodiment gives a kind of method for service request, and this method is performed on blocker, the interception
Device is configured with least one data interaction interface, each data interaction interface be used for the Various types of data request for transmitting a kind of business and
Related data.
Fig. 6 is refer to, the 3rd schematic flow sheet of its method for service request provided by this programme embodiment,
As illustrated, this method comprises the following steps:
S601, when receiving the request of data of client transmission, the number is sent by the data interaction interface of itself
According to request, the request of data is any one in Various types of data request under the data interaction interface;And by itself
The first data that the data interaction interface returns in response to the request of data.
S602, according to the specific field related to the request of data, first data are entered with row format conversion, to obtain
Obtain the second data corresponding with the specific field.
S603, second data are sent to the client.
For example, " according to the specific field related to the request of data in S602, lattice are carried out to first data
Formula is changed, to obtain the second data corresponding with the specific field " following two implementations can be included but is not limited to:
The first:According to the suffix field included in the request of data, data lattice corresponding to the suffix field are determined
Formula;Using the data format first data are entered with row format conversion, to generate the first file;By described the first of generation
File as second data, or, using the link of first file of generation as second data.
Second:According to the type field included in the request of data, data lattice corresponding to the type field are determined
Formula;First data are entered with row format conversion using the finger data format, to generate the second file;By described the of generation
Two files as second data, or, using the link of second file of generation as second data.
Fig. 7 is refer to, the 4th flow example figure of its method for service request provided by this programme embodiment,
Fig. 8 is refer to, the 3rd exemplary plot of its system applied for the method for service request provided by this programme embodiment,
As shown in Figure 7 and Figure 8, the present embodiment is using request of data as http:Exemplified by //a.com/data/order.json, to for industry
The implementation for the method for being engaged in asking is illustrated.It will be understood by those skilled in the art that under other service conditions, this
The method of scheme can be used for the request of data for handling various other types, include but is not limited to:Shown in xml forms, Fig. 9
Xls forms.
As shown in fig. 7, this method may comprise steps of:
S701, blocker receive the request of data http that client is sent://a.com/data/order.json.
S702, blocker extract the suffix field " json " included in the request of data from the request of data, and should
Environmental variance is arrived in suffix field " json " storage.
S703, blocker is according to request of data http:The type of service carried in //a.com/data/order.json
" order ", it is order business to know type of service corresponding to the request of data, and data interaction interface corresponding to the order business
For Order interfaces, therefore, blocker sends request of data http by the Order interfaces of itself://a.com/data/
order.json。
S704, blocker the reception server is in response to request of data http://a.com/data/order.json is returned
Base class.
S705, blocker extract the first data from the Map attribute fields in the base class received.
S706, blocker obtain the suffix field " json " being stored in before from environmental variance.
S707, blocker judge that its corresponding data format is JavaScript object according to the suffix field " json "
Representation (JavaScript Object Notation, JSON) form.
S708, file of the blocker by the first data conversion into JSON forms.
The file of JSON forms is returned to client by S709, blocker.
Fig. 9 is refer to, the 5th flow example figure of its method for service request provided by this programme embodiment,
As shown in Figure 8 and Figure 9, the present embodiment is using request of data as http:Exemplified by //a.com/data/order.xls, to for business
The implementation of the method for request is illustrated.
As shown in figure 9, this method may comprise steps of:
S901, blocker receive the request of data http that client is sent://a.com/data/order.xls.
S902, blocker extract the suffix field " xls " included in the request of data from the request of data, and by after this
Environmental variance is arrived in asyllabia section " xls " storage.
S903, blocker is according to request of data http:The type of service carried in //a.com/data/order.xls
" order ", it is order business to know type of service corresponding to the request of data, and data interaction interface corresponding to the order business
For Order interfaces, therefore, blocker sends request of data http by the Order interfaces of itself://a.com/data/
order.xls。
S904, blocker the reception server is in response to request of data http://a.com/data/order.xls is returned
Base class.
S905, blocker extract the first data from the Map attribute fields in the base class received.
S906, blocker obtain the suffix field " xls " being stored in before from environmental variance.
S907, blocker inquire about the default request list for supporting to download, and inquire according to the suffix field " xls "
The data template of data template, i.e. Excel forms corresponding to suffix field " xls ".
S908, blocker write first data into the data template of corresponding Excel forms, generate the text of Excel forms
Part.
S909, blocker generation header information, and ask response to disappear according to the file generated of header information and Excel forms
Breath.For example, the header information of request response can be Content-Disposition:attachment;filename
=" filename.xls ".
The request response is returned to client by S910, blocker.
It is understood that by above-described embodiment six and embodiment seven as can be seen that for order business, unified use
One different request of data of two kinds to the order business of data interactive interface is transmitted, then further according in request of data
Suffix field, the data of return are carried out with different processing, a kind of processing is into JSON forms by the data conversion of return
Data (inquire about data), and another kind is the data (i.e. downloading data) into Excel forms by the data conversion of return.Can either
Guarantee provides a user the different types of service of the order business, while can also reduce the quantity of database service interface, right
For client, for order business, a data interactive interface is called to obtain inquiry data or downloading data, therefore
The data interaction cost between client and server is reduced, improves data interaction efficiency, also reduces the place of server
Reason burden.
Below by taking " specific field related to request of data is the type field that includes in request of data " as an example, to above-mentioned
Method for service request is illustrated.
Figure 10 is refer to, the 6th flow example of its method for service request provided by this programme embodiment
Figure, refer to Figure 11, the 4th exemplary plot of its system applied by the system processing method that this programme embodiment provides, such as
Shown in Figure 10 and Figure 11, the present embodiment is using request of data as http://a.comExemplified by type=xls, to for service request
The implementation of method be illustrated.
As shown in Figure 10, this method may comprise steps of:
S1001, blocker receive the request of data http that client is sent://a.comType=xls.
S1002, blocker extract the type field " xls " included in the request of data from the request of data, and should
Environmental variance is arrived in type field " xls " storage.
S1003, blocker send request of data http by the data interaction interface of itself://a.comType=
xls。
S1004, blocker the reception server is in response to request of data http://a.comThe base that type=xls is returned
Class.
S1005, blocker extract the first data from the Map attribute fields in the base class received.
S1006, blocker obtain the type field " xls " being stored in before from environmental variance.
S1007, blocker inquire about the default request list for supporting to download, and inquire according to the type field " xls "
The data template of data template, i.e. Excel forms corresponding to type field " xls ".
S1008, blocker generate Excel forms using the data template for writing first data into corresponding Excel forms
File.
S1009, blocker generation header information, and ask to respond according to the file generated of header information and Excel forms
Message.
The request response is returned to client by S1010, blocker.
This programme embodiment gives a kind of device for service request.Figure 12 is refer to, it is this programme embodiment
First functional block diagram of the device for service request provided.Applied to the service for being configured with least one blocker
Device, each blocker are configured with least one data interaction interface, and each data interaction interface is used to transmit a kind of business
Various types of data request and related data, described device be arranged on each blocker.As shown in figure 12, the device bag
Include:
First I/O unit 10, for when receiving the request of data of client transmission, passing through place blocker
Data interaction interface send the request of data, the request of data is under the data interaction interface in Various types of data request
Any one;And it is additionally operable to by server described in the data interaction interface of place blocker in response to the number
The first data returned according to request;
Data processing unit 20, for according to the specific field related to the request of data, entering to first data
Row format is changed, to obtain the second data corresponding with the specific field;
Second I/O unit 30, for second data to be sent into the client.
In a concrete implementation scheme, the data processing unit 20, it is specifically used for:
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;
Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, by the link of first file of generation
As second data.
In another concrete implementation scheme, the data processing unit 20, it is specifically used for:
According to the type field included in the request of data, data format corresponding to the type field is determined;
First data are entered with row format conversion using the finger data format, to generate the second file;
Using second file of generation as second data, or, by the link of second file of generation
As second data.
In an optional implementation, described device also includes:
Extraction unit 40, for the data interaction interface for passing through place blocker in first I/O unit 10
Before sending the request of data, the specific field is extracted from the request of data;
Memory cell 50, the specific field for being extracted to the extraction unit 40 store;
Acquiring unit 60, in the data processing unit 20 according to the specific field related to the request of data,
First data are entered before row format conversion, obtain the specific field of the memory cell storage.
In a concrete implementation scheme, second I/O unit 30, it is specifically used for:
Generate the header information of request response;
Using second data of generation and the header information, request response is generated;
The request response is sent to the client.
In a concrete implementation scheme, first I/O unit 10, it is specifically used for:
The data type information returned by the data interaction interface of place blocker, the data type letter
Breath includes specific field, and first data are included in the specific field;
First data are obtained from the specific field of the data type information.
Each unit in the embodiment provided due to Figure 12 is able to carry out the method shown in Fig. 2~Fig. 5, Fig. 7~Figure 11, this
The part that embodiment is not described in detail, refer to the related description to Fig. 2~Fig. 5, Fig. 7~Figure 11.
This programme embodiment gives a kind of server.Figure 13 is refer to, its service provided by this programme embodiment
The structural representation of device, as shown in figure 13, server (are only shown including at least one blocker in Figure 13 with a blocker
Example), each blocker is configured with least one data interaction interface and (only shown in Figure 13 with a data interactive interface
Example), each blocker includes the device for service request shown in Figure 12.
This programme embodiment gives a kind of device for service request.Figure 14 is refer to, it is this programme embodiment
Second functional block diagram of the device for service request provided.The device is arranged on blocker, and the blocker is matched somebody with somebody
At least one data interaction interface is equipped with, each data interaction interface is used for Various types of data request and the correlation for transmitting a kind of business
Data;Described device includes:
First I/O unit 11, when receiving the request of data of client transmission, pass through the data interaction of itself
Interface sends the request of data, and the request of data is any one in Various types of data request under the data interaction interface;
And the first data returned by the data interaction interface of itself in response to the request of data;
Processing unit 12, for according to the specific field related to the request of data, lattice to be carried out to first data
Formula is changed, to obtain the second data corresponding with the specific field;
Second I/O unit 13, second data are sent to the client.
In a concrete implementation scheme, the processing unit 12, it is specifically used for:
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;
Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, by the link of first file of generation
As second data.
In another concrete implementation scheme, the processing unit 12, it is specifically used for:
According to the type field included in the request of data, data format corresponding to the type field is determined;
First data are entered with row format conversion using the finger data format, to generate the second file;
Using second file of generation as second data, or, by the link of second file of generation
As second data.
Each unit in the embodiment provided due to Figure 14 is able to carry out the method shown in Fig. 6~Figure 11, and the present embodiment is not
The part of detailed description, refer to the related description to Fig. 6~Figure 11.
Blocker can be realized by a series of computer executable instructions being stored in computer-readable medium, work as clothes
Be engaged in device in these computer executable instructions of computing device when, realize a series of functional steps.Specifically, realize following
Functional steps:
When receiving the request of data of client transmission, sending the data by the data interaction interface of itself please
Ask, the request of data is any one in Various types of data request under the data interaction interface;And number for passing through itself
The first data returned according to the interactive interface reception server in response to the request of data;And according to the data
Related specific field is asked, first data are entered with row format conversion, to obtain corresponding with the specific field second
Data, and second data are sent to the client.
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;Utilize
The data format enters row format conversion to first data, to generate the first file;First file of generation is made
For second data, or, using the link of first file of generation as second data.
According to the type field included in the request of data, data format corresponding to the type field is determined;Utilize
The finger data format enters row format conversion to first data, to generate the second file;By second file of generation
As second data, or, using the link of second file of generation as second data.
Before the data interaction interface by itself sends the request of data, institute is extracted from the request of data
Specific field is stated, and the specific field to extracting stores;And according to the designated word related to the request of data
Section, first data are entered before row format conversion, methods described also includes:Obtain the specific field of storage.
Generate the header information of request response;Then, using second data of generation and the header information,
Request response is generated, and the request response is sent to the client.
The data type information returned by the data interaction interface of itself, the data type information, which includes, to be referred to
Determine field, include first data in the specific field, and institute is obtained from the specific field of the data type information
State the first data.
Or realize following function step:
When receiving the request of data of client transmission, sending the data by the data interaction interface of itself please
Ask, the request of data is any one in Various types of data request under the data interaction interface;And number for passing through itself
The first data returned in response to the request of data are received according to interactive interface;According to the designated word related to the request of data
Section, first data are entered with row format conversion, to obtain the second data corresponding with the specific field;Described second is counted
According to being sent to the client.
According to the specific field related to the request of data, first data are entered with row format conversion, with obtain with
Second data corresponding to the specific field, including:According to the suffix field included in the request of data, the suffix is determined
Data format corresponding to field;Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, using the link of first file of generation as described in
Second data.
According to the type field included in the request of data, data format corresponding to the type field is determined;Utilize
The finger data format enters row format conversion to first data, to generate the second file;By second file of generation
As second data, or, using the link of second file of generation as second data.
In addition, blocker can also refer to Figure 15, it is the simplified block diagram of blocker 100.The blocker 100 can wrap
The processor 101 being connected with one or more data storage facilities is included, the data storage facility can include the He of storage medium 102
Internal storage location 103.Blocker 100 can also include input interface 104, output interface 105 and data interactive interface 106, be used for
Communicated with another device or system.By processor 101 CPU perform program code be storable in storage medium 102 or
In internal storage location 103.
Processor 101 in blocker 100 calls the program code for being stored in storage medium 102 or internal storage location 103, with
Perform following each step:
When receiving the request of data that client is sent by the input interface 104, pass through the number of place blocker
The request of data is sent according to interactive interface 106, the request of data is in Various types of data request under the data interaction interface
Any one;And the server is received in response to the data by the data interaction interface 106 of place blocker
Ask the first data returned;And according to the specific field related to the request of data, lattice are carried out to first data
Formula is changed, to obtain the second data corresponding with the specific field;And by the output interface 105 by described second
Data are sent to the client.
In a concrete implementation scheme, the processor 101 is specifically used for:
According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;
Using the data format first data are entered with row format conversion, to generate the first file;
Using first file of generation as second data, or, by the link of first file of generation
As second data.
In another concrete implementation scheme, the processor 101 is specifically used for:
According to the type field included in the request of data, data format corresponding to the type field is determined;
First data are entered with row format conversion using the finger data format, to generate the second file;
Using second file of generation as second data, or, by the link of second file of generation
As second data.
In an optional implementation, the processor 101 is additionally operable to:
, please from the data before the data interaction interface 106 by place blocker sends the request of data
The middle extraction specific field is sought, and the specific field to extracting stores;
And according to the specific field related to the request of data, first data are entered before row format conversion,
Obtain the specific field of storage.
In a concrete implementation scheme, the processor 101 is specifically used for:Generate the header letter of request response
Breath;And using second data of generation and the header information, generate request response;And by described defeated
Outgoing interface 105 sends the request response to the client.
In a concrete implementation scheme, the processor 101 is specifically used for:Pass through the data of place blocker
Interactive interface 106 receives the data type information returned, and the data type information includes specific field, in the specific field
Include first data.And first data are obtained from the specific field of the data type information.
Or the processor 101 in blocker 100 calls the program generation for being stored in storage medium 102 or internal storage location 103
Code, to perform following each step:
When receiving the request of data that client is sent by the input interface 104, pass through the number of place blocker
The request of data is sent according to interactive interface 106, the request of data is in Various types of data request under the data interaction interface
Any one;And receive returned in response to the request of data the by the data interaction interface 106 of place blocker
One data;According to the specific field related to the request of data, first data are entered with row format conversion, with acquisition and institute
State the second data corresponding to specific field;And second data are sent to by the client by the output interface 105
End.
In a concrete implementation scheme, the processor 101 is specifically used for:According to what is included in the request of data
Suffix field, determine data format corresponding to the suffix field;Lattice are carried out to first data using the data format
Formula is changed, to generate the first file;Using first file of generation as second data, or, by described in generation
The link of first file is as second data.
In a concrete implementation scheme, the processor 101 is specifically used for:According to what is included in the request of data
Type field, determine data format corresponding to the type field;First data are carried out using the finger data format
Form is changed, to generate the second file;Using second file of generation as second data, or, by the institute of generation
The link of the second file is stated as second data.
In above-described embodiment, storage medium can be read-only storage (Read-Only Memory, ROM), or readable
Write, such as hard disk, flash memory.Internal storage location can be random access memory (Random Access Memory, RAM).Internal memory
Unit can be with processor physical integration or integrated in memory or being configured to single unit.
Processor is the control centre of the said equipment (equipment is above-mentioned server or above-mentioned client), and at offer
Device is managed, for execute instruction, carries out interrupt operation, there is provided clocking capability and various other functions.Alternatively, processor bag
One or more CPU (CPU) are included, such as the CPU 0 and CPU 1 shown in Figure 16.The said equipment includes one
Or multiple processor.Processor can be monokaryon (single CPU) processor or multinuclear (multi -CPU) processor.Unless otherwise stated,
It is described as the part of such as processor or memory for performing task and can realize as universal component, it is temporarily used for given
Time performs task, or is embodied as being manufactured specifically for the particular elements for performing the task.Terminology used herein " processor "
Refer to one or more devices, circuit and/or process cores, for processing data, such as computer program instructions.
It is storable in by the CPU of the processor program codes performed in internal storage location or storage medium.Alternatively, it is stored in
Program code in storage medium can be copied into internal storage location and be performed so as to the CPU of processor.Processor is executable at least
One kernel (such as LINUXTM、UNIXTM、WINDOWSTM、ANDROIDTM、IOSTM), it is well known that the kernel is used to pass through control
Execution, control and the communication of peripheral unit and the use of control computer device resource of other programs or process are made to control
The operation of the said equipment.
Said elements in the said equipment can be connected to each other by bus, bus such as data/address bus, address bus, control
One of bus, expansion bus and local bus or its any combination.
This programme embodiment gives a kind of server, and the server blocks including what at least one embodiment 11 was provided
Cut device.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments that this programme is provided, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, only a kind of division of logic function, can there is other dividing mode, for example, multiple units or group when actually realizing
Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown
Or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit it is indirect
Coupling or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of this programme can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are causing a computer
It is each that device (can be personal computer, server, or network equipment etc.) or processor (Processor) perform this programme
The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
Can be with the medium of store program codes.
The preferred embodiment of this programme is the foregoing is only, not limiting this programme, all essences in this programme
God any modification, equivalent substitution and improvements done etc., should be included within the scope of this programme protection with principle.
Claims (19)
- A kind of 1. method for service request, it is characterised in that applied to the server for being configured with least one blocker, often The individual blocker is configured with least one data interaction interface, and each data interaction interface is used to transmit a kind of all kinds of of business Request of data and related data;Methods described is performed on each blocker;Methods described includes:When receiving the request of data of client transmission, the request of data, institute are sent by the data interaction interface of itself Request of data is stated as any one in Various types of data request under the data interaction interface;And handed over by the data of itself The first data that server described in mutual interface returns in response to the request of data;According to the specific field related to the request of data, first data are entered with row format conversion, with obtain with it is described Second data corresponding to specific field;Second data are sent to the client.
- 2. according to the method for claim 1, it is characterised in that right according to the specific field related to the request of data First data enter row format conversion, to obtain the second data corresponding with the specific field, including:According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;Using the data format first data are entered with row format conversion, to generate the first file;Using first file of generation as second data, or, using the link of first file of generation as Second data.
- 3. according to the method for claim 1, it is characterised in that right according to the specific field related to the request of data First data enter row format conversion, to obtain the second data corresponding with the specific field, including:According to the type field included in the request of data, data format corresponding to the type field is determined;First data are entered with row format conversion using the finger data format, to generate the second file;Using second file of generation as second data, or, using the link of second file of generation as Second data.
- 4. according to the method for claim 1, it is characterised in thatBefore the data interaction interface by itself sends the request of data, methods described also includes:From the data The specific field is extracted in request, and the specific field to extracting stores;According to the specific field related to the request of data, first data are entered before row format conversion, methods described Also include:Obtain the specific field of storage.
- 5. according to the method for claim 1, it is characterised in that second data are sent to the client, including:Generate the header information of request response;Using second data of generation and the header information, request response is generated;The request response is sent to the client.
- 6. according to the method for claim 1, it is characterised in that described in described data interaction interface by itself The first data that server returns in response to the request of data, including:The data type information returned by the data interaction interface of itself, the data type information include designated word Section, include first data in the specific field;First data are obtained from the specific field of the data type information.
- 7. a kind of device for service request, it is characterised in that applied to the server for being configured with least one blocker, often The individual blocker is configured with least one data interaction interface, and each data interaction interface is used to transmit a kind of all kinds of of business Request of data and related data;Described device is arranged on each blocker;Described device includes:First I/O unit, for when receiving the request of data of client transmission, passing through the data of place blocker Interactive interface sends the request of data, and the request of data is any one in Various types of data request under the data interaction interface It is individual;And it is additionally operable to by server described in the data interaction interface of place blocker in response to the request of data The first data returned;Data processing unit, for according to the specific field related to the request of data, entering row format to first data Conversion, to obtain the second data corresponding with the specific field;Second I/O unit, for second data to be sent into the client.
- 8. device according to claim 7, it is characterised in that the data processing unit, be specifically used for:According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;Using the data format first data are entered with row format conversion, to generate the first file;Using first file of generation as second data, or, using the link of first file of generation as Second data.
- 9. device according to claim 7, it is characterised in that the data processing unit, be specifically used for:According to the type field included in the request of data, data format corresponding to the type field is determined;First data are entered with row format conversion using the finger data format, to generate the second file;Using second file of generation as second data, or, using the link of second file of generation as Second data.
- 10. device according to claim 7, it is characterised in that described device also includes:Extraction unit, for passing through in first I/O unit described in the data interaction interface transmission of place blocker Before request of data, the specific field is extracted from the request of data;Memory cell, for being stored to the specific field that the extraction unit extracts;Acquiring unit, in the data processing unit according to the specific field related to the request of data, to described One data are entered before row format conversion, obtain the specific field of the memory cell storage.
- 11. device according to claim 7, it is characterised in that second I/O unit, be specifically used for:Generate the header information of request response;Using second data of generation and the header information, request response is generated;The request response is sent to the client.
- 12. device according to claim 7, it is characterised in that first I/O unit, be specifically used for:The data type information returned by the data interaction interface of place blocker, the data type information include Specific field, first data are included in the specific field;First data are obtained from the specific field of the data type information.
- 13. a kind of server, it is characterised in that the server includes at least one blocker, each blocker configuration There is at least one data interaction interface;Each blocker includes the device for service request any one of claim 7 to 12.
- A kind of 14. method for service request, it is characterised in that applied to blocker, the blocker is configured with least one Individual data interactive interface, each data interaction interface are used for Various types of data request and the related data for transmitting a kind of business;It is described Method includes:When receiving the request of data of client transmission, the request of data, institute are sent by the data interaction interface of itself Request of data is stated as any one in Various types of data request under the data interaction interface;And handed over by the data of itself The first data that mutual interface returns in response to the request of data;According to the specific field related to the request of data, first data are entered with row format conversion, with obtain with it is described Second data corresponding to specific field;Second data are sent to the client.
- 15. according to the method for claim 14, it is characterised in that according to the specific field related to the request of data, First data are entered with row format conversion, to obtain the second data corresponding with the specific field, including:According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;Using the data format first data are entered with row format conversion, to generate the first file;Using first file of generation as second data, or, using the link of first file of generation as Second data.
- 16. according to the method for claim 14, it is characterised in that according to the specific field related to the request of data, First data are entered with row format conversion, to obtain the second data corresponding with the specific field, including:According to the type field included in the request of data, data format corresponding to the type field is determined;First data are entered with row format conversion using the finger data format, to generate the second file;Using second file of generation as second data, or, using the link of second file of generation as Second data.
- 17. a kind of device for service request, it is characterised in that be arranged on blocker, the blocker is configured with least One data interactive interface, each data interaction interface are used for Various types of data request and the related data for transmitting a kind of business;Institute Stating device includes:First I/O unit, when receiving the request of data of client transmission, sent out by the data interaction interface of itself The request of data is sent, the request of data is any one in Various types of data request under the data interaction interface;It is and logical Cross the first data that the data interaction interface of itself returns in response to the request of data;Processing unit, for the basis specific field related to the request of data, first data are entered with row format conversion, To obtain the second data corresponding with the specific field;Second I/O unit, second data are sent to the client.
- 18. device according to claim 17, it is characterised in that the processing unit, be specifically used for:According to the suffix field included in the request of data, data format corresponding to the suffix field is determined;Using the data format first data are entered with row format conversion, to generate the first file;Using first file of generation as second data, or, using the link of first file of generation as Second data.
- 19. device according to claim 17, it is characterised in that the processing unit, be specifically used for:According to the type field included in the request of data, data format corresponding to the type field is determined;First data are entered with row format conversion using the finger data format, to generate the second file;Using second file of generation as second data, or, using the link of second file of generation as Second data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610857223.9A CN107872437B (en) | 2016-09-27 | 2016-09-27 | Method, device and server for service request |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610857223.9A CN107872437B (en) | 2016-09-27 | 2016-09-27 | Method, device and server for service request |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107872437A true CN107872437A (en) | 2018-04-03 |
CN107872437B CN107872437B (en) | 2021-07-09 |
Family
ID=61761631
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610857223.9A Active CN107872437B (en) | 2016-09-27 | 2016-09-27 | Method, device and server for service request |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107872437B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109150969A (en) * | 2018-07-13 | 2019-01-04 | 北京旷视科技有限公司 | Data transmission method, sorter, terminating machine and data transmission system |
CN109284616A (en) * | 2018-08-17 | 2019-01-29 | 优视科技有限公司 | Data access and data distributing method, device, equipment and storage medium |
CN111274104A (en) * | 2018-11-16 | 2020-06-12 | 北京微播视界科技有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
CN111385123A (en) * | 2018-12-29 | 2020-07-07 | 广州市百果园信息技术有限公司 | WEB service distributed intelligent monitoring method, device, computer equipment and storage medium |
CN111722995A (en) * | 2019-03-18 | 2020-09-29 | 杭州晨熹多媒体科技有限公司 | Data processing method and device |
CN112184196A (en) * | 2020-09-14 | 2021-01-05 | 北京字跳网络技术有限公司 | Data processing method, device, server and storage medium |
CN112882843A (en) * | 2021-02-04 | 2021-06-01 | 鲸灵科技股份有限公司 | Method for automatically complementing Chinese value by English enumeration |
CN112988263A (en) * | 2021-02-10 | 2021-06-18 | 青岛希望鸟科技有限公司 | Method and system for synchronizing web pages |
CN113162998A (en) * | 2021-04-07 | 2021-07-23 | 广州炫视智能科技有限公司 | Intelligent interactive communication method and communication system |
CN115269060A (en) * | 2022-06-15 | 2022-11-01 | 知学云(北京)科技股份有限公司 | Service execution pre-post processing method based on aPaaS platform |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001153A (en) * | 2006-12-30 | 2007-07-18 | 华为技术有限公司 | Interface equipment, server operation service system and method |
CN101236490A (en) * | 2007-02-01 | 2008-08-06 | 阿里巴巴公司 | Method and system for obtaining business logic |
WO2011072993A1 (en) * | 2009-12-17 | 2011-06-23 | International Business Machines Corporation | Managed channel for asynchronous requests |
CN102143038A (en) * | 2010-06-23 | 2011-08-03 | 华为技术有限公司 | Service creation method and node |
CN103763394A (en) * | 2014-02-10 | 2014-04-30 | 赛特斯信息科技股份有限公司 | System and method for achieving access and callout of EJB through ESB |
CN104240119A (en) * | 2014-09-27 | 2014-12-24 | 昆明钢铁集团有限责任公司 | Information interaction system and method |
CN104994122A (en) * | 2015-05-12 | 2015-10-21 | 深圳市微阳信息技术有限公司 | Business communication method and system based on JSON data protocol |
CN105930379A (en) * | 2016-04-14 | 2016-09-07 | 北京思特奇信息技术股份有限公司 | Method and system for collecting log data by means of interceptor |
-
2016
- 2016-09-27 CN CN201610857223.9A patent/CN107872437B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001153A (en) * | 2006-12-30 | 2007-07-18 | 华为技术有限公司 | Interface equipment, server operation service system and method |
CN101236490A (en) * | 2007-02-01 | 2008-08-06 | 阿里巴巴公司 | Method and system for obtaining business logic |
WO2011072993A1 (en) * | 2009-12-17 | 2011-06-23 | International Business Machines Corporation | Managed channel for asynchronous requests |
CN102143038A (en) * | 2010-06-23 | 2011-08-03 | 华为技术有限公司 | Service creation method and node |
CN103763394A (en) * | 2014-02-10 | 2014-04-30 | 赛特斯信息科技股份有限公司 | System and method for achieving access and callout of EJB through ESB |
CN104240119A (en) * | 2014-09-27 | 2014-12-24 | 昆明钢铁集团有限责任公司 | Information interaction system and method |
CN104994122A (en) * | 2015-05-12 | 2015-10-21 | 深圳市微阳信息技术有限公司 | Business communication method and system based on JSON data protocol |
CN105930379A (en) * | 2016-04-14 | 2016-09-07 | 北京思特奇信息技术股份有限公司 | Method and system for collecting log data by means of interceptor |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109150969A (en) * | 2018-07-13 | 2019-01-04 | 北京旷视科技有限公司 | Data transmission method, sorter, terminating machine and data transmission system |
CN109150969B (en) * | 2018-07-13 | 2022-04-19 | 北京旷视科技有限公司 | Data transmission method, distributor, terminal and data transmission system |
CN109284616A (en) * | 2018-08-17 | 2019-01-29 | 优视科技有限公司 | Data access and data distributing method, device, equipment and storage medium |
CN111274104A (en) * | 2018-11-16 | 2020-06-12 | 北京微播视界科技有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
CN111274104B (en) * | 2018-11-16 | 2023-08-11 | 北京微播视界科技有限公司 | Data processing method, device, electronic equipment and computer readable storage medium |
CN111385123A (en) * | 2018-12-29 | 2020-07-07 | 广州市百果园信息技术有限公司 | WEB service distributed intelligent monitoring method, device, computer equipment and storage medium |
CN111722995A (en) * | 2019-03-18 | 2020-09-29 | 杭州晨熹多媒体科技有限公司 | Data processing method and device |
CN111722995B (en) * | 2019-03-18 | 2023-08-15 | 杭州淘票票影视文化有限公司 | Data processing method and device |
CN112184196A (en) * | 2020-09-14 | 2021-01-05 | 北京字跳网络技术有限公司 | Data processing method, device, server and storage medium |
CN112184196B (en) * | 2020-09-14 | 2024-03-22 | 北京字跳网络技术有限公司 | Data processing method, device, server and storage medium |
CN112882843A (en) * | 2021-02-04 | 2021-06-01 | 鲸灵科技股份有限公司 | Method for automatically complementing Chinese value by English enumeration |
CN112988263A (en) * | 2021-02-10 | 2021-06-18 | 青岛希望鸟科技有限公司 | Method and system for synchronizing web pages |
CN112988263B (en) * | 2021-02-10 | 2023-11-28 | 青岛希望鸟科技有限公司 | Webpage synchronization method and system |
CN113162998A (en) * | 2021-04-07 | 2021-07-23 | 广州炫视智能科技有限公司 | Intelligent interactive communication method and communication system |
CN113162998B (en) * | 2021-04-07 | 2022-07-05 | 广州炫视智能科技有限公司 | Intelligent interactive communication method and communication system |
CN115269060B (en) * | 2022-06-15 | 2023-06-20 | 知学云(北京)科技股份有限公司 | Service execution pre-post processing method based on aPaaS platform |
CN115269060A (en) * | 2022-06-15 | 2022-11-01 | 知学云(北京)科技股份有限公司 | Service execution pre-post processing method based on aPaaS platform |
Also Published As
Publication number | Publication date |
---|---|
CN107872437B (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107872437A (en) | A kind of method, apparatus and server for service request | |
CN108521858A (en) | The device identifier relevant operation processing of packet-based data communication | |
CN104142856B (en) | Service routine call method, system and its smart machine | |
US20080071922A1 (en) | Methods, systems, and computer program products to transparently dispatch requests to remote resources in a multiple application server environment | |
JP2013101676A (en) | Dynamic parse/build engine for parsing multi-format messages | |
US6920410B2 (en) | Systems and methods for testing a network service | |
JP2010128877A (en) | Web system and method of collecting processing record | |
WO2012178167A2 (en) | Methods for making ajax web applications bookmarkable and crawlable and devices thereof | |
US10452730B2 (en) | Methods for analyzing web sites using web services and devices thereof | |
CN109783562B (en) | Service processing method and device | |
CN111176627A (en) | Device and method for separating front end from back end based on micro-service | |
US20230237265A1 (en) | Method and apparatus for detecting anomalies in mission critical environments | |
CN110598135A (en) | Network request processing method and device, computer readable medium and electronic equipment | |
CN113010332A (en) | Remote service calling method, device, equipment and storage medium | |
CN107894945A (en) | Bury an adding method, mobile terminal and computer-readable recording medium | |
CN107480117A (en) | Automate the restoration methods and device of page table list data | |
CN112307292A (en) | Information processing method and system based on advanced persistent threat attack | |
US10775751B2 (en) | Automatic generation of regular expression based on log line data | |
EP3974960B1 (en) | Method and system for automated testing of web service apis | |
CN111159590A (en) | Serial connection method and device based on front-end and back-end service call links | |
US10536536B1 (en) | Resource discovery agent computing device, software application, and method | |
CN101236490B (en) | Method and system for obtaining business logic | |
JP2021163475A (en) | Log-based mashup code generation | |
CN110347380A (en) | Front and back end development approach and equipment | |
CN115658753A (en) | Method and device for inquiring electronic receipt and related equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |