CN106911810A - A kind of interface interchange method and apparatus - Google Patents
A kind of interface interchange method and apparatus Download PDFInfo
- Publication number
- CN106911810A CN106911810A CN201710296426.XA CN201710296426A CN106911810A CN 106911810 A CN106911810 A CN 106911810A CN 201710296426 A CN201710296426 A CN 201710296426A CN 106911810 A CN106911810 A CN 106911810A
- Authority
- CN
- China
- Prior art keywords
- interface interchange
- client
- interface
- order
- clist
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
-
- 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/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a kind of interface interchange method and apparatus, is applied to service end.Methods described includes:Receive the interface interchange request that client sends;It is judged as whether the interface interchange keep-alive duration that the client is set is overtime;Wherein, it is what the client was set when a length of client calls the either interface of local terminal first during the interface interchange keep-alive;If overtime, the connection with the client is disconnected;If had not timed out, respond the interface interchange request and perform interface interchange;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal keeps connection status with the client.The technical method provided using the application, can accelerate the response speed of the interface interchange request that the service end sends to the client.
Description
Technical field
The application is related to network communication technology field, more particularly to a kind of interface interchange method and apparatus.
Background technology
As the development of network technology, and the demand of user are more and more, server miscellaneous is continued to bring out.Its
In, many server providing services pair as if it is conditional, only can just be serviced by the user of server authentication
The service that device is provided.
Generally, some interfaces are included in server, each interface corresponds to the different services that server is provided.Client
The corresponding service that server is provided can be obtained by the interface for calling service end to provide.
In the prior art, service end is first authenticated to the user identity of client, recognizes in the user identity of client
After card passes through, client can just call the interface that service end is provided.However, after client call interface terminates, service
End will disconnect TCP and be connected with client.Therefore, when client calling interface again, client need again with service end
TCP connections are set up, it is necessary to service end is to the user identity re-authentication of client, and after authenticating user identification passes through, client
End can just re-call the interface of service end offer.
During due to the interface for calling service end offer each time when client, client is required to be set up with service end again
TCP is connected, therefore the response speed that the interface interchange that is sent to client of service end is asked is very slow.
The content of the invention
In view of this, the application provides a kind of interface interchange method and apparatus, is applied to service end, is provided using the application
Technical scheme, accelerate the response speed that the interface interchange that is sent to client of service end is asked.
Specifically, the application is achieved by the following technical solution:
A kind of interface interchange method, is applied to service end, including:
Receive the interface interchange request that client sends;
It is judged as whether the interface interchange keep-alive duration that the client is set is overtime;Wherein, the interface interchange keep-alive
Client described in Shi Changwei is what the client was set when calling the either interface of local terminal first;
If overtime, the connection with the client is disconnected;If had not timed out, respond the interface interchange request execution and connect
Mouth is called;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal keeps connection status with the client.
A kind of device of interface interchange, is applied to service end, including:
Receiving unit, the interface interchange request for receiving client transmission;
Judging unit, it is whether overtime for being judged as the interface interchange keep-alive duration that the client is set;Wherein, it is described
It is what the client was set when a length of client calls the either interface of local terminal first during interface interchange keep-alive;
Execution unit, if for time-out, disconnecting the connection with the client;If had not timed out, the interface is responded
Call request performs interface interchange;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal keeps connecting with the client
Connect state.
After client is first logged into be authenticated successfully, appointing in the interface that the client call service end is provided
During one interface, the service end can set interface interchange keep-alive duration for the client.When the client completes this
After interface interchange, in the interface interchange keep-alive duration, the client is always maintained at connection status with the service end.Cause
This, in the interface interchange keep-alive duration, if client calling interface again, then the service end need not be with
After the client re-establishes connection, certification is re-started to the client, the service end can correspond directly to institute
The interface interchange request for stating client transmission performs interface interchange, so that, accelerate the service end and the client is sent
Interface interchange request response speed.
Brief description of the drawings
A kind of interface interchange method flow diagram that Fig. 1 is illustrated for the application;
Online command list (CLIST) schematic diagrames of the Fig. 2 shown in the embodiment of the present application;
The online command list (CLIST) schematic diagram of another kinds of the Fig. 3 shown in the embodiment of the present application;
Fig. 4 is a kind of hardware structure diagram of service end where a kind of interface interchange device of the application;
A kind of interface interchange device that Fig. 5 is illustrated for the embodiment of the present application.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in implementation method do not represent all implementation methods consistent with the application.Conversely, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application.
" one kind ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
May be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for being distinguished from each other open same type of information.For example, not departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
As the development of network technology, and the demand of user are more and more, server miscellaneous is continued to bring out.Its
In, many server providing services pair as if it is conditional, only can just be serviced by the user of server authentication
The service that device is provided.
Generally, some interfaces are included in server, each interface corresponds to the different services that server is provided.Client
The corresponding service that server is provided can be obtained by the interface for calling service end to provide.
In the prior art, when user access service end first, client is set up TCP and is connected with the service end, so
The client can obtain the authentication information (user name, password etc.) that user is input into login page afterwards, and preserve described
Authentication information.Meanwhile, the client can be sent to service end the authentication information.The service end is recognized described in receiving
After card information, the authentication information can be authenticated, and after passing through to the authentication information certification, to the client
The successful response message of certification, and triggering interface interchange program are sent, for client provides interface interchange service.
After the client receives the successful response message of certification, user can be based on the client to the service
End transmission interface call request.When the service end receives the interface interchange asks, the interface interchange can be read
The interface interchange order ID carried in request, and after getting parameter corresponding with the interface interchange order, generation with it is described
The corresponding interface interchange orders of interface interchange order ID.Then, the service end can respond the interface interchange order and perform
Interface interchange.
After the service end has performed interface interchange, the service end meeting down interface caller, and disconnect and institute
State the connection of client.When the client gets user again is asked to the interface interchange that the service end sends, by
It is off in the now client and the service end, the client needs to re-establish company with the service end
Connect.
The authentication information of preservation can be re-transmitted to the service end by the client, by the service end to described
Authentication information re-authentication, and after certification passes through, retriggered interface interchange program, and send certification to the client
Successful response message.
After the client receives certification successful response message, the interface that the client will can get is adjusted
Sent to the service end with request.When the service end receives the interface interchange request, adjusted according to above-mentioned response interface
The process of interface interchange is performed with request, said process is re-executed.
In sum, after completing interface interchange every time due to client, service end can be disconnected with the client,
When the interface that client calls the service end to provide again, the client needs to re-establish company with the service end
Connect, and after certification again through the service end, the interface that can just call the service end to provide, therefore, the service end
The response speed of the interface interchange request sent to the client is slow.
In order to solve the problems of the prior art, this application provides a kind of interface interchange method, service end is applied to, institute
The method of stating includes:Receive the interface interchange request that client sends;When being judged as the interface interchange keep-alive that the client is set
It is long whether overtime;Wherein, it is institute when a length of client calls the either interface of local terminal first during the interface interchange keep-alive
State client setting;If overtime, the connection with the client is disconnected;If had not timed out, responding the interface interchange please
Seek execution interface interchange;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal keeps being connected shape with the client
State.
After client is first logged into be authenticated successfully, appointing in the interface that the client call service end is provided
During one interface, the service end can set interface interchange keep-alive duration for the client.When the client completes this
After interface interchange, in the interface interchange keep-alive duration, the client is always maintained at connection status with the service end.Cause
This, in the interface interchange keep-alive duration, if client calling interface again, then the service end need not be with
After the client re-establishes connection, certification is re-started to the client, the service end can correspond directly to institute
The interface interchange request for stating client transmission performs interface interchange, so that, accelerate the service end and the client is sent
Interface interchange request response speed.
Fig. 1 is referred to, a kind of interface interchange method flow diagram that Fig. 1 is illustrated for the application is applied to service end,
It is specific to perform following steps:
Step 101:Receive the interface interchange request that client sends;
Step 102:It is judged as whether the interface interchange keep-alive duration that the client is set is overtime;Wherein, the interface
It is what the client was set when a length of client calls the either interface of local terminal first when calling keep-alive;
Step 103:If overtime, the connection with the client is disconnected;If had not timed out, responding the interface interchange please
Seek execution interface interchange;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal keeps being connected shape with the client
State.
In this application, when service end receives the connection request of client, set up with the client and be connected, then
The authentication information that the client sends is authenticated.After the authentication has been successful, the client can be sent out to the service end
Interface interchange is sent to ask, the service end can perform interface interchange in response to the interface interchange, and for the client sets
Put interface interchange keep-alive duration.In the keep-alive duration, the client protects connection status with the service end, when described
Client again to the service end transmission interface call request when, the client need not be re-established with the service end
Connect and re-start certification.The service end can correspond directly to the interface interchange request and perform interface interchange.
The implementation process of the technical method shown in the application can be divided into verification process and interface calling procedure, wherein, institute
Verification process is stated by the authentication procedure of the service end to complete, the interface interchange for receiving invoked procedure by the service end
Program is completed.
(1), verification process
When user triggers the startup of client, the client can initiate connection request to the service end, described
Client can set up TCP and be connected with the service end.After the client and the service end are successfully established to be connected, user
Can in the login page of the client input authentication information, the certification request for carrying the authentication information is sent to institute
State service end.
After the service end receives the certification request that the client sends, the service end can be from the certification
Authentication information is obtained in request, then the certification is authenticated.If the service end passes through to the client certificate,
The service end can to the successful response message of client return authentication, and be that the client is created in internal memory
Line command list (CLIST).If the service end fails to the client certificate, the service end can be returned to the client
The response message of authentification failure.
Wherein, above-mentioned online command list (CLIST) is that, when the client is online, the service end is created for the client
The list for memory interface call instruction.
(2), interface calling procedure
A, first calling interface
When the client receives the successful response message of certification that the service end returns, the client can be to
The service end transmission interface call request;Wherein, after the interface interchange request that this sends is for client certificate success
The interface interchange for being sent to the service end first is asked;Status identifier is carried in the interface interchange request.
Wherein, above-mentioned status identifier is that the client is asked by detecting that local terminal is called to the service end transmission interface
Whether carry interface interchange order ID in asking, and the interface interchange order ID for carrying whether service end described in warp-wise sends
Cross come the label of the state for representing the client.
When the client is actively disconnected with the service end, interface will not be carried in the interface interchange request
Call instruction ID, the status identifier is then defined as disconnecting identifier.When service end offer described in the client call
During interface, the client can detect that whether this carry out the interface interchange order ID of interface interchange service ends described in warp-wise
It is transmitted across, if be transmitted across, the status identifier is then defined as keeping identifier;If be not transmitted across, the state mark
Know symbol and be then defined as newly-built identifier.
Because this interface interchange is that after the client certificate succeeds, the client sends to the service end first
Interface interchange is asked, therefore, the status identifier carried in the interface interchange request is newly-built identifier.
When the service end receives the interface interchange request that the client sends, the service end triggering connects
The startup of mouth caller.The service end can obtain status identifier from interface interchange request and recognize the shape
State identifier.Now, the client can identify that the status identifier is newly-built identifier.
In this case, the service end can further obtain interface interchange life from interface interchange request
Make ID.Then, the service end can obtain parameter corresponding with the interface interchange order ID, and based on the interface interchange
Order ID, and parameter corresponding with the interface interchange order ID creates order list item.
After the service end has created order list item, the service end can look for the client wound in internal memory
The online command list (CLIST) built, and by the order list item added in the online command list (CLIST), and, the service end can be with
Interface interchange is performed based on the order list item.
Wherein, after the service end performs interface interchange in response to the interface interchange request that the client sends, institute
Stating service end can set interface interchange keep-alive duration for the client.
In the interface interchange keep-alive duration, the service end keeps connection status with the client.If described
Client in the interface interchange keep-alive duration again to the service end transmission interface call request when, the client without
Need to send certification request to the service end again, certification is re-started to the client by the service end.
B, again calling interface
In this application, the service end real-time judge is whether the interface interchange protection duration that the client is set surpasses
When.If the interface interchange keep-alive duration time-out, the service end can directly be disconnected with the client, and will be
The online command list (CLIST) that the client is created is deleted.If the interface interchange keep-alive duration has not timed out, the service is kept
Hold the connection status with the client.
During the service end keeps connection status with the client, sent when service end receives the client
Interface interchange when asking, the service end can obtain the status indicator of the client from interface interchange request
Symbol, and judge whether the status identifier is to disconnect identifier.
It should be noted that the service end is judged as whether the interface interchange keep-alive duration that the client is set is overtime
This process, it is parallel that the interface interchange for receiving the client transmission with the service end asks this process.
If the status identifier illustrates that the client actively disconnects with the client and connects to disconnect identifier
Connect, the service end can disconnect the connection with the client, and will be deleted for the online command list (CLIST) that the client is created
Remove.If the status identifier is not to disconnect identifier, the service end can determine whether the state of the client
Identifier.
In this application, if the status identifier is newly-built identifier, connecing for this transmission of the client is illustrated
Interface interchange order ID in mouth call request is new ID.The service end is carried in can reading the interface interchange request
Interface interchange order ID, and generate and the interface interchange order after obtaining corresponding with interface interchange order ID parameter
The corresponding interface interchange orders of ID.Then, the interface interchange order can be added most described client by the service end
The online command list (CLIST) for creating, and respond the newly-built interface interchange order execution interface interchange.
Refer to Fig. 2, online command list (CLIST) schematic diagrames of the Fig. 2 shown in the embodiment of the present application.
In this application, the online command list (CLIST) includes client id, interface interchange order ID, and is connect with described
The corresponding interface interchange orders of mouth call instruction ID.The composition and form simply to online command list (CLIST) carry out example herein
Property description, whether to including other contents in the online command list (CLIST), and the form of the online command list (CLIST) do not enter
Row is limited.
If the status identifier for keep identifier, illustrate the client this send interface interchange ask in
Interface interchange order ID be transmitted across before this.The service end can read what is carried during the interface interchange is asked
Interface interchange order ID, then searches and the interface interchange order ID in the online command list (CLIST) created for the client
Corresponding interface interchange order.To after interface interchange order, the service end can respond the interface to the server side searches
Call instruction performs interface interchange.
If in the interface interchange keep-alive duration, the client is calling connecing for the service end offer always
Mouthful, if not changing the interface interchange keep-alive duration always, then after interface interchange protection duration time-out, the clothes
Business end can directly disconnect the connection with the client, then the client needs to re-establish connection, can cause the visitor
The business short interruption at family end, therefore, after the client succeeds calling interface every time, the service end needs to update described
Interface interchange keep-alive duration.
Therefore, in this application, no matter the status identifier is also to maintain identifier for newly-built identifier, as the visitor
After family end completes interface interchange, the service end can reset to the interface interchange keep-alive duration that the client is set.
Because the business performed by different clients is different, so that the client needs the interface for calling also can not
It is identical, in order to accelerate the response speed of the interface interchange request that the service end sends to the client, can to it is described
Interface interchange order in line command list (CLIST) is ranked up according to frequency height, makes the interface interchange order that execution frequency is higher
Can be searched as early as possible, such that it is able to accelerate response speed of the service end to the client.
Refer to Fig. 3, the online command list (CLIST) schematic diagram of another kinds of the Fig. 3 shown in the embodiment of the present application.
In this application, execution time field and precedence field are with the addition of in the online command list (CLIST), it is described to hold
Places digital section is used for the execution number of times of record interface call instruction, and the precedence field is used for record interface call instruction
Priority.Wherein, the execution number of times of interface interchange order is more, and the priority of the interface interchange order is higher.
Wherein, in the schematic diagram shown in Fig. 3, the priority is higher, and numerical priority value is smaller, herein to priority
Form of presentation is not defined.
When the client complete interface interchange after, the service end can in the online command list (CLIST), pair with this
The execution number of times of the corresponding interface interchange order of secondary interface interchange is added up.
After the execution number of times of interface interchange order is carried out cumulative by the service end, the service end is according to the interface
Call instruction execution number of times change, in real time the priority to the interface interchange order be updated.
Then, the service end can be based on the priority of the interface interchange program after updating, according to priority
Order is ranked up to the interface interchange order in the online command list (CLIST), and priority is high in making the online command list (CLIST)
Interface interchange order is preferentially queried matching.Finally, the service end can respond interface corresponding with this interface interchange and adjust
Interface interchange is performed with order.
Technical method shown in above the embodiment of the present application, after client is first logged into be authenticated successfully,
During either interface in the interface that the client call service end is provided, the service end can be set for the client
Interface interchange keep-alive duration.It is described in the interface interchange keep-alive duration after client completes this interface interchange
Client is always maintained at connection status with the service end.Therefore, in the interface interchange keep-alive duration, if the client
Hold calling interface again, then the service end need not be re-established after being connected with the client, to the client weight
Newly it is authenticated, the service end can correspond directly to the interface interchange request execution interface interchange that the client sends,
So as to accelerate the response speed of the interface interchange request that the service end sends to the client.
It is corresponding with a kind of foregoing embodiment of interface interchange method, present invention also provides a kind of interface interchange device
Embodiment.
A kind of embodiment of interface interchange device of the application can be applied in service end.Device embodiment can be by soft
Part is realized, it is also possible to realized by way of hardware or software and hardware combining.As a example by implemented in software, as a logical meaning
On device, be to be read corresponding computer program instructions in nonvolatile memory by the processor of service end where it
Run what is formed in internal memory.From for hardware view, as shown in figure 4, the service where a kind of interface interchange device of the application
A kind of hardware structure diagram at end, in addition to the processor shown in Fig. 4, internal memory, network interface and nonvolatile memory,
Service end in embodiment where device can also include other hardware, to this generally according to the actual functional capability of the interface interchange
Repeat no more.
Fig. 5 is referred to, a kind of interface interchange device that Fig. 5 is illustrated for the embodiment of the present application is applied to service end,
Described device includes:Receiving unit 510, judging unit 520, execution unit 530.
Wherein, the receiving unit 510, the interface interchange request for receiving client transmission;
The judging unit 520, it is whether overtime for being judged as the interface interchange keep-alive duration that the client is set;Its
In, for the client is set when a length of client calls the either interface of local terminal first during the interface interchange keep-alive
's;
The execution unit 530, if for time-out, disconnecting the connection with the client;If had not timed out, institute is responded
State interface interchange request and perform interface interchange;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal and the client
Keep connection status.
In the embodiment shown in the application, described device also includes:
Receiving subelement, for receiving the certification request that the client sends;Wherein, the certification request carries certification
Information;
Authentication unit, for being authenticated to the client based on the authentication information;
Creating unit, is that the client creates online command list (CLIST) if passed through for certification.
When the service end passes through to the client certificate, and for the client is created after line command list (CLIST), institute
Stating service end can receive the interface interchange request that the client sends, and interface interchange request is responded.Its
In, the interface interchange asks carrier state identifier.
The execution unit 530 specifically for:
If the status identifier is newly-built identifier, the interface interchange life carried in the interface interchange request is read
ID is made, is the client newly-built with interface interchange order ID pairs in online command list (CLIST) corresponding with the client
The interface interchange order answered, and perform interface interchange in response to the newly-built interface interchange order;
If the status identifier reads the interface interchange life carried in the interface interchange request to keep identifier
Make ID, and search and whether cached interface interchange order ID in online command list (CLIST) corresponding with the client;If it is,
Interface interchange order corresponding with interface interchange order ID is read from the online command list (CLIST), and is adjusted in response to the interface
Interface interchange is performed with order.
In addition, in the embodiment shown in the application, described device also includes
Unit is deleted, if the connection with the client is disconnected to disconnect identifier for the status identifier, and
Delete the described online command list (CLIST) created for the client.
Reset cell, for when the interface interchange is completed, resetting the interface interchange keep-alive duration;And,
Summing elements, in the online command list (CLIST), pair interface interchange order corresponding with this interface interchange
Execution number of times added up.
Setting unit, for being each based on the corresponding execution number of times of each interface interchange order in the online command list (CLIST)
Interface interchange order sets priority;Wherein, the execution number of times of the interface interchange order is more, and priority is higher;And,
Updating block, for the change of the execution number of times based on each interface interchange order, to each interface interchange order
Priority carry out real-time update;
Sequencing unit, for the priority based on each interface interchange order, adjusts to each interface in the online command list (CLIST)
It is ranked up with order.
Delete subelement, for when the interface interchange keep-alive duration time-out, and disconnect with the connection of the client after,
Delete the described online command list (CLIST) created for the client.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus
Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component
The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The preferred embodiment of the application is the foregoing is only, is not used to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.
Claims (14)
1. a kind of interface interchange method, is applied to service end, it is characterised in that including:
Receive the interface interchange request that client sends;
It is judged as whether the interface interchange keep-alive duration that the client is set is overtime;Wherein, the interface interchange keep-alive duration
It is what the client was set when calling the either interface of local terminal first for the client;
If overtime, the connection with the client is disconnected;If had not timed out, respond the interface interchange request and perform interface tune
With;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal keeps connection status with the client.
2. method according to claim 1, it is characterised in that methods described also includes:
Receive the certification request that the client sends;Wherein, the certification request carries authentication information;
The client is authenticated based on the authentication information;
It is that the client creates online command list (CLIST) if certification passes through.
3. method according to claim 2, it is characterised in that the interface interchange asks carrier state identifier;
The response interface interchange request performs interface interchange, including:
If the status identifier is newly-built identifier, the interface interchange order carried in the interface interchange request is read
ID, is newly-built corresponding with the interface interchange order ID client in online command list (CLIST) corresponding with the client
Interface interchange order, and perform interface interchange in response to the newly-built interface interchange order;
If the status identifier reads the interface interchange order carried in the interface interchange request to keep identifier
Whether interface interchange order ID has been cached in ID, and lookup online command list (CLIST) corresponding with the client;If it is, from
Interface interchange order corresponding with interface interchange order ID is read in the online command list (CLIST), and in response to the interface interchange
Order performs interface interchange.
4. method according to claim 3, it is characterised in that described method also includes:
If the status identifier disconnects the connection with the client to disconnect identifier, and it is the client to delete
The described online command list (CLIST) for creating.
5. the method according to claim 1 or 3, it is characterised in that methods described also includes;
When the interface interchange is completed, the interface interchange keep-alive duration is reset;And,
In the online command list (CLIST), the execution number of times of pair interface interchange order corresponding with this interface interchange tires out
Plus.
6. method according to claim 5, it is characterised in that methods described also includes:
It is that each interface interchange order setting is excellent based on the corresponding execution number of times of each interface interchange order in the online command list (CLIST)
First level;Wherein, the execution number of times of the interface interchange order is more, and priority is higher;And,
The change of the execution number of times based on each interface interchange order, the priority to each interface interchange order is carried out in real time more
Newly;
Based on the priority of each interface interchange order, each interface interchange order in the online command list (CLIST) is ranked up.
7. method according to claim 1, it is characterised in that methods described also includes:
When interface interchange keep-alive duration time-out, and disconnect and after the connection of the client, delete as the client is created
The described online command list (CLIST) built.
8. a kind of interface interchange device, is applied to service end, it is characterised in that including:
Receiving unit, the interface interchange request for receiving client transmission;
Judging unit, it is whether overtime for being judged as the interface interchange keep-alive duration that the client is set;Wherein, the interface
It is what the client was set when a length of client calls the either interface of local terminal first when calling keep-alive;
Execution unit, if for time-out, disconnecting the connection with the client;If had not timed out, the interface interchange is responded
Request performs interface interchange;Wherein, when the interface interchange keep-alive duration has not timed out, local terminal keeps being connected shape with the client
State.
9. device according to claim 8, it is characterised in that described device also includes:
Receiving subelement, for receiving the certification request that the client sends;Wherein, the certification request carries certification letter
Breath;
Authentication unit, for being authenticated to the client based on the authentication information;
Creating unit, is that the client creates online command list (CLIST) if passed through for certification.
10. device according to claim 9, it is characterised in that the interface interchange asks carrier state identifier, bag
Include:
The execution unit specifically for:
If the status identifier is newly-built identifier, the interface interchange order carried in the interface interchange request is read
ID, is newly-built corresponding with the interface interchange order ID client in online command list (CLIST) corresponding with the client
Interface interchange order, and perform interface interchange in response to the newly-built interface interchange order;
If the status identifier reads the interface interchange order carried in the interface interchange request to keep identifier
Whether interface interchange order ID has been cached in ID, and lookup online command list (CLIST) corresponding with the client;If it is, from
Interface interchange order corresponding with interface interchange order ID is read in the online command list (CLIST), and in response to the interface interchange
Order performs interface interchange.
11. devices according to claim 10, it is characterised in that described device also includes:
Unit is deleted, if disconnecting the connection with the client, and delete to disconnect identifier for the status identifier
For the described online command list (CLIST) that the client is created.
12. device according to claim 8 or 10, it is characterised in that described device also includes:
Reset cell, for when the interface interchange is completed, resetting the interface interchange keep-alive duration;And,
Summing elements, in the online command list (CLIST), being held to interface interchange order corresponding with this interface interchange
Places number is added up.
13. devices according to claim 12, it is characterised in that described device also includes:
Setting unit, for being each interface based on the corresponding execution number of times of each interface interchange order in the online command list (CLIST)
Call instruction sets priority;Wherein, the execution number of times of the interface interchange order is more, and priority is higher;And,
Updating block, for the change of the execution number of times based on each interface interchange order, to the excellent of each interface interchange order
First level carries out real-time update;
Sequencing unit, for the priority based on each interface interchange order, to each interface interchange life in the online command list (CLIST)
Order is ranked up.
14. devices according to claim 8, it is characterised in that described device also includes:
Delete subelement, for when the interface interchange keep-alive duration time-out, and disconnect with the connection of the client after, delete
For the described online command list (CLIST) that the client is created.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710296426.XA CN106911810A (en) | 2017-04-28 | 2017-04-28 | A kind of interface interchange method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710296426.XA CN106911810A (en) | 2017-04-28 | 2017-04-28 | A kind of interface interchange method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106911810A true CN106911810A (en) | 2017-06-30 |
Family
ID=59209949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710296426.XA Pending CN106911810A (en) | 2017-04-28 | 2017-04-28 | A kind of interface interchange method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106911810A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908438A (en) * | 2017-11-15 | 2018-04-13 | 山东浪潮通软信息科技有限公司 | A kind of method and device for improving data interaction stability |
CN108920346A (en) * | 2018-06-05 | 2018-11-30 | 北京奇安信科技有限公司 | Web server interface time-consuming statistical method and device |
CN115103005A (en) * | 2022-06-14 | 2022-09-23 | 北京京东乾石科技有限公司 | Request response method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701761A (en) * | 2012-09-28 | 2014-04-02 | 中国电信股份有限公司 | Authentication method for invoking open interface and system |
KR20150049287A (en) * | 2013-10-29 | 2015-05-08 | 에스케이플래닛 주식회사 | Terminal Equipment and Call control method for mVoIP, and Call service system based Internet Protocol |
CN104660616A (en) * | 2015-03-18 | 2015-05-27 | 上海斐讯数据通信技术有限公司 | Conversation remaining server side and conversation processing method thereof |
CN105554151A (en) * | 2015-12-29 | 2016-05-04 | 联想(北京)有限公司 | Keep-alive time determining method and electronic device |
-
2017
- 2017-04-28 CN CN201710296426.XA patent/CN106911810A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701761A (en) * | 2012-09-28 | 2014-04-02 | 中国电信股份有限公司 | Authentication method for invoking open interface and system |
KR20150049287A (en) * | 2013-10-29 | 2015-05-08 | 에스케이플래닛 주식회사 | Terminal Equipment and Call control method for mVoIP, and Call service system based Internet Protocol |
CN104660616A (en) * | 2015-03-18 | 2015-05-27 | 上海斐讯数据通信技术有限公司 | Conversation remaining server side and conversation processing method thereof |
CN105554151A (en) * | 2015-12-29 | 2016-05-04 | 联想(北京)有限公司 | Keep-alive time determining method and electronic device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908438A (en) * | 2017-11-15 | 2018-04-13 | 山东浪潮通软信息科技有限公司 | A kind of method and device for improving data interaction stability |
CN108920346A (en) * | 2018-06-05 | 2018-11-30 | 北京奇安信科技有限公司 | Web server interface time-consuming statistical method and device |
CN115103005A (en) * | 2022-06-14 | 2022-09-23 | 北京京东乾石科技有限公司 | Request response method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104253686B (en) | Method, equipment and the system that account logs in | |
CN103209247B (en) | Method and system that a kind of information shows and terminal and server | |
CN103368913A (en) | Account login method, apparatus and system, and network server | |
CN106911810A (en) | A kind of interface interchange method and apparatus | |
CN107086979A (en) | A kind of user terminal method for verifying login and device | |
CN105827459A (en) | Method and device for calling maintenance center by intelligent device | |
CN112615753A (en) | Link abnormity tracking method, first node, second node and link | |
CN108023881A (en) | Login method, device, medium and the electronic equipment of application program | |
CN109274705A (en) | Service providing method, apparatus and system based on user identity | |
CN107168813A (en) | Task processing method and system | |
CN110324317B (en) | Service processing method, device, equipment and storage medium | |
CN108966316A (en) | Show the method, device and equipment of multimedia resource, prediction connection waiting time | |
US7086051B2 (en) | Method and apparatus for just-in-time provisioning application-related information at a communication device | |
CN105049210B (en) | A kind of general account register method and device | |
JPH07160638A (en) | Terminal device for information equipment | |
CN109327468A (en) | A kind of offline reminding method, device, equipment and storage medium | |
CN110673970B (en) | Cross-process calling system and method based on web application | |
CA2582067C (en) | Ip telephone system | |
JP4584276B2 (en) | Digital certificate search apparatus, method and program | |
CN106385516A (en) | Business transfer setting method, device and terminal | |
EP1372118A2 (en) | Connection information management system for managing connection information used in communications between IC cards | |
CN105760908B (en) | Method and apparatus, the treating method and apparatus of smartcard identification data of smartcard identification | |
WO2021042893A1 (en) | Access point name configuration method and apparatus, and readable storage medium | |
JP5265658B2 (en) | Login authentication apparatus, login authentication method and program | |
CN107872493A (en) | A kind of information processing method, terminal and server |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170630 |
|
RJ01 | Rejection of invention patent application after publication |