CN106599045A - Request sending method and apparatus - Google Patents

Request sending method and apparatus Download PDF

Info

Publication number
CN106599045A
CN106599045A CN201610985894.3A CN201610985894A CN106599045A CN 106599045 A CN106599045 A CN 106599045A CN 201610985894 A CN201610985894 A CN 201610985894A CN 106599045 A CN106599045 A CN 106599045A
Authority
CN
China
Prior art keywords
unit
identification information
plug
corresponding
3rd
Prior art date
Application number
CN201610985894.3A
Other languages
Chinese (zh)
Inventor
张甫
杨光润
肖斌
朱蕾
彭小波
何继远
周忠恳
Original Assignee
上海艾融软件股份有限公司
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 上海艾融软件股份有限公司 filed Critical 上海艾融软件股份有限公司
Priority to CN201610985894.3A priority Critical patent/CN106599045A/en
Publication of CN106599045A publication Critical patent/CN106599045A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention discloses a request sending method, which is used for solving the problem of relatively low request response efficiency of an existing hybrid application caused by relatively low request sending speed between a native application part and a web application part in the hybrid application in the prior art. The method comprises the steps of obtaining identifier information of at least one plug-in contained in a first unit; determining a corresponding relationship between the identifier information and a specified operation request, and storing the corresponding relationship between the identifier information and the specified operation request; receiving an operation request sent by a second unit, and determining the identifier information corresponding to the operation request according to the stored corresponding relationship; and sending the operation request containing the determined identifier information to the first unit according to the determined identifier information, thereby calling the plug-in corresponding to the determined identifier information and contained in the first unit. The invention furthermore discloses a request sending apparatus.

Description

One kind request sending method and device

Technical field

The application is related to field of computer technology, more particularly to a kind of request sending method and device.

Background technology

With the continuous development of Internet information technique, increasing intelligent terminal is developed, and widely should Used in life every aspect, intelligent terminal mentioned here such as can for desktop computer, notebook computer, smart mobile phone, Panel computer, intelligent watch etc., and may be mounted at the application on these intelligent terminal (Application, APP) can divide again For native applications, web applications and mixing application.

Wherein, native applications are specific to a certain class intelligent terminal and develop, and they can run directly in correspondence Intelligent terminal operating system on run, for example, for iOS operating systems exploitation application or for Android operation System and the application developed.And Web applications may refer in simple terms the application designed and developed based on browser, they can be with Run using the browser (such as the Safari in IE, iPhone in windows systems) on intelligent terminal, and they can To run in a variety of operating systems.And mix application as the term suggests just referring to the combination of native applications and web applications Body, employs a part, the part for Web applications of native applications.Because mixing application has had the good user of native applications concurrently The advantage of interactive experience and the advantage of web application Cross-border congestion managements, thus nowadays, some mainstream applications are all being answered towards mixing With direction developing.

At present, mixing is applied when the part for realizing that the part of native applications is applied with web interacts, and often uses association Primary application obscure portions (or web application obscure portions) first can when a request is sent in the mode that view is intercepted, i.e. mixing application Intercepted by operating system, and then the corresponding implementation of the request is judged, when operating system judges the request needs When having web application obscure portions to realize, just can by this request send to web application obscure portions, and by web application obscure portions at Reason.

And mix and apply when the information exchange of native applications part and web application obscure portions is carried out using aforesaid way, by Intercepted and judged in request is required to first, thus existing mixing application is in actual use, it is possible that Request response is relatively slow, the problem for asking treatment effeciency relatively low.

For example, as shown in figure 1, user operation circle applied for the mixing that in prior art is arranged on smart mobile phone Face, " A " region shown in figure is to show the region of web application obscure portions in the mixing application, and " A " region is removed in figure Other regions in addition, are the region that native applications part is shown in the mixing application, when user is by clicking on " A " region to touch When sending out the web application obscure portions functions of starting the mixing application, because using existing request transmission mechanism, request sends relatively slow, Response time is longer, thus can cause after " A " region is clicked on, and the mixing application needs longer time to switch for user To the desired function interface of user, the mixing application during redirecting typically can be that user shows and as shown in Figure 2 redirects boundary Face, the strong influence experience of user.

