CN107196936A - Interface retransmission method, system, computer equipment and storage medium - Google Patents

Interface retransmission method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN107196936A
CN107196936A CN201710358576.9A CN201710358576A CN107196936A CN 107196936 A CN107196936 A CN 107196936A CN 201710358576 A CN201710358576 A CN 201710358576A CN 107196936 A CN107196936 A CN 107196936A
Authority
CN
China
Prior art keywords
interface
forwarding
information
parameter
network protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710358576.9A
Other languages
Chinese (zh)
Inventor
张伟力
黎景阳
陈鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Infinite Information Technology Co Ltd
Original Assignee
Guangdong Infinite Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Infinite Information Technology Co Ltd filed Critical Guangdong Infinite Information Technology Co Ltd
Priority to CN201710358576.9A priority Critical patent/CN107196936A/en
Publication of CN107196936A publication Critical patent/CN107196936A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The present invention relates to a kind of interface retransmission method, system, computer equipment and storage medium, its method part comprises the following steps:Interface requests information is obtained, parameter is accessed according to interface requests information acquisition interface, wherein interface, which accesses parameter, includes the coding information of forwarding interface;Coding information is matched with real interface address information in database, the true address of forwarding interface is obtained;The network protocol type that parameter judges forwarding interface is accessed according to interface;Interface requests information is sent to the true address of the forwarding interface by the retransmission method according to corresponding to network protocol type.Above-mentioned interface retransmission method, can support the interface of other procotols to forward, and retransmission method is flexible.

Description

