CN108809900A - A kind of frame and method of unified resource access - Google Patents

A kind of frame and method of unified resource access Download PDF

Info

Publication number
CN108809900A
CN108809900A CN201710301431.5A CN201710301431A CN108809900A CN 108809900 A CN108809900 A CN 108809900A CN 201710301431 A CN201710301431 A CN 201710301431A CN 108809900 A CN108809900 A CN 108809900A
Authority
CN
China
Prior art keywords
data
request
layer
middle layer
unified resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710301431.5A
Other languages
Chinese (zh)
Other versions
CN108809900B (en
Inventor
张磊
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huanan City Digital Technology Co.,Ltd.
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710301431.5A priority Critical patent/CN108809900B/en
Publication of CN108809900A publication Critical patent/CN108809900A/en
Application granted granted Critical
Publication of CN108809900B publication Critical patent/CN108809900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • 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/22Parsing or analysis of headers
    • 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/30Definitions, standards or architectural aspects of layered protocol stacks

Abstract

The present invention provides a kind of frame and method of unified resource access.The frame includes request of data layer, middle layer and data acquisition layer;The request of data layer, for being asked based on unified resource access protocol encapsulation of data, to the data acquisition layer request data;The middle layer, the returned data for being sent to the data acquisition layer, and receiving the data acquisition layer after the request of data for receiving the request of data layer are sent to the request of data layer;The data acquisition layer, the request of data for receiving the middle layer forwarding, the data of specified type is obtained according to specified data source, and return to the request of data layer by the middle layer.The present invention is integrated and is sorted out to requested resource by unified resource access protocol, is realized and is accessed the unified resource of various resource informations, while reducing the coupled relation between data requester and data acquisition person.

Description

A kind of frame and method of unified resource access
Technical field
The present invention relates to field of computer technology, the frame accessed more particularly, to a kind of unified resource and method.
Background technology
The presentation of element is various in interface in the process of development, these elements presented are typically by various Data composition, the source of different data and acquisition modes are different.
Currently, conventional way is in needing the module using data element, according to the separate sources of data to difference Data are obtained at data source;Due to the data format of different data sources and/or the difference of storage mode, generally require to pass through difference Mode obtain data.
It needs to obtain data by different modes in this way, developer is resulted in need to develop more set code logics to expire Sufficient multiple channel obtains the needs of various data informations, substantially increases the development difficulty of developer, is unfavorable for out The convenience of hair.
Invention content
The present invention provides what a kind of unified resource that overcoming the above problem or solve the above problems at least partly accessed Frame and method.
According to an aspect of the present invention, a kind of frame that unified resource accesses, including request of data layer, middle layer are provided With data acquisition layer;
The request of data layer, for being asked based on unified resource access protocol encapsulation of data, to the data acquisition layer Request data;
The middle layer is sent to the data acquisition after the request of data for receiving the request of data layer Layer, and the returned data for receiving the data acquisition layer is sent to the request of data layer;
The data acquisition layer, the request of data for receiving the middle layer forwarding, according to specified data source The data of specified type are obtained, and the request of data layer is returned to by the middle layer.
Further, the unified resource access protocol includes request header, request data source and required parameter three parts;
The request header, the data type for identifying requested data;
The request data source, for identifying requested data source;
The required parameter accesses the access parameter that data need for identifying from the request data source.
Further, the request of data layer further comprises encapsulation unit and transmission unit;
The encapsulation unit, for being based on unified resource access protocol, by the first separator by requested data class The request of data that type, data source and access parameter are encapsulated as string format passes through first wherein when there is multiple access parameters The multiple access parameter is packaged into a character string by the second separator;
The transmission unit, for the request of data to be sent to the middle layer, with by the middle layer to institute State data acquisition layer request data.
Further, the middle layer further includes protocol analysis unit, and the protocol analysis unit is used for:Based on the unification The request of data is resolved to request header, request data source and required parameter, and is sent to the data by resource access protocol Obtain layer.
Further, the protocol analysis unit further comprises the first resolution unit and the second resolution unit;
First resolution unit obtains the request of data for searching the first separator in the request of data Described in the three parts content that is separated of the first separator be respectively request header, request data source and required parameter;
Second resolution unit obtains the required parameter for searching the second separator in the required parameter Described in the second separator separated 0, one or more access parameters.
According to another aspect of the present invention, a kind of method that unified resource accesses also is provided, including:
S1, request of data layer are asked based on unified resource access protocol encapsulation of data, are sent to middle layer;
S2, the middle layer receive the request of data of the request of data layer, and agreement is carried out to the request of data Data acquisition layer is sent to after parsing;
S3, the data acquisition layer receive the request of data of the middle layer forwarding, are obtained according to specified data source The data of specified type are taken, and the request of data layer is returned to by the middle layer.
Specifically, the unified resource access protocol includes request header, request data source and required parameter three parts;
The request header, the data type for identifying requested data;
The request data source, for identifying requested data source;
The required parameter accesses the access parameter that data need for identifying from the request data source.
Further, the S1 further comprises:
S1.1 is based on unified resource access protocol, by the first separator by requested data type, data source and visit Ask that parameter is encapsulated as the request of data of string format, wherein when there is multiple access parameters, it first will by the second separator The multiple access parameter is packaged into a character string;
The request of data is sent to the middle layer by S1.2, with by the middle layer to the data acquisition layer Request data;
The S2 further comprises:
S2.1 searches the first separator in the request of data, obtains the first separator described in the request of data The three parts content separated is respectively request header, request data source and required parameter;
S2.2 searches the second separator in the required parameter, obtains the second separator described in the required parameter 0, one or more access parameters separated.
According to another aspect of the present invention, a kind of equipment for the method that unified resource accesses also is provided, including:
At least one processor;And
At least one processor being connect with the processor communication, wherein:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Enable the method that a kind of unified resource of the present invention accesses that is able to carry out.
According to another aspect of the present invention, a kind of non-transient computer readable storage medium is also provided, it is described non-transient Computer-readable recording medium storage computer instruction, the computer instruction make the computer execute of the present invention one The method that kind unified resource accesses.
The present invention proposes a kind of frame and method of unified resource access, by unified resource access protocol to requested Resource is integrated and is sorted out, and provides a set of unified resource by request of data layer, middle layer and data acquisition layer and access Frame, request of data layer realize data access by unified access interface, realize the unification to various resource informations The rules and methods that resource accesses.By introducing middle layer between request of data layer and data acquisition layer, carrys out isolated data and ask Coupled relation between the person of asking and data acquisition person so that each layer can be absorbed in respective function.
Description of the drawings
Fig. 1 is the block schematic illustration that a kind of unified resource of the embodiment of the present invention accesses;
Fig. 2 is the method flow diagram that a kind of unified resource of the embodiment of the present invention accesses;
Fig. 3 is the device structure block diagram for the method that a kind of unified resource of the embodiment of the present invention accesses.
Specific implementation mode
With reference to the accompanying drawings and examples, the specific implementation mode of the present invention is described in further detail.Implement below Example is not limited to the scope of the present invention for illustrating the present invention.
As shown in Figure 1, the frame that a kind of unified resource accesses, including request of data layer, middle layer and data acquisition layer;
The request of data layer, for being asked based on unified resource access protocol encapsulation of data, to the data acquisition layer Request data;
The middle layer is sent to the data acquisition after the request of data for receiving the request of data layer Layer, and the returned data for receiving the data acquisition layer is sent to the request of data layer;
The data acquisition layer, the request of data for receiving the middle layer forwarding, according to specified data source The data of specified type are obtained, and the request of data layer is returned to by the middle layer.
The present embodiment causes development difficulty is increased to ask to solve different types of data and different data acquiring modes Topic, devises unified resource access protocol and requested resource is integrated and sorted out, and pass through request of data layer, middle layer A set of unified resource is provided with data acquisition layer and accesses frame, and request of data layer realizes that data are visited by unified access interface It asks, realizes and the unified resource of various resource informations is accessed.
By introducing middle layer between request of data layer and data acquisition layer, come isolated data requestor and data acquisition Coupled relation between person so that each layer can be absorbed in respective function.
Traditional mode is data acquisition will make total to data requester, this design is directly passed data to afterwards According to very serious coupled relation is generated between requestor and data acquisition person, less it is conducive to extension and the dimension in software systems later stage Shield, establishes one layer of middle layer to carry out data forwarding to parse coupling between the two.
In one embodiment, the unified resource access protocol includes request header, request data source and required parameter three Part;
The request header, the data type for identifying requested data;
The request data source, for identifying requested data source;
The required parameter accesses the access parameter that data need for identifying from the request data source.
Specifically, the data type includes:Binary file, audio file, video file, picture and standard JSON numbers According to;
The source address includes:URL, database, file, binary data and character string.
The required parameter includes 0, one or more access parameters.
The unified resource access protocol has been described in detail in the present embodiment.The request header mark is the number for needing to ask According to type, that is, encapsulate the data type specifically to be asked.In order to be compatible with numerous types of data and facilitate the later stage to data type Extension, can by the dtd--data type definition of request header be character string type format, that is to say, that demarcated by character string Need the truthful data type asked.For example can support conventional data type, such as:RawFile (binary file), pic (picture), json (the JSON formatted datas of standard), audio (audio file) and movie (video file) etc..It can be with root According to compatible other data types are needed, only need increase request header type can be extended at this time.
What the request data source mark needed to ask is data where, for example can be the data on network, It can be the data in database, can be the data in file, it might even be possible to be a key in some JSON character string Value pair, can be with binary data etc..
On the other hand, the request data source identifies the source-information of the acquisition of data, and data acquisition layer is according to this Data origin information carries out real data acquisition operations, and finally carries out returning for data according to the required type of protocol header It returns.
The data request parameter mainly carries required access parameter when upper request of data, this, which accesses parameter, is More required additional letter when the information, i.e. data acquisition that needs know when data acquiring portion carries out data acquisition Breath.The number for accessing parameter, which can be 0, not to be had, or 1 or multiple.
In one embodiment, the request of data layer further comprises encapsulation unit and transmission unit;
The encapsulation unit, for being based on unified resource access protocol, by the first separator by requested data class The request of data that type, data source and access parameter are encapsulated as string format passes through first wherein when there is multiple access parameters The multiple access parameter is packaged into a character string by the second separator;
The transmission unit, for the request of data to be sent to the middle layer, with by the middle layer to institute State data acquisition layer request data.
Present embodiment describes the encapsulation of request of data layer and the specific processing of transmission data request.It is simple with one here Example be described the result of encapsulation.
For example, request of data layer needs to access position to be http:One at //www.xxx.com/abc/pic.png The file of png formats, and access this file when need to provide user username and password can correctly into Row accesses, at this time according to above-mentioned described mode come when accessing, the data of the unified resource access protocol of construction Request is as follows:
Png:http://www.xxx.com/abc/pic.png:Username=xxx, password=xxx;
In above-mentioned example, request of data is divided into three bulks in total, each piece be all by ":" be split , first piece is png, and expression is that need to access is a png picture, the second block access path representation need to access this Location information where a picture, third block indicate that accessing picture needs account to be offered and encrypted message.
By protocol encapsulation format above, final request is packaged into a string format, is passed by middle layer Defeated to arrive data acquisition layer, such data acquiring portion will obtain data according to the parameter provided in agreement, and will The data finally got are returned.
The access of any data is finally all converted into protocol format described above to make requests on, thus realizes unified rule Mode then accesses any kind of data.
In one embodiment, the middle layer further includes protocol analysis unit, and the protocol analysis unit is used for:It is based on The request of data is resolved to request header, request data source and required parameter, and is sent to by the unified resource access protocol The data acquisition layer.
In the present embodiment, middle layer has been isolated as a data terminal between request of data layer and data acquisition layer Coupled relation, while a parsing also is carried out to the request of data that receives.
Pass through setting up come the coupled relation between isolated data requestor and data acquisition person for middle layer, that is to say, that number It is that request of data is sent to middle layer first according to requestor, middle layer can simply parse the data in request of data Then data transfer after parsing is carried out real data acquisition work to data acquisition person by work.
It can be parsed by the method for introducing middle layer and obtain resource requestor in the actual connection obtained between taker of resource System, also acts the work of the parsing to request protocol, when the data after parsing are transferred to data acquisition layer in this way, number It just only needs to pay close attention to specific data acquisition logic according to layer is obtained.
In one embodiment, the protocol analysis unit further comprises the first resolution unit and the second resolution unit;
First resolution unit obtains the request of data for searching the first separator in the request of data Described in the three parts content that is separated of the first separator be respectively request header, request data source and required parameter;
Second resolution unit obtains the required parameter for searching the second separator in the required parameter Described in the second separator separated 0, one or more access parameters.
In the present embodiment, middle layer carries out unified resource visit by character symbol i.e. first separator and the second separator Ask the parsing of agreement.
Specifically, first separator be ":", second separator is ", ".
By taking java language as an example, since unified resource access protocol content itself is a string of character string (String) types Data, can call in character string split (":") function is split the character string of protocol contents, split function meetings By agreement character string according to ":" returned to be divided into three small character strings, description is by three words after segmentation for convenience Symbol string is respectively labeled as ABC, and the wherein content of A is exactly the request header of unified resource access protocol, and B is exactly that unified resource accesses association The request data source of view, C are exactly the access parameter of unified resource access protocol.
Next protocol parameter part is parsed, the Image Segmentation Methods Based on Features symbol of protocol parameter C is ", ", each in C Parameter be all be split with ", ", so still or can be come by split (", ") function to C according to ", " come into Row segmentation, this makes it possible to the key-value pair informations for being partitioned into each parameter.Key-value pair information be with characteristic value "=" come into Row segmentation, the key and value information that obtain in key-value pair are split by split ("=").
All the elements information in agreement can be completely parsed by mode above, so subsequently The data acquisition operations that the content parsed is gone really to be to data directly to data acquisition layer.
Specifically, the request of data that the data acquisition layer receives the middle layer forwarding parses for the middle layer Request header, request data source and the required parameter obtained after the request of data;
The specified data source is the request data source in the request of data;
The specified type is the request header in the request of data.
In the present embodiment, the parsing work due to middle layer to request of data, what data acquisition layer received is intermediate Data after layer parsing;Data after parsing are transferred to data acquisition layer by middle layer, and data acquisition layer just only needs to pay close attention to tool The data acquisition logic of body.
As shown in Fig. 2, the present invention also provides a kind of methods that unified resource accesses, including:
S1, request of data layer are asked based on unified resource access protocol encapsulation of data, are sent to middle layer;
S2, the middle layer receive the request of data of the request of data layer, and agreement is carried out to the request of data Data acquisition layer is sent to after parsing;
S3, the data acquisition layer receive the request of data of the middle layer forwarding, are obtained according to specified data source The data of specified type are taken, and the request of data layer is returned to by the middle layer.
In one embodiment, the unified resource access protocol includes request header, request data source and required parameter three Part;
The request header, the data type for identifying requested data;
The request data source, for identifying requested data source;
The required parameter accesses the access parameter that data need for identifying from the request data source.
The frame that unified resource access protocol described in the present embodiment is accessed with a kind of unified resource of the embodiment of the present invention Unified resource access protocol is identical.
Specifically, specified data source described in S3 is the request data source in the unified resource access protocol, it is described Specified type is the request header in the unified resource access protocol.
The method that the unified resource that the present embodiment is provided accesses, by unified resource access protocol to requested resource It is integrated and is sorted out, and provided a set of unified resource by request of data layer, middle layer and data acquisition layer and access frame, Request of data layer realizes data access by unified access interface, realizes and visits the unified resource of various resource informations Ask solve the problems, such as different types of data and different data acquiring modes and development difficulty is caused to increase.
By introducing middle layer between request of data layer and data acquisition layer, come isolated data requestor and data acquisition Coupled relation between person so that each layer can be absorbed in respective function.
In one embodiment, the S1 further comprises:
S1.1 is based on unified resource access protocol, by the first separator by requested data type, data source and visit Ask that parameter is encapsulated as the request of data of string format, wherein when there is multiple access parameters, it first will by the second separator The multiple access parameter is packaged into a character string;
The request of data is sent to the middle layer by S1.2, with by the middle layer to the data acquisition layer Request data;
In one embodiment, the S2 further comprises:
S2.1 searches the first separator in the request of data, obtains the first separator described in the request of data The three parts content separated is respectively request header, request data source and required parameter;
S2.2 searches the second separator in the required parameter, obtains the second separator described in the required parameter 0, one or more access parameters separated.
Fig. 3 shows the device structure block diagram for the method that a kind of unified resource of the embodiment of the present invention accesses.
Reference Fig. 3, described device, including:Processor (processor) 601, memory (memory) 602 and bus 603;
Wherein,
The processor 601 and memory 602 complete mutual communication by the bus 603;
The processor 601 is used to call the program instruction in the memory 602, to execute above-mentioned each method embodiment The method provided, such as including:Request of data layer is asked based on unified resource access protocol encapsulation of data, is sent to centre Layer;The middle layer receives the request of data of the request of data layer, is sent out after carrying out protocol analysis to the request of data Give data acquisition layer;The data acquisition layer receives the request of data of the middle layer forwarding, according to specified data Source obtains the data of specified type, and returns to the request of data layer by the middle layer.
Another embodiment of the present invention discloses a kind of computer program product, and the computer program product is non-including being stored in Computer program in transitory computer readable storage medium, the computer program include program instruction, when described program refers to When order is computer-executed, computer is able to carry out the method that above-mentioned each method embodiment is provided, such as including:Request of data Layer is asked based on unified resource access protocol encapsulation of data, is sent to middle layer;The middle layer receives the request of data layer The request of data, to the request of data carry out protocol analysis after be sent to data acquisition layer;The data acquisition layer connects The request of data for receiving the middle layer forwarding, the data of specified type is obtained according to specified data source, and by described Middle layer returns to the request of data layer.
Another embodiment of the present invention provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable Storage medium stores computer instruction, and the computer instruction makes the computer execute what above-mentioned each method embodiment was provided Method, such as including:Request of data layer is asked based on unified resource access protocol encapsulation of data, is sent to middle layer;In described Interbed receives the request of data of the request of data layer, is obtained to being sent to data after request of data progress protocol analysis Take layer;The data acquisition layer receives the request of data of the middle layer forwarding, is obtained according to specified data source specified The data of type, and the request of data layer is returned to by the middle layer.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer read/write memory medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light The various media that can store program code such as disk.
The embodiments such as the equipment of method that a kind of unified resource described above accesses are only schematical, wherein institute It states the unit illustrated as separating component may or may not be physically separated, the component shown as unit can To be or may not be physical unit, you can be located at a place, or may be distributed over multiple network units. Some or all of module therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.This field is general Logical technical staff is not in the case where paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, the present processes are only preferable embodiment, are not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in the protection of the present invention Within the scope of.

Claims (10)

1. the frame that a kind of unified resource accesses, which is characterized in that including request of data layer, middle layer and data acquisition layer;
The request of data layer is asked for being asked based on unified resource access protocol encapsulation of data to the data acquisition layer Data;
The middle layer is sent to the data acquisition layer after the request of data for receiving the request of data layer, and The returned data for receiving the data acquisition layer is sent to the request of data layer;
The data acquisition layer, the request of data for receiving the middle layer forwarding, obtains according to specified data source The data of specified type, and the request of data layer is returned to by the middle layer.
2. frame as described in claim 1, which is characterized in that the unified resource access protocol includes request header, number of request According to source and required parameter three parts
The request header, the data type for identifying requested data;
The request data source, for identifying requested data source;
The required parameter accesses the access parameter that data need for identifying from the request data source.
3. frame as claimed in claim 2, which is characterized in that the request of data layer further comprises encapsulation unit and transmission Unit;
The encapsulation unit, for being based on unified resource access protocol, by the first separator by requested data type, number The request of data that string format is encapsulated as according to source and access parameter passes through second first wherein when there is multiple access parameters The multiple access parameter is packaged into a character string by separator;
The transmission unit, for the request of data to be sent to the middle layer, with by the middle layer to the number According to acquisition layer request data.
4. frame as claimed in claim 3, which is characterized in that the middle layer further includes protocol analysis unit, the agreement Resolution unit is used for:Based on the unified resource access protocol, by the request of data resolve to request header, request data source and Required parameter, and it is sent to the data acquisition layer.
5. frame as claimed in claim 4, which is characterized in that the protocol analysis unit further comprises the first resolution unit With the second resolution unit;
First resolution unit obtains institute in the request of data for searching the first separator in the request of data It is respectively request header, request data source and required parameter to state the three parts content that the first separator is separated;
Second resolution unit obtains institute in the required parameter for searching the second separator in the required parameter State 0, one or more access parameters that the second separator is separated.
6. a kind of method that unified resource accesses, which is characterized in that including:
S1, request of data layer are asked based on unified resource access protocol encapsulation of data, are sent to middle layer;
S2, the middle layer receive the request of data of the request of data layer, and protocol analysis is carried out to the request of data After be sent to data acquisition layer;
S3, the data acquisition layer receive the request of data of the middle layer forwarding, are obtained and referred to according to specified data source Determine the data of type, and the request of data layer is returned to by the middle layer.
7. method as claimed in claim 6, which is characterized in that the unified resource access protocol includes request header, number of request According to source and required parameter three parts;
The request header, the data type for identifying requested data;
The request data source, for identifying requested data source;
The required parameter accesses the access parameter that data need for identifying from the request data source.
8. the method for claim 7, which is characterized in that
The S1 further comprises:
S1.1 is based on unified resource access protocol, and by requested data type, data source and ginseng is accessed by the first separator Number is encapsulated as the request of data of string format, wherein when there is multiple access parameters, it first will be described by the second separator Multiple access parameters are packaged into a character string;
The request of data is sent to the middle layer by S1.2, to be asked to the data acquisition layer by the middle layer Data;
The S2 further comprises:
S2.1 searches the first separator in the request of data, obtains the first separator described in the request of data and divides Every three parts content be respectively request header, request data source and required parameter;
S2.2 searches the second separator in the required parameter, obtains the second separator described in the required parameter and divides Every 0, one or more access parameters.
9. the equipment for a kind of method that unified resource accesses, which is characterized in that including:
At least one processor;And
At least one processor being connect with the processor communication, wherein:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in claim 6 to 8 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 6 to 8 is any.
CN201710301431.5A 2017-05-02 2017-05-02 Framework and method for unified resource access Active CN108809900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710301431.5A CN108809900B (en) 2017-05-02 2017-05-02 Framework and method for unified resource access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710301431.5A CN108809900B (en) 2017-05-02 2017-05-02 Framework and method for unified resource access

Publications (2)

Publication Number Publication Date
CN108809900A true CN108809900A (en) 2018-11-13
CN108809900B CN108809900B (en) 2021-09-07

Family

ID=64053939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710301431.5A Active CN108809900B (en) 2017-05-02 2017-05-02 Framework and method for unified resource access

Country Status (1)

Country Link
CN (1) CN108809900B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087524A (en) * 2020-09-21 2020-12-15 烟台云朵软件有限公司 Unified access method and device for multi-source heterogeneous medical data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640700A (en) * 2008-07-31 2010-02-03 Sap股份公司 Method and system for mediating enterprise service access for smart devices
CN103944902A (en) * 2010-08-13 2014-07-23 华为技术有限公司 Method, device and equipment for aggregating Mashup service for service
US20150095976A1 (en) * 2010-05-24 2015-04-02 Pi-Coral, Inc. Virtual access to network services
CN105491169A (en) * 2016-01-26 2016-04-13 苏州蜗牛数字科技股份有限公司 Data proxy method and system
CN106202452A (en) * 2016-07-15 2016-12-07 复旦大学 The uniform data resource management system of big data platform and method
CN106547766A (en) * 2015-09-18 2017-03-29 华为技术有限公司 A kind of data access method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640700A (en) * 2008-07-31 2010-02-03 Sap股份公司 Method and system for mediating enterprise service access for smart devices
US20150095976A1 (en) * 2010-05-24 2015-04-02 Pi-Coral, Inc. Virtual access to network services
CN103944902A (en) * 2010-08-13 2014-07-23 华为技术有限公司 Method, device and equipment for aggregating Mashup service for service
CN106547766A (en) * 2015-09-18 2017-03-29 华为技术有限公司 A kind of data access method and device
CN105491169A (en) * 2016-01-26 2016-04-13 苏州蜗牛数字科技股份有限公司 Data proxy method and system
CN106202452A (en) * 2016-07-15 2016-12-07 复旦大学 The uniform data resource management system of big data platform and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087524A (en) * 2020-09-21 2020-12-15 烟台云朵软件有限公司 Unified access method and device for multi-source heterogeneous medical data

Also Published As

Publication number Publication date
CN108809900B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN111931064B (en) Information analysis method based on big data and artificial intelligence and cloud service information platform
US11922232B2 (en) Responding to incidents identified by an information technology and security operations application using a mobile application
US20210304075A1 (en) Batching techniques for handling unbalanced training data for a chatbot
US20200356610A1 (en) Secure digital assistant integration in web pages
EP2680161A1 (en) Uniform Resource Locator (URL) improvement methods
KR20180090957A (en) Generate audio-based data structures
JP2003518683A (en) Method and apparatus for presenting data to a user
US20200151177A1 (en) Data Query Method Supporting Natural Language, Open Platform, and User Terminal
CN107908695A (en) Operation system operation method, device, system and readable storage medium storing program for executing
JP6968897B2 (en) Establishing an audio-based network session with unregistered resources
US11620303B1 (en) Security essentials and information technology essentials for a data intake and query system
CA3017523C (en) Technologies for auto discover and connect to a rest interface
US20150012533A1 (en) Method and client device for accessing webpage
US11847165B2 (en) Integration of video conferencing applications with on-demand database services
CN109814863A (en) A kind of processing method, device, computer equipment and computer storage medium for requesting returned data
CN113381866A (en) Service calling method, device, equipment and storage medium based on gateway
US20240070347A1 (en) Dynamic asset management system and methods for generating interactive simulations representing assets based on automatically generated asset records
WO2022026984A1 (en) Data field extraction model training for a data intake and query system
CN108809900A (en) A kind of frame and method of unified resource access
US20210342429A1 (en) Automatic anonymous visitor identity resolution using machine learning
EP3923157A1 (en) Data stream processing
CN112487218A (en) Content processing method, system, device, computing equipment and storage medium
CN114499759B (en) Message generation method and device, electronic equipment and storage medium
WO2023230797A1 (en) Cross-system test method and apparatus
CN114115833B (en) Automatic protocol audit code generation method and device

Legal Events

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

Effective date of registration: 20230913

Address after: 801, Huanan City headquarters building, No.1, Huanan Avenue, Hehua community, Pinghu street, Longgang District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Huanan City Digital Technology Co.,Ltd.

Address before: 430000 Wuhan Donghu Development Zone, Wuhan, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right