Thus, how to avoid because transmission please between primary application obscure portions and web application obscure portions in existing mixing application Ask speed slower, in turn result in it is existing mixing application request response efficiency it is relatively low, become prior art problem demanding prompt solution.

The content of the invention

The embodiment of the present application provides a kind of request sending method, to solve using prior art because Central Plains is applied in mixing Request speed is sent between raw application obscure portions and web application obscure portions slower, in turn result in existing mixing application request response effect The relatively low problem of rate.

The embodiment of the present application also provides a kind of send-request unit, to solve using prior art due in mixing application Request speed is sent between native applications part and web application obscure portions slower, in turn result in existing mixing application request response Less efficient problem.

The embodiment of the present application adopts following technical proposals:

One kind request sending method, including:

Obtain the identification information of at least one plug-in unit included in first module;

Determine the corresponding relation of the identification information and assigned operation request, and preserve the identification information and specify with described The corresponding relation of operation requests;

The operation requests that second unit sends are received, and according to the corresponding relation for preserving, it is determined that please with the operation Seek corresponding identification information;

According to the identification information for determining, the operation requests of the identification information comprising the determination are sent to first module, with Call the plug-in unit corresponding with the identification information of the determination included in first module.

A kind of send-request unit, including:

Identification information obtaining unit, for obtaining second unit in the identification information of at least one plug-in unit that includes;

Corresponding relation determining unit, for determining the corresponding relation of the identification information and assigned operation request, preserves institute State the corresponding relation that identification information is asked with the assigned operation;

Operation requests receiving unit, for receiving the operation requests that Unit the 3rd sends, and according to the correspondence for preserving Relation, it is determined that identification information corresponding with the operation requests;

Call request transmitting element, for according to the identification information for determining, sending comprising the determination to second unit The call request of identification information, to call second unit in the plug-in unit corresponding with the identification information of the determination that include.

Above-mentioned at least one technical scheme that the embodiment of the present application is adopted can reach following beneficial effect:

Because first module can be obtained ahead of time the identification information of the plug-in unit included in second unit, and it is determined that mark letter After the corresponding relation that breath is asked with assigned operation, the corresponding relation of identification information and assigned operation request is preserved, work as first module Receive Unit the 3rd transmission operation requests after, first module can according to the corresponding relation for pre-saving, it is determined that with the behaviour Make the corresponding identification information of request, and then the call request comprising the identification information is sent to second unit, to call the second list The plug-in unit corresponding with the identification information of shown determination included in unit, using the method, when second unit in application and the 3rd list When needing mutually to send operation requests between unit, it is only necessary to can complete sending out for operation requests by the first module in application Send, without as prior art, first intercepting operation requests, further processed, thus avoid by To be intercepted in the request to sending and be caused to ask transmission speed slower, in turn resulting in request, response efficiency is relatively low asks Topic.

Description of the drawings

Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:

A kind of showing interface design sketch of mixing application that Fig. 1 is provided for prior art;

The interfacial effect figure that Fig. 2 is waited for a kind of mixing application response that prior art is provided;

A kind of idiographic flow instance graph of request sending method that Fig. 3 is provided for the embodiment of the present application;

A kind of Organization Chart of mixing application that Fig. 4 is provided for the embodiment of the present application;

A kind of transmission flow schematic diagram of keyboard call request that Fig. 5 is provided for the embodiment of the present application;

A kind of operation interface schematic diagram of web application obscure portions that Fig. 6 is provided for the embodiment of the present application;

Fig. 7 arouses the effect of keyboard for a kind of web application obscure portions that the embodiment of the present application is provided by keyboard call request Schematic diagram;

A kind of concrete structure schematic diagram of send-request unit that Fig. 8 is provided for the embodiment of the present application.

Specific embodiment

To make purpose, technical scheme and the advantage of the application clearer, below in conjunction with the application specific embodiment and Corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, described embodiment is only the application one Section Example, rather than the embodiment of whole.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.

Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application is provided is described in detail.

Embodiment 1

The embodiment of the present application provides a kind of request sending method, to solve using prior art due in mixing application Request speed is sent between native applications part and web application obscure portions slower, in turn result in existing mixing application request response Less efficient problem.