Interface retransmission method, system, computer equipment and storage medium
Technical field
The present invention relates to Computer Applied Technology field, more particularly to a kind of interface retransmission method, system, computer are set Standby and storage medium.
Background technology
With the rapid development of information technology, enterprise's new business emerges in an endless stream, each operation system all has towards single industry A variety of data-interface platforms of business, therefore the interface of operation system is also continuously increased, but traditional point-to-point interface mode is The demand that operation system is reliably docked with other platforms in real time can not be met.In addition, interface is too many, also it is unfavorable for docking port performance Monitoring, therefore in actual application, develop unified interface platform.Unified interface platform, is a framework model, be for Two or more application systems are completed according to certain agreement (data protocol, communication protocol, network interconnection agreement) by original system Different function units (service) by protocol requirement tissue and the framework connected, facilitate the money between each operation system Share in source.
Traditional unified interface platform, typically only accesses the interface (i.e. http interfaces) that http agreements are supported in management, utilizes Http protocol forwards mode is forwarded to http interfaces.And present most of interface all supports other procotol (examples Such as https agreements, IP agreement, Transmission Control Protocol), existing interface pass-through mode can not support the interface of other procotols to turn Hair, and pass-through mode underaction is abundant.
The content of the invention
Based on this, it is necessary to can not support what the interface of other procotols forwarded to ask for existing interface pass-through mode There is provided a kind of interface retransmission method, system, computer equipment and storage medium for topic.
A kind of interface retransmission method, comprises the following steps:
Interface requests information is obtained, parameter is accessed according to the interface requests information acquisition interface, wherein the interface is visited Ask that parameter includes the coding information of forwarding interface;
The coding information is matched with real interface address information in database, the true of the forwarding interface is obtained Real address;
The network protocol type that parameter judges the forwarding interface is accessed according to the interface,
The interface requests information is sent to the forwarding by the retransmission method according to corresponding to the network protocol type The true address of interface.
A kind of procotol interface repeater system, including:
Gain of parameter module, for obtaining interface requests information, accesses according to the interface requests information acquisition interface and joins Number, wherein the interface, which accesses parameter, includes the coding information of forwarding interface;
Interface Matching module, for the coding information to be matched with real interface address information in database, is obtained Obtain the true address of the forwarding interface;
Procotol judge module, for accessing the procotol class that parameter judges the forwarding interface according to the interface Type,
Interface forwarding module, believes the interface requests for the retransmission method according to corresponding to the network protocol type Breath is sent to the true address of the forwarding interface.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, following steps are realized during the computing device described program:
Interface requests information is obtained, parameter is accessed according to the interface requests information acquisition interface, wherein the interface is visited Ask that parameter includes the coding information of forwarding interface;
The coding information is matched with real interface address information in database, the true of the forwarding interface is obtained Real address;
The network protocol type that parameter judges the forwarding interface is accessed according to the interface,
The interface requests information is sent to the forwarding by the retransmission method according to corresponding to the network protocol type The true address of interface.
A kind of computer-readable recording medium, is stored thereon with computer program, and the program is realized when being executed by processor Following steps:
Interface requests information is obtained, parameter is accessed according to the interface requests information acquisition interface, wherein the interface is visited Ask that parameter includes the coding information of forwarding interface;
The coding information is matched with real interface address information in database, the true of the forwarding interface is obtained Real address;
The network protocol type that parameter judges the forwarding interface is accessed according to the interface,
The interface requests information is sent to the forwarding by the retransmission method according to corresponding to the network protocol type The true address of interface.
Interface requests information is obtained in the present invention first, parsing interface requests information acquisition interface accesses parameter, according to connecing Mouth accesses parameter docking port access request and carries out interface IP address matching, determines the true reference address of forwarding interface;Then judge The network protocol type of forwarding interface,, please by interface using corresponding retransmission method according to the network protocol type of forwarding interface Information is asked to be forwarded to the true address of forwarding interface.Interface retransmission method in the present invention, can support connecing for other procotols Mouth forwarding, and retransmission method is flexible.
Brief description of the drawings
Schematic flow sheets of the Fig. 1 for interface retransmission method of the invention in one embodiment;
Schematic flow sheets of the Fig. 2 for interface retransmission method of the invention in one of the embodiments;
Schematic flow sheets of the Fig. 3 for interface retransmission method of the invention in one of the embodiments;
Schematic flow sheets of the Fig. 4 for interface retransmission method of the invention in one of the embodiments;
Schematic flow sheets of the Fig. 5 for interface retransmission method of the invention in one of the embodiments;
Schematic flow sheets of the Fig. 6 for interface retransmission method of the invention in one of the embodiments;
Structural representations of the Fig. 7 for procotol interface repeater system of the invention in one of the embodiments;
Structural representations of the Fig. 8 for procotol interface repeater system of the invention in one of the embodiments;
Structural representations of the Fig. 9 for procotol interface repeater system of the invention in one of the embodiments;
Structural representations of the Figure 10 for interface retransmission method of the invention in one of the embodiments;
Figure 11 is the structural representation in one embodiment of the computer equipment of the present invention.
Embodiment
Present disclosure is described in further detail below in conjunction with preferred embodiment and accompanying drawing.Obviously, hereafter institute The embodiment of description is only used for explaining the present invention, rather than limitation of the invention.Based on the embodiment in the present invention, this area is general The every other embodiment that logical technical staff is obtained under the premise of creative work is not made, belongs to what the present invention was protected Scope.It should be noted that for the ease of description, part related to the present invention rather than full content are illustrate only in accompanying drawing.
Schematic flow sheets of the Fig. 1 for a kind of interface retransmission method of the invention in one embodiment, as shown in figure 1, this A kind of interface retransmission method in inventive embodiments, comprises the following steps:
Step S110, obtains interface requests information, and parameter is accessed according to interface requests information acquisition interface, and wherein interface is visited Ask that parameter includes the coding information of forwarding interface.
Specifically, when requestor conducts interviews to a certain interface, the external URL first by accessing unified interface platform Address, and carry interface requests information.URL (Uniform Resource Locator, URL), it is WWW Unified resource witness marker, just refer to the network address.URL is made up of three parts:Resource type, the host domain for depositing resource Name, resource file name, wherein URL include procotol, host name (IP address) and some other parameters etc..In addition, connecing Interface, which is store, in mouth solicited message accesses related parameter, such as transmission interface access requestor identification information, forwarding interface Forwarding interface coding information and interface retransmitting paramater etc..Unified interface platform is obtaining the interface requests letter that requestor sends After breath these information are carried out with parsing and obtains interface access parameter.
Alternatively, after unified interface platform obtains interface access parameter, interface is accessed into parameter cache to server In Installed System Memory, it is easy in finishing operations quickly transfer interface access parameter, greatly improves interface forwarding speed.
Step S120, coding information is matched with real interface address information in database, obtains forwarding interface True address.
Specifically, interface access requestor will conduct interviews to a certain interface, should determine the interface truly first Location.And often there was only forwarding interface coding information in interface access request, therefore, to be determined to turn according to forwarding interface coding information Send out the true address information of interface.
In a kind of optional embodiment, set up in an interface message database, its database store it is a series of Interface message, interface message includes interface coding information and interface true address information, and wherein interface coding information and interface is true Real address information is one-to-one, i.e., one interface coding information can only correspond to a true address information.Therefore, only need by Forwarding interface coding information is matched with the real interface address information in database, it is possible to obtain the true of forwarding interface Address information.
Step S130, the network protocol type that parameter judges forwarding interface is accessed according to interface.
Specifically, procotol (protocol), be enable the communicating pair in network be smoothed out information exchange and Code and rule that both sides make an appointment and followed.Therefore, it is understood that the procotol that interface is supported, could docking port progress Access.Classical network agreement includes:TCP/ agreements, IPX/SPX agreements, NetBEUI agreements, http agreements and https agreements. TCP/IP (Transmission Control Protocol/Internet Protocol, transmission control protocol/IP(Internet Protocol)) It is a kind of towards connection (connection is oriented to), reliable, the transportation level communication protocol based on byte stream.IPX(Internet Work Packet Exchange, internet packet-switching) it is a special protocol family, it is mainly by Novell Netware operating system is used.NetBEUI (NetBIOS Extend User Interface, NetBIOS user's expansion interface Agreement).Http (HyperText Transfer Protocol, HTTP) is most widely used on internet A kind of procotol.Https (Hyper Text Transfer Protocol over Secure Socket Layer, peace The HTTP of full socket layer), it is SSL layers of addition under the Http passages using safety as target, i.e. Http.
Interface requests information is sent to the forwarding by step S140, the retransmission method according to corresponding to network protocol type The true address of interface.
The retransmission method of above-mentioned procotol interface, obtains interface requests information first, and parsing interface requests information is obtained Obtain interface and access parameter, accessing parameter docking port access request according to interface carries out interface IP address matching, determines forwarding interface True reference address;Then the network protocol type of forwarding interface is judged, according to the network protocol type of forwarding interface, using phase The retransmission method answered, interface requests information is forwarded to the true address of forwarding interface.Interface retransmission method in the present invention, energy The interface of other procotols is supported to forward, and retransmission method is flexible.
In one of which embodiment, as shown in Fig. 2 the interface access parameter include interface access authentication information and Current time information;Identification information of the interface access authentication information including the corresponding requestor of the interface requests information, IP address, dynamic signature information and the authority information of the requestor of the requestor;
Interface requests information is sent to the true of forwarding interface in the retransmission method according to corresponding to network protocol type Before the step of address, in addition to:
Step S210, is verified to the identification information of requestor.
Specifically, interface access requestor typically has unique mark, is designated as appkey.System background docking port is asked Identification information is verified.
Step S220, dynamic signature information is compared with the signing messages that system background is automatically generated and matched.
The signing messages that system background automatically generates the dynamic signature information of interface access request and system background is carried out Compare, when the two information are identical, show that the dynamic signature information of interface access request passes through checking.Docking port access request Dynamic signature information verified, interface access security can be effectively ensured, in order to avoid carry other in interface requests information not Secure data file etc. causes potential safety hazard to unified interface plateform system.
Whether step S230, judge the IP address of requestor in system white list.
The IP address of docking port access request is verified, so that it is determined that whether the IP address of interface access request is in system In white list, i.e., whether interface access requestor can access the interface.If interface access requestor can access the interface When, it is put into next step;If interface access requestor cannot access the interface, just the interface access requestor is entered Row is intercepted, and prevents the requester accesses interface.
Step S240, according to authority information, judges whether requestor has the authority for accessing forwarding interface.
Specifically, the interface forwarding authority that system background will be accessed requester requests is verified, judges requestor Whether there is the authority for accessing the interface, if intercepting the requester accesses interfaces without if.
Step S250, judges whether the residue degree of forwarding interface described in the requester accesses is more than 0.
In the present embodiment, interface hop count has quantity limitation, usually 10 times, and system can judge that requestor may have access to The residue degree of the interface, if equal to 0, then refusal request.Number of times is carried out to requestor's forwarding interface now to limit, and reduces request Person excessively accesses the interface, increases system operation burden.
Step S260, is automatically generated in the identification information of requestor by checking, dynamic signature information and system background Signing messages is consistent, connect the IP address of requestor in system white list and when residue degree is more than 0, and determining interface is accessed please Authentication verification success is asked, and interface requests information is forwarded to the true address of forwarding interface.
Specifically, when a certain interface of interface access requestor conducts interviews, first to determine interface requests person to the interface Authority conducted interviews etc. carries out detection checking, and only when being verified, requestor could access the interface.
It should be appreciated that above-mentioned step is intended merely to narration conveniently, it is not the restriction to method order, step S210 ~step S250 order can be exchanged.
In one of which embodiment, as shown in figure 3, accessing parameter according to the interface requests information acquisition interface The step of in, including:
Step S111, judges request header Format Type in interface requests information.
Step S112, when request header is application/json types in interface requests information, interface requests are believed Breath changes into data flow, and parsing acquisition interface access parameter is carried out to data stream.
Specifically, to be parsed from interface requests information and obtain interface access parameter, be to judge that current interface please first Whether the request header head forms for asking request header Format Type in information, i.e. HttpRequest are application/json classes Type.If application/json types, current request is parsed using a set of separate procedure defined inside program, is solved Parameter required for separating out, the appkey (requestor's identity unique mark) of such as requestor, sign (believe by requestor's dynamic signature Breath), interface Code (interface coding) and by the parameter cache parsed into Installed System Memory;It is special in wherein above-mentioned Program can use " stream " concept, and interface requests information is changed into data flow, then data stream parse being connect Mouth accesses parameter.Solicited message is changed into data flow again to parse it, it is simple to operate and speed is fast.
If not application/json request Format Type, then direct analytic parameter.
In one of which embodiment, as shown in figure 4, judging that the network of forwarding interface is assisted accessing parameter according to interface In the step of discussing type, including:
Step S131, extracts the procotol keyword in interface access parameter.
Step S132, the network protocol type of forwarding interface is determined according to procotol keyword.
Specifically, judge whether to include https keywords by parsing HttpRequest request URL, if bag Contain, then show https protocol forwards, if do not included, be shown to be http agreements.
In one of which embodiment, as shown in figure 5, the network protocol type is http procotols or https Procotol;
When the network protocol type of forwarding interface is http agreements, the retransmission method according to corresponding to network protocol type In the step of interface requests information is sent into the true address of forwarding interface, including:
Step S141, accesses parameter according to http agreements docking port and is packaged, and the interface after encapsulation is accessed into parameter It is forwarded to the true address of forwarding interface.
Specifically, the interface if necessary to forwarding is http types, and in authentication verification all in the case of, program The parameter for most starting to parse is packaged together first, forwarded in the URL addresses according to forwarding interface on backstage, and And the form that can be forwarded according to requester requests enters the forwarding of line interface, such as application/json, form, post, Get etc., the data returned after forwarding interface are then returned by json forms and give interface access requestor.
When the network protocol type of forwarding interface is https agreements, the forwarding side according to corresponding to network protocol type In the step of interface requests information is sent to the true address of forwarding interface by method, including:
Step S142, accesses parameter according to https agreements docking port and is packaged;Obtain the secure socket of forwarding interface Protocol layer authentication certificate, and create according to security socket layer certification certificate the agency couple of client programming kit As;Interface after encapsulation is accessed by parameter according to the agent object of client programming kit and is forwarded to the true of the forwarding interface Real address.
Specifically, the interface if necessary to forwarding is https types, and parameter is packaged first, then will be to needing The interface of forwarding is authenticated, and taking needs SSL (the Security Socket Layer Security Socket Layers of forwarding interface Layer) certification certificate, the agent object of client programming kit is created according to certificate.Then, in the URL according to forwarding interface Address is forwarded on backstage, and the form that can be forwarded according to requester requests enters the forwarding of line interface, such as Application/json, form, post, get etc., then by json forms return after forwarding interface the data that are returned to Interface access requestor.In addition, wherein client programming kit can be HttpClient, HttpClient is Apache Sub-project under Jakarta Common, can be for providing the visitors of efficient, newest, feature-rich support http agreements Family end programming tool bag, the method that all http can be realized, and https agreements can be supported.
In one of which embodiment, as shown in fig. 6, will be connect in the retransmission method according to corresponding to network protocol type After the step of mouth solicited message is sent to the true address of forwarding interface, in addition to:
Step S150, obtains the returned data of forwarding interface, and returned data is switched to the returned data of json forms.
Step S160, the returned data of json forms is back to the requestor corresponding with interface requests information.
Specifically, after interface requests information is forwarded into the true address of forwarding interface, returned data is obtained, will be returned Data are converted into json forms, and return to interface access requestor.Using data packing forms and json forms are converted into, protected Demonstrate,prove data transmission bauds fast.
In one of which embodiment, as shown in fig. 6, also including:
Step S170, generates the historical record of requester accesses forwarding interface, and updates requester accesses forwarding interface Residue degree.
Specifically, after returned data is sent into interface access requestor, system meeting record interface access requestor please The history forwarding information of the forwarding interface of forwarding, and the hop count information of more new interface are asked, is easy to requestor to be accessed in the later stage Authentication verification is carried out during the interface.
According to the interface retransmission method of the invention described above, the present invention also provides a kind of procotol interface repeater system, under The procotol interface repeater system of the present invention is described in detail with reference to accompanying drawing and preferred embodiment for face.
Structural representations of the Fig. 7 for procotol interface repeater system of the invention in one embodiment.Such as Fig. 7 institutes Show, the procotol interface repeater system in the embodiment, including:
Gain of parameter module 10, for obtaining interface requests information, parameter is accessed according to interface requests information acquisition interface, Wherein interface, which accesses parameter, includes the coding information of forwarding interface.
Interface Matching module 20, for coding information to be matched with real interface address information in database, is obtained The true address of forwarding interface.
Procotol judge module 30, for accessing the network protocol type that parameter judges forwarding interface according to interface.
Interface forwarding module 40, for the retransmission method according to corresponding to network protocol type by the interface requests information It is sent to the true address of forwarding interface.
In one of which embodiment, as shown in figure 8, the interface access parameter include interface access authentication information and Current time information;The interface access authentication information includes:The IP letters of interface access request identification information, interface access request The hop count information of breath, the authority information of interface forwarding and interface, in addition to authentication module 50:
The authentication module 50, is tested for carrying out authentication according to interface access request authentication information docking port access request Card.Wherein, as shown in figure 9, authentication module 50 also includes:
Identification information authentication module 51, is verified for the identification information to requestor.
Signature verification module 52, the signing messages for dynamic signature information and system background to be automatically generated is compared Matching.
IP address authentication module 53, for judging the IP address of requestor whether in system white list.
Authority Verification module 54 is forwarded, for according to authority information, judging whether requestor there is the access forwarding to connect The authority of mouth.
Hop count authentication module 55, for judging whether the residue degree of forwarding interface described in the requester accesses is big In 0.
Interface forwarding module 40 is additionally operable to pass through checking, dynamic signature information and system background in the identification information of requestor The signing messages that automatically generates is consistent, the IP address of requestor is in system white list and when residue degree is more than 0, judges to connect The success of mouthful access request authentication verification, and interface requests information is forwarded to the true address of forwarding interface.
In one of which embodiment, as shown in Figure 10, the gain of parameter module 10 also includes:
Request header type judgment models 11, for judging request header Format Type in interface requests information.
Parameter analysis of electrochemical module 12, for when request header is application/json types in interface requests information, inciting somebody to action Interface requests information changes into data flow, and parsing acquisition interface access parameter is carried out to data stream.
In one of which embodiment, as shown in Figure 10, in addition to keyword parsing module 31:
Keyword-extraction module 31, for extracting the procotol keyword in interface access parameter.
Procotol determining module 30, the network protocol type for determining forwarding interface according to procotol keyword.
In one of which embodiment, the procotol is http procotols or https procotols, Tu10Suo Show, the forwarding module 40, including:
Http interfaces forwarding module 51, for when the network protocol type of forwarding interface is http agreements, according to http Agreement docking port accesses parameter and is packaged, and the interface after encapsulation is accessed into the true address that parameter is forwarded to forwarding interface.
Https interfaces forwarding module 52, for when the network protocol type of forwarding interface is https agreements, according to Https agreements docking port accesses parameter and is packaged;The security socket layer certification certificate of acquisition forwarding interface, and according to Security socket layer certification certificate creates the agent object of client programming kit;According to client programming kit Agent object the interface after encapsulation accessed into parameter be forwarded to the true address of the forwarding interface.
In one of the embodiments, as shown in figure 8, also including:
Returned data obtains module 60, the returned data for obtaining forwarding interface, and returned data is switched into json lattice The returned data of formula.
Returned data sending module 70, it is corresponding with interface requests information for the returned data of json forms to be back to Requestor.
In one of which embodiment, as shown in figure 8, also including:
Information logging modle 80, for generating the historical record of requester accesses forwarding interface, and updates requester accesses The residue degree of forwarding interface.
Above-mentioned procotol interface repeater system can perform the interface retransmission method that the embodiment of the present invention is provided, and possesses and holds The corresponding functional module of row method and beneficial effect.As for the processing method performed by wherein each functional module, such as parameter Obtain and obtain block 10, Interface Matching module 20, procotol judge module 30, interface forwarding module 40, authentication module 50, return Data obtaining module 60, returned data sending module 70, information logging modle 80, can refer to retouching in above method embodiment State, no longer repeated herein.
According to the interface retransmission method and system of the invention described above, the present invention also provides a kind of computer equipment, ties below Accompanying drawing and preferred embodiment is closed the computer equipment of the present invention is described in detail.
Structural representations of the Figure 11 for computer equipment of the invention in one embodiment.As shown in Figure 10, the implementation Computer equipment 100 in example, including memory 101, processor 102 and storing can be run on a memory and on a processor Computer program, wherein computing device program when can realize all method and steps in the inventive method embodiment.
Processor 102 can perform the interface retransmission method that the embodiment of the present invention is provided in above computer equipment 100, tool The corresponding beneficial effect of standby execution method.The description in above method embodiment is can refer to, is no longer repeated herein.
According to the interface retransmission method, system and computer equipment of the invention described above, the present invention also provides a kind of computer Readable storage medium storing program for executing, below in conjunction with the accompanying drawings and preferred embodiment to the present invention computer-readable recording medium carry out specifically It is bright.
Computer-readable recording medium in the embodiment of the present invention, is stored thereon with computer program, and the program is processed Device can realize all method and steps in the inventive method embodiment when performing.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above computer readable storage medium storing program for executing is used for the program for storing the interface retransmission method that the embodiment of the present invention is provided (instruction), wherein the interface retransmission method that the embodiment of the present invention is provided can be performed by performing the program, possesses execution method phase Answer beneficial effect.The description in above method embodiment is can refer to, is no longer repeated herein.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of interface retransmission method, it is characterised in that comprise the following steps:
Interface requests information is obtained, parameter is accessed according to the interface requests information acquisition interface, wherein the interface accesses ginseng Number includes the coding information of forwarding interface;
The coding information is matched with real interface address information in database, the forwarding interface is obtained truly Location;
The network protocol type that parameter judges the forwarding interface is accessed according to the interface;
The interface requests information is sent to the forwarding interface by the retransmission method according to corresponding to the network protocol type True address.
2. interface retransmission method according to claim 1, it is characterised in that the interface accesses parameter and accessed including interface Authentication information and current time information;The interface access authentication information includes the corresponding requestor's of the interface requests information Identification information, the IP address of the requestor, dynamic signature information and the authority information of the requestor;
The interface requests information is sent into the forwarding in the retransmission method according to corresponding to the network protocol type to connect Before the step of true address of mouth, in addition to:
The identification information of the requestor is verified;
The dynamic signature information is compared with the signing messages that system background is automatically generated and matched;
Judge the IP address of the requestor whether in system white list;
According to the authority information, judge whether the requestor has the authority for accessing the forwarding interface;
Judge whether the residue degree of forwarding interface described in the requester accesses is more than 0;
The label automatically generated in the identification information of the requestor by checking, the dynamic signature information with the system background Information is consistent for name, the IP address for meeting requestor is in system white list and when the residue degree is more than 0, determining interface The success of access request authentication verification, and the interface requests information is forwarded to the true address of the forwarding interface.
3. interface retransmission method according to claim 1, it is characterised in that connect according to the interface requests information acquisition In the step of mouth accesses parameter, including:
Judge request header Format Type in the interface requests information;
When request header is application/json types in the interface requests information, the interface requests information is converted Into data flow, and the parsing acquisition interface access parameter is carried out to the data flow.
4. interface retransmission method according to claim 1, it is characterised in that parameter is accessed according to the interface and judges to forward In the step of network protocol type of interface, including:
Extract the procotol keyword in the interface access parameter;
The network protocol type of the forwarding interface is determined according to the procotol keyword.
5. interface retransmission method according to claim 4, it is characterised in that the network protocol type is assisted for http networks View or https procotols;
When the network protocol type of the forwarding interface is http agreements, the forwarding according to corresponding to the network protocol type In the step of interface requests information is sent to the true address of the forwarding interface by method, including:
Parameter is accessed to the interface according to http agreements to be packaged, and the interface after encapsulation is accessed into parameter be forwarded to The true address of the forwarding interface;
When the network protocol type of the forwarding interface is https agreements, turning according to corresponding to the network protocol type In the step of interface requests information is sent to the true address of the forwarding interface by forwarding method, including:
Parameter is accessed according to https agreements to the interface to be packaged;
The security socket layer certification certificate of the forwarding interface is obtained, and according to the security socket layer certification Certificate creates the agent object of client programming kit;
Turn according to the interface access parameter after encapsulation is forwarded to by the agent object of the client programming kit Send out the true address of interface.
6. interface retransmission method according to claim 5, it is characterised in that according to corresponding to the network protocol type Retransmission method the step of the interface requests information is sent into the true address of the forwarding interface after, in addition to:
The returned data of forwarding interface is obtained, and the returned data is switched to the returned data of json forms;
The returned data of the json forms is back to the requestor corresponding with the interface requests information.
7. interface retransmission method according to claim 6, it is characterised in that also include:
The historical record of forwarding interface described in the requester accesses is generated, and updates forwarding interface described in the requester accesses Residue degree.
8. a kind of procotol interface repeater system, it is characterised in that including:
Gain of parameter module, for obtaining interface requests information, parameter is accessed according to the interface requests information acquisition interface, its Described in interface access parameter include the coding information of forwarding interface;
Interface Matching module, for the coding information to be matched with real interface address information in database, obtains institute State the true address of forwarding interface;
Procotol judge module, for accessing the network protocol type that parameter judges the forwarding interface according to the interface,
Interface forwarding module, sends out the interface requests information for the retransmission method according to corresponding to the network protocol type It is sent to the true address of the forwarding interface.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that the step of claim 1-7 methods describeds are realized during the computing device described program.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The step of claim 1-7 methods describeds are realized during execution.
CN201710358576.9A 2017-05-19 2017-05-19 Interface retransmission method, system, computer equipment and storage medium Pending CN107196936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710358576.9A CN107196936A (en) 2017-05-19 2017-05-19 Interface retransmission method, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710358576.9A CN107196936A (en) 2017-05-19 2017-05-19 Interface retransmission method, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107196936A true CN107196936A (en) 2017-09-22

Family

ID=59874168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710358576.9A Pending CN107196936A (en) 2017-05-19 2017-05-19 Interface retransmission method, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107196936A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587134A (en) * 2018-12-03 2019-04-05 中国移动通信集团江苏有限公司 Method, apparatus, equipment and the medium of the safety certification of interface bus
CN110049041A (en) * 2019-04-17 2019-07-23 北京网聘咨询有限公司 The interface call method and interface calling system of recruitment website open platform
CN110933059A (en) * 2019-11-22 2020-03-27 广州视源电子科技股份有限公司 Data communication method and device, electronic equipment, upper computer and storage medium
CN111782990A (en) * 2020-07-08 2020-10-16 上海乾臻信息科技有限公司 Interface packaging processing method, device and system
CN112099964A (en) * 2019-06-18 2020-12-18 北京思源政通科技集团有限公司 Interface calling method and device, storage medium and electronic device
CN112286911A (en) * 2020-12-15 2021-01-29 中移(苏州)软件技术有限公司 Database management method and device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724061A (en) * 2012-04-16 2012-10-10 成都市广达电子电讯技术开发有限公司 Network interface management method
CN104717178A (en) * 2013-12-13 2015-06-17 中国移动通信集团河南有限公司 Information source data calling method and device
CN105635050A (en) * 2014-10-29 2016-06-01 腾讯科技(深圳)有限公司 Data interaction method and system
CN106101258A (en) * 2016-07-08 2016-11-09 腾讯科技(深圳)有限公司 A kind of interface interchange method of mixed cloud, Apparatus and system
CN106648610A (en) * 2016-10-24 2017-05-10 广州华多网络科技有限公司 Function interface remote call method and device and function interface remote call response method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724061A (en) * 2012-04-16 2012-10-10 成都市广达电子电讯技术开发有限公司 Network interface management method
CN104717178A (en) * 2013-12-13 2015-06-17 中国移动通信集团河南有限公司 Information source data calling method and device
CN105635050A (en) * 2014-10-29 2016-06-01 腾讯科技(深圳)有限公司 Data interaction method and system
CN106101258A (en) * 2016-07-08 2016-11-09 腾讯科技(深圳)有限公司 A kind of interface interchange method of mixed cloud, Apparatus and system
CN106648610A (en) * 2016-10-24 2017-05-10 广州华多网络科技有限公司 Function interface remote call method and device and function interface remote call response method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587134A (en) * 2018-12-03 2019-04-05 中国移动通信集团江苏有限公司 Method, apparatus, equipment and the medium of the safety certification of interface bus
CN109587134B (en) * 2018-12-03 2021-11-23 中国移动通信集团江苏有限公司 Method, apparatus, device and medium for secure authentication of interface bus
CN110049041A (en) * 2019-04-17 2019-07-23 北京网聘咨询有限公司 The interface call method and interface calling system of recruitment website open platform
CN112099964A (en) * 2019-06-18 2020-12-18 北京思源政通科技集团有限公司 Interface calling method and device, storage medium and electronic device
CN110933059A (en) * 2019-11-22 2020-03-27 广州视源电子科技股份有限公司 Data communication method and device, electronic equipment, upper computer and storage medium
CN111782990A (en) * 2020-07-08 2020-10-16 上海乾臻信息科技有限公司 Interface packaging processing method, device and system
CN111782990B (en) * 2020-07-08 2024-03-19 上海乾臻信息科技有限公司 Interface encapsulation processing method, device and system
CN112286911A (en) * 2020-12-15 2021-01-29 中移(苏州)软件技术有限公司 Database management method and device, equipment and storage medium
CN112286911B (en) * 2020-12-15 2021-06-04 中移(苏州)软件技术有限公司 Database management method and device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107196936A (en) Interface retransmission method, system, computer equipment and storage medium
CN102394885B (en) Information classification protection automatic verification method based on data stream
CN103685311B (en) A kind of login validation method and equipment
CN103475726B (en) A kind of virtual desktop management, server and client side
CN112260990B (en) Method and device for safely accessing intranet application
CN106856434A (en) The method and apparatus of access request conversion
CN107172081B (en) A kind of method and apparatus of data check
CN106899544A (en) Container login method, device and system based on Docker
CN101582856A (en) Session setup method of Portal server and BAS (broadband access server) device and system thereof
CN105162774B (en) Virtual machine entry method, the virtual machine entry method and device for terminal
CN107911381A (en) Access method, system, server-side and the client of application programming interface
US10192262B2 (en) System for periodically updating backings for resource requests
CN112838951B (en) Operation and maintenance method, device and system of terminal equipment and storage medium
CN104253687B (en) It reduces verification efficiency method, generate identifying code method, related system and server
CN104579931B (en) The access method and device of a kind of copending document based on mail
JP2016519362A (en) Method and apparatus for conversion of business messages
CN113285962B (en) Online operation monitoring method and system
CN113194099B (en) Data proxy method and proxy server
CN106874371A (en) A kind of data processing method and device
CN106603567B (en) A kind of login management method and device of WEB administrator
CN104009846B (en) A kind of single-sign-on apparatus and method
CN116599949A (en) Third party API protocol access method and system based on HTTP protocol
CN106302479A (en) A kind of single-point logging method for multi-service internet site and system
JP2012208941A (en) User confirmation device, method and program
CN110177096A (en) Client certificate method, apparatus, medium and calculating 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922

RJ01 Rejection of invention patent application after publication