The embodiment of the present application provide request sending method executive agent, can be, but not limited to for mobile phone, panel computer, In PC (Personal Computer, PC), intelligent television and any terminal unit that can run application at least It is a kind of.Additionally, the executive agent of the method, or applying itself.

For ease of description, hereafter executive agent in this way is as a example by application software, the embodiment of the method to be entered Row is introduced.It is appreciated that the executive agent of the method is using a kind of simply exemplary explanation, it is not construed as to the party The restriction of method.

The idiographic flow schematic diagram of the method is as shown in figure 3, mainly comprise the steps:

Step 11, first module obtains the identification information of at least one plug-in unit included in second unit;

Wherein, the first module is the part of functions unit for constituting the application software with second unit.With this As a example by for mixing application, then the second unit can be the native applications part of the application, or the second unit Can also be the web application obscure portions of the application.

Still so that application is for mixing application as an example, first application typically could be for bridging web in the mixing application Application obscure portions are interacted with native applications part, realize the number between primary application obscure portions and web application obscure portions in mixing application Send according to communication and request etc., for example, the first module can be HTML rendering engine (HTML Rendering Engine)。

Multiple feature cards are included in the second unit, application software is inserted by calling at least one of second unit Part performs assigned operation, to realize some specified functions of the application software.

It should be noted that in order to application software being made to obtain in second unit the plug-in unit that includes and calling these to insert Part can be respectively the function of realization, and in a kind of embodiment, after application software initiated, second unit can be according to guarantor in advance The configuration information deposited, registers to the plug-in unit in second unit, so that the identification information of the plug-in unit included in second unit In being exposed on the process context of the application operation, and the function corresponding to the plug-in unit is declared, and then first module can lead to Cross the identification information comprising plug-in unit in calling unified interface method to obtain second unit.

Wherein, unified interface method mentioned here, may generally refer to using define for first module in advance, use It is regular in the method communicated with other units, such as, it is assumed here that mixing application is the predefined unification of first module Interface method be " Bridge Native " application programming interface (Application Programming Interface, API), for the ease of description, hereinafter referred to as " Bridge Native API ", then the first module in mixing application can pass through It is somebody's turn to do the communication of " Bridge Native API " realization and other parts in the application.And the identification information of plug-in unit mentioned here, The title of plug-in unit is such as may refer to, or plug-in unit is in registration, numbering that mobile phone operating system distributes for the plug-in unit automatically etc., Here the identification information of plug-in unit is not limited for which kind of identification information, as long as the identification information can uniquely represent the plug-in unit .

Also, it should be noted that after being closed every time due to application, operating system is to run the process distributed of the application It is also turned off, thus when application starts every time, the second unit in application is typically required to according to configuration information, it is single to second Plug-in unit in unit is registered.

Step 12, it is determined that the identification information obtained by execution step 11 and the corresponding relation of assigned operation request, are preserved The corresponding relation that the identification information is asked with the assigned operation;

In one embodiment, the specific implementation of step 12 can include:It is determined that corresponding with the identification information Plug-in unit function;It is determined that operation requests corresponding with the function;Determine that the operation requests are right with the identification information Should be related to.

Specifically, first module can be by second unit in application operation, the ability plugin information registered in process, It is determined that running the function achieved by the plug-in unit, and then set up the plug-in unit and be used to call associating for the operation requests of the function System, and the identification information of the plug-in unit and the incidence relation of the operation requests are preserved, so that when first module is received for adjusting During with the operation requests of specified function, can according to the identification information of the plug-in unit for pre-saving and the incidence relation of operation requests, Determine the operation requests plug-in unit to be called.

Step 13, receives the operation requests that Unit the 3rd sends, according to the operation requests preserved by execution step 12 with The corresponding relation of identification information, it is determined that identification information corresponding with the operation requests;

Wherein, Unit the 3rd is similarly the part of functions unit for constituting the application software.Still with this using soft Part is that as a example by mixing application, Unit the 3rd can be web application obscure portions, or Unit the 3rd can also be primary answering With part, and when second unit is native applications part, Unit the 3rd is web application obscure portions, or when described second When unit is web application obscure portions, Unit the 3rd is native applications part.

It should be noted that the operation requests that the Unit the 3rd for receiving sends are except including what the 3rd unit wishes were called The identification information of plug-in unit, also carries the |input paramete that the 3rd unit wishes call plug-in unit, for example, successful call back function, mistake Call back function, event type etc., so that the above-mentioned |input paramete for receiving is sent in the lump second unit by first module, enter And second unit can determine the plug-in unit to be called, and |input paramete is input into into the plug-in unit.

Web application obscure portions in Unit the 3rd as mixing application, and by execution step 12, first module saves mark Knowledge information " keyboard " with for calling the corresponding relation of operation requests of " keyboard " as a example by, when Unit the 3rd need to call it is mixed When " keyboard " function in native applications is applied in conjunction, Unit the 3rd can be sent for calling " keyboard " to the first module Operation requests, then first module can be according to the corresponding relation of the identification information and operation requests for pre-saving, it is determined that for adjusting It is " keyboard " with the identification information corresponding to the operation requests of " keyboard ".

Step 14, according to the identification information determined by execution step 13, is sent comprising the determination to second unit The call request of identification information, to call second unit in the plug-in unit corresponding with the identification information of the determination that include.

After first module determines the corresponding identification information of operation requests that Unit the 3rd is sent by execution step 13, the Unit one can send the call request with the identification information for determining to the second unit comprising plug-in unit, so that second unit can With according to the identification information included in call request, it is determined that the plug-in unit corresponding with the identification information, and then call the plug-in unit.

It should be noted that in order to second unit are synchronized to into Unit the 3rd to the result asked, so that Unit the 3rd can inquire disposition of the second unit to request, and then avoid Unit the 3rd from repeating to send operation requests, In one embodiment, second unit and Unit the 3rd can be respectively and create a message queue, when second unit according to The call request that first module sends calls specific plug-in, and is performed after the request of second unit by the plug-in unit, and plug-in unit will can be asked During the message of the second unit that result returns is sought to queue, and according to first in first out, by second unit message queue In request result take out, and the message queue of Unit the 3rd is returned to, so that Unit the 3rd is obtained in that second is single Result of the unit to request.

Specifically, the method that the embodiment of the present application is provided can include:First message queue is created for the second unit; The call request of the identification information comprising the determination is sent to second unit, so that the second unit is according to the mark Information, it is determined that the plug-in unit corresponding with the identification information;Receive and called described in the plug-in unit execution that the second unit passes through determination The result asked and return;The result is stored in the first message queue.

And sending the call request comprising the identification information for determining to second unit, to call second unit in include After the plug-in unit corresponding with the identification information of the determination, the method that the embodiment of the present application is provided can also include:To the described 3rd Unit returns result, used as operating result corresponding with the operation requests that Unit the 3rd sends.In a kind of embodiment party In formula, the embodiment of the present application can return call result by following manner to Unit the 3rd, specifically can include:For Unit the 3rd creates the second message queue;The second unit is obtained by the plug-in unit execution operation requests of determination The result of return;The result is sent to Unit the 3rd, and the result is stored in into described In three message queues.

It should be noted that in one embodiment, second unit can be inquiring about second unit by the way of poll Result in message queue, and call back function is called according to result, and then show result to user, with final Complete this time to interact with user.

For example, it is single with the 3rd with the native applications part that second unit is the mixing application still with application as mixing application Unit is the web application obscure portions of the mixing application, when user is by the web application obscure portions of the click mixing application, to trigger the web Application obscure portions arouse the keyboard of native applications part, and now, web application obscure portions will send to the first module of the mixing application and use In the operation requests for calling " keyboard ", called with sending " keyboard " to the native applications part of the mixing application by first module Request, and then call " keyboard " plug-in unit of native applications part to generate keyboard, and result is returned into the web application obscure portions, When result makes a living into keyboard, the web application obscure portions first can show the keyboard for generating to user.

The request sending method provided using the embodiment of the present application 1, because first module can be obtained ahead of time second unit In the identification information of plug-in unit that includes, and it is determined that after corresponding relation of the identification information with assigned operation request, preserving mark letter The corresponding relation that breath is asked with assigned operation, after first module receives the operation requests of the transmission of Unit the 3rd, first module According to the corresponding relation for pre-saving, it is determined that identification information corresponding with the operation requests, and then can send to second unit Call request comprising the identification information, to call second unit in include corresponding with the identification information of shown determination insert Part, using the method, when needing mutually to send operation requests between second unit in application and Unit the 3rd, it is only necessary to pass through First module using in can complete the transmission of operation requests, without as prior art, first by operation requests Intercept, further processed, thus avoid and caused request to send speed because the request to sending will be intercepted Degree is relatively slow, in turn results in the relatively low problem of request response efficiency.

Embodiment 2

Present invention design is described in detail based on previous embodiment 1, for the ease of being better understood from the application's Technical characteristic, means and effect, further illustrate below to the request sending method of the application, so as to define the application again One embodiment.

Primary application obscure portions fast and effectively make requests on web application obscure portions and send out in order to enable mixing application Send, in the embodiment of the present application, mixing is using A by web applications, native applications and the parts of HTML Rendering Engine tri- Composition, as shown in figure 4, a kind of Organization Chart of the mixing application provided for the embodiment of the present application, wherein, shown web is applied can be with Including:HTML HTML frameworks, Javascript codes (JS codes) and CSS (Cascading Style Sheets, CSS) etc., composition;The native applications part can such as include the plugin manager of native applications (Native Plugins), can include local plug-in unit, such as in the plugin manager:Camera (Camera) plug-in unit, many matchmakers Body (Media) plug-in unit and keyboard (Keyboard) plug-in unit etc.;The web applications can by interface " Bridge API " with HTML Rendering Engine are communicated;The native applications again may be by interface " Bridge API " and HTML Rendering Engine are communicated.

Based on mixing application as shown in Figure 4, the embodiment of the present application provides a kind of call keyboard and asks sending method, uses With solve using prior art due to mixing application between primary application obscure portions and web application obscure portions send request speed compared with Slowly, the relatively low problem of existing mixing application request response efficiency is in turn resulted in.The idiographic flow schematic diagram of the method such as Fig. 5 institutes Show, mainly comprise the steps:

Step 21, user startup mixing application A, configuration information of the native applications part in Native Plugins, Plug-in unit in Native Plugins is registered, so that the plug-in unit included in the Native Plugins of native applications Title is exposed in process context of the mixing using A operations;

Meanwhile, mixing will obtain native applications part Native using HTML Rendering Engine parts in A The title of the plug-in unit included in Plugins, and according to the function of plug-in unit, it is determined that the title and assigned operation of those plug-in units for obtaining The corresponding relation of request.

Step 22, user is applied to HTML by clicking on input frame of the mixing using web application obscure portions in A with triggering web Rendering Engine send " primary keyboard " call request;

As shown in fig. 6, the currently displayed operation interface for applying web application obscure portions in A for mixing, user is by clicking on Input frame in the operation interface, is input into expecting that keyboard is aroused in the mixing application, now, web application will to HTML Rendering Engine send the call request of the title comprising " keyboard ".

Step 23, mixes and determines using the HTML Rendering Engine in A corresponding to the call request for receiving Plug-in unit;

Mixing using the HTML Rendering Engine in A can according to the identification information of the plug-in unit for pre-saving with The incidence relation of operation requests, it is determined that title corresponding with the call request for receiving, and then determine insert corresponding with the title Part, as the plug-in unit corresponding to the call request for receiving.

Step 24, mixing is sent out using the HTML Rendering Engine in A to the Native Plugins of native applications Send call request;

Mixing sends to the Native Plugins of native applications using the HTML Rendering Engine in A and includes The call request of the title determined by execution step 23.

Step 25, names of the Native Plugins in native applications according to the plug-in unit included in the call request for receiving Claim, determine the call request plug-in unit to be called, and then call the plug-in unit to perform call request;

By taking entitled " keyboard " of the plug-in unit included in call request as an example, then Native Plugins in native applications By call keyboard plug-in unit " Keyboardplugin ", and keyboard is generated according to the |input paramete included in call request.

Step 25, the Native Plugins of native applications will return primary answering to the result of " call keyboard request " Messaging list;

Step 26, native applications take out the result of " call keyboard request " from messaging list, and by HTML The result of " call keyboard request " is returned web applications by Rendering Engine;

Step 27, web is applied and the result result for receiving is saved in the messaging list of web applications;

Step 28, web application queries are stored in the request result in the messaging list of web applications, and in web applications Operation interface show keyboard by calling " keyboard " plug-in unit to generate, bandwagon effect is as shown in Figure 7.

The request sending method provided using the embodiment of the present application 2, because first module can be obtained ahead of time second unit In the identification information of plug-in unit that includes, and it is determined that after corresponding relation of the identification information with assigned operation request, preserving mark letter The corresponding relation that breath is asked with assigned operation, after first module receives the operation requests of the transmission of Unit the 3rd, first module According to the corresponding relation for pre-saving, it is determined that identification information corresponding with the operation requests, and then can send to second unit Call request comprising the identification information, to call second unit in include corresponding with the identification information of shown determination insert Part, using the method, when needing mutually to send operation requests between second unit in application and Unit the 3rd, it is only necessary to pass through First module using in can complete the transmission of operation requests, without as prior art, first by operation requests Intercept, further processed, thus avoid and caused request to send speed because the request to sending will be intercepted Degree is relatively slow, in turn results in the relatively low problem of request response efficiency.

Embodiment 3

The embodiment of the present application additionally provides a kind of send-request unit, to solve using prior art due to mixing application In between primary application obscure portions and web application obscure portions send request speed it is slower, in turn result in it is existing mixing application request ring Answer less efficient problem.The concrete structure schematic diagram of the device as shown in figure 8, including:Identification information obtaining unit 31, correspondence Relation determination unit 32, operation requests receiving unit 33 and call request transmitting element 34.

Wherein, identification information obtaining unit 31, for obtaining second unit in include at least one plug-in unit mark letter Breath;

Corresponding relation determining unit 32, for determining the corresponding relation of the identification information and assigned operation request, preserves The corresponding relation that the identification information is asked with the assigned operation;

Operation requests receiving unit 33 is for receiving the operation requests that Unit the 3rd sends and described right according to what is preserved Should be related to, it is determined that identification information corresponding with the operation requests;

Call request transmitting element 34, for according to the identification information for determining, sending to second unit and including the determination Identification information call request, to call second unit in the plug-in unit corresponding with the identification information of the determination that include.

In one embodiment, corresponding relation determining unit 32, specifically for:It is determined that corresponding with the identification information The function of plug-in unit;It is determined that operation requests corresponding with the function;Determine that the operation requests are corresponding with the identification information Relation.

In one embodiment, call request transmitting element 34, specifically for:First is created for the second unit to disappear Breath queue;To second unit send comprising the determination identification information call request so that the second unit according to The identification information, it is determined that the plug-in unit corresponding with the identification information;Receive plug-in unit of the second unit by determining to perform The call request and the result that returns;The result is stored in the first message queue.

In one embodiment, call request transmitting element 34, is additionally operable to:Return to Unit the 3rd and process knot Really, as operating result corresponding with the operation requests that Unit the 3rd sends.

In one embodiment, call request transmitting element 34, is additionally operable to:The second message is created for Unit the 3rd Queue;Obtain the result that plug-in unit of the second unit by determining performs the operation requests and return;By the place Reason result is sent to Unit the 3rd, and the result is stored in the 3rd message queue.

The send-request unit provided using the embodiment of the present application 3, because first module can be obtained ahead of time second unit In the identification information of plug-in unit that includes, and it is determined that after corresponding relation of the identification information with assigned operation request, preserving mark letter The corresponding relation that breath is asked with assigned operation, after first module receives the operation requests of the transmission of Unit the 3rd, first module According to the corresponding relation for pre-saving, it is determined that identification information corresponding with the operation requests, and then can send to second unit Call request comprising the identification information, to call second unit in include corresponding with the identification information of shown determination insert Part, using the method, when needing mutually to send operation requests between second unit in application and Unit the 3rd, it is only necessary to pass through First module using in can complete the transmission of operation requests, without as prior art, first by operation requests Intercept, further processed, thus avoid and caused request to send speed because the request to sending will be intercepted Degree is relatively slow, in turn results in the relatively low problem of request response efficiency.

Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) is produced The form of product.

The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.

These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.

These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.

In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.

Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.

Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by any method Or technology is realizing information Store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.Define according to herein, calculate Machine computer-readable recording medium does not include temporary computer readable media (transitory media), the such as data signal and carrier wave of modulation.

Also, it should be noted that term " including ", "comprising" or its any other variant are intended to nonexcludability Comprising so that a series of process, method, commodity or equipment including key elements not only includes those key elements, but also wrapping Other key elements being not expressly set out are included, or also includes intrinsic for this process, method, commodity or equipment wanting Element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that wanting including described Also there is other identical element in process, method, commodity or the equipment of element.

It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program. Therefore, the application can be using complete hardware embodiment, complete software embodiment or with reference to the embodiment in terms of software and hardware Form.And, the application can be adopted to be can use in one or more computers for wherein including computer usable program code and deposited The shape of the computer program implemented on storage media (including but not limited to disk memory, CD-ROM, optical memory etc.) Formula.

Embodiments herein is the foregoing is only, the application is not limited to.For those skilled in the art For, the application can have various modifications and variations.All any modification, equivalents made within spirit herein and principle Replace, improve etc., within the scope of should be included in claims hereof.

Claims (10)

1. it is a kind of to ask sending method, it is characterised in that to include:
First module obtains the identification information of at least one plug-in unit included in second unit;
Determine the corresponding relation of the identification information and assigned operation request, preserving the identification information please with the assigned operation The corresponding relation asked;
The operation requests of the transmission of Unit the 3rd are received, according to the corresponding relation for preserving, it is determined that corresponding with the operation requests Identification information;
According to the identification information for determining, the call request of the identification information comprising the determination is sent to second unit, to call The plug-in unit corresponding with the identification information of the determination included in second unit.
2. method according to claim 1, it is characterised in that determine that the identification information is corresponding with what assigned operation was asked Relation, specifically includes:
It is determined that the function of the plug-in unit corresponding with the identification information;
It is determined that operation requests corresponding with the function;
Determine the corresponding relation of the operation requests and the identification information.
3. method according to claim 1, it is characterised in that send the identification information comprising the determination to second unit Call request, specifically include:
First message queue is created for the second unit;
The call request of the identification information comprising the determination is sent to second unit, so that the second unit is according to described Identification information, it is determined that the plug-in unit corresponding with the identification information;
Receive the result that plug-in unit of the second unit by determining performs the call request and return;
The result is stored in the first message queue.
4. method according to claim 3, it is characterised in that send the identification information comprising the determination to second unit Call request, to call second unit in after the plug-in unit corresponding with the identification information of the determination that include, methods described is also Including:
Result is returned to Unit the 3rd, as operation knot corresponding with the operation requests that Unit the 3rd sends Really.
5. method according to claim 4, it is characterised in that return call result to Unit the 3rd, specifically include:
The second message queue is created for Unit the 3rd;
Obtain the result that plug-in unit of the second unit by determining performs the operation requests and return;
The result is sent to Unit the 3rd, and the result is stored in into the 3rd message queue In.
6. a kind of send-request unit, it is characterised in that include:
Identification information obtaining unit, for obtaining second unit in the identification information of at least one plug-in unit that includes;
Corresponding relation determining unit, for determining the corresponding relation of the identification information and assigned operation request, preserves the mark The corresponding relation that knowledge information is asked with the assigned operation;
Operation requests receiving unit, for receiving the operation requests that Unit the 3rd sends, and according to the corresponding relation for preserving, It is determined that identification information corresponding with the operation requests;
Call request transmitting element, for according to the identification information for determining, to second unit the mark comprising the determination being sent The call request of information, to call second unit in the plug-in unit corresponding with the identification information of the determination that include.
7. device according to claim 6, it is characterised in that corresponding relation determining unit, specifically for:
It is determined that the function of the plug-in unit corresponding with the identification information;
It is determined that operation requests corresponding with the function;
Determine the corresponding relation of the operation requests and the identification information.
8. device according to claim 6, it is characterised in that call request transmitting element, specifically for:
First message queue is created for the second unit;
The call request of the identification information comprising the determination is sent to second unit, so that the second unit is according to described Identification information, it is determined that the plug-in unit corresponding with the identification information;
Receive the result that plug-in unit of the second unit by determining performs the call request and return;
The result is stored in the first message queue.
9. device according to claim 8, it is characterised in that call request transmitting element, is additionally operable to:
Result is returned to Unit the 3rd, as operation knot corresponding with the operation requests that Unit the 3rd sends Really.
10. device according to claim 9, it is characterised in that call request transmitting element, specifically for:
The second message queue is created for Unit the 3rd;
Obtain the result that plug-in unit of the second unit by determining performs the operation requests and return;
The result is sent to Unit the 3rd, and the result is stored in into the 3rd message queue In.
CN201610985894.3A 2016-11-09 2016-11-09 Request sending method and apparatus CN106599045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610985894.3A CN106599045A (en) 2016-11-09 2016-11-09 Request sending method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610985894.3A CN106599045A (en) 2016-11-09 2016-11-09 Request sending method and apparatus

Publications (1)

Publication Number Publication Date
CN106599045A true CN106599045A (en) 2017-04-26

Family

ID=58590776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610985894.3A CN106599045A (en) 2016-11-09 2016-11-09 Request sending method and apparatus

Country Status (1)

Country Link
CN (1) CN106599045A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067818A (en) * 2018-06-04 2018-12-21 杭州数梦工场科技有限公司 A kind of business access method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942225A (en) * 2013-01-23 2014-07-23 阿里巴巴集团控股有限公司 Method and system for invoking resources of Hybrid App client and client
CN104077179A (en) * 2014-06-16 2014-10-01 武汉理工大学 Local application program interface (API) calling method for web browser
CN104834555A (en) * 2015-03-30 2015-08-12 百度在线网络技术(北京)有限公司 Method for invoking functional module, related device and device repairing method
CN105450731A (en) * 2015-11-05 2016-03-30 珠海多玩信息技术有限公司 Method and apparatus for realizing communication between web layer and native layer
CN105718313A (en) * 2016-01-22 2016-06-29 北京京东尚科信息技术有限公司 Application operation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103942225A (en) * 2013-01-23 2014-07-23 阿里巴巴集团控股有限公司 Method and system for invoking resources of Hybrid App client and client
CN104077179A (en) * 2014-06-16 2014-10-01 武汉理工大学 Local application program interface (API) calling method for web browser
CN104834555A (en) * 2015-03-30 2015-08-12 百度在线网络技术(北京)有限公司 Method for invoking functional module, related device and device repairing method
CN105450731A (en) * 2015-11-05 2016-03-30 珠海多玩信息技术有限公司 Method and apparatus for realizing communication between web layer and native layer
CN105718313A (en) * 2016-01-22 2016-06-29 北京京东尚科信息技术有限公司 Application operation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067818A (en) * 2018-06-04 2018-12-21 杭州数梦工场科技有限公司 A kind of business access method and device

Similar Documents

Publication Publication Date Title
US8863126B2 (en) Java virtual machine embedded in a native mobile application
Cantelon et al. Node. js in Action
US10027742B2 (en) Techniques for sharing application states
JP5982586B2 (en) Resource calls for hybrid applications
AU2013293535B2 (en) Providing access to a remote application via a web client
US9264335B2 (en) Adaptive packaging of network resources
US20140189494A1 (en) Inline media
AU2011313950B2 (en) Continuous application execution between multiple devices
JP2013225866A (en) Adaptive streaming for on-demand wireless services
JP2015038745A (en) Wireless communication device having deterministic control of foreground access of user interface
US20190349449A1 (en) System and Method for Improving Internet Communication by Using Intermediate Nodes
AU2012287409B2 (en) Web application architecture
US7805670B2 (en) Partial rendering of web pages
JP5042454B2 (en) Method and computer program for receiving computing system and computing system
TWI321419B (en) Atomic message division
US7120916B1 (en) Protocol agnostic web listener
US20110202971A1 (en) Server-Based Data Sharing in Computer Applications
KR101915342B1 (en) Document communication runtime interfaces
US9916218B2 (en) Method and apparatus for intercepting implanted information in application
US10425368B2 (en) Information processing method, user equipment, server, and computer-readable storage medium
US6996833B1 (en) Protocol agnostic request response pattern
US8458727B2 (en) Asynchronous client to server updates
EP1745662B1 (en) Method and apparatus for displaying messages in idle state of mobile terminal
KR102002754B1 (en) Codeless sharing of spreadsheet objects
US8966508B2 (en) Method for executing hybrid web application and apparatus therefor

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