WO2014075526A1 - 网络数据处理方法及设备 - Google Patents

网络数据处理方法及设备 Download PDF

Info

Publication number
WO2014075526A1
WO2014075526A1 PCT/CN2013/085233 CN2013085233W WO2014075526A1 WO 2014075526 A1 WO2014075526 A1 WO 2014075526A1 CN 2013085233 W CN2013085233 W CN 2013085233W WO 2014075526 A1 WO2014075526 A1 WO 2014075526A1
Authority
WO
WIPO (PCT)
Prior art keywords
local application
network data
module
network
data processing
Prior art date
Application number
PCT/CN2013/085233
Other languages
English (en)
French (fr)
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 华为终端有限公司
Publication of WO2014075526A1 publication Critical patent/WO2014075526A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Definitions

  • processing of network data includes a discovery mechanism of a network service and a communication mechanism between network applications. For example, a user wants to share a photo on a network to a friend, but the photo needs to be edited or described. Sending to a friend, the existing processing method determines whether there is an adapted network application to process the network data by querying the network (English: web) application library, and if the network application is determined to be adapted, the network application is started. The program processes the network data and displays the results on the web page.
  • the above-mentioned network application-based network data processing method is susceptible to network conditions. For example, when the network status is relatively poor, the network data processing service is easily interrupted, which affects application performance.
  • Embodiments of the present invention provide a network data processing method and device, which can ensure service continuity of network data processing while improving application performance.
  • a network data processing method including:
  • the network data processing request message includes an operation type and network data, and a data type of the network data
  • At least one matching local application is determined to process the network data based on the type of operation and the data type; a module sends to the network object.
  • determining at least one matching local application to process the network data according to the operation type and the data type includes: according to the operation type and the a data type, if it is determined that there are multiple matching local applications, displaying identifiers of the plurality of matching local applications, so that the user determines an identifier of the local application that performs network data processing;
  • the method includes: The program processes the type of operation and data type of the network data.
  • a network data processing device including:
  • a receiving module configured to receive a network data processing request message triggered by a user operating a network object, where the network data processing request message includes an operation type and network data, and a data type of the network data;
  • a local application module configured to determine at least one matching local application to process the network data according to the operation type and the data type
  • a sending module configured to send, by the user agent module, the processing result of processing the network data by the matched local application to the network object.
  • the third aspect provides a network data processing method, including:
  • the user agent module receives a network data processing request message triggered by the user operating the network object, where the network data processing request message includes an operation type and network data, and the number of the network data. According to type;
  • the user agent module sends a processing result of the network data sent by the local application module to the network object;
  • the user agent module and the local application module are located at a user terminal.
  • the user agent module establishes an inter-process communication connection with the local application module by using an operating system.
  • the method further includes:
  • the user agent module receives the identifier list of the matched local application sent by the local application module, where the matching local application identifier list includes identifiers of multiple matching local applications;
  • the user agent module displays a list of identifications of the matching local applications for the user to select a local application that processes the network data.
  • the user agent module displays an identifier list of the matched local application, so that the user selects a local to process the network data.
  • the application it also includes:
  • the user agent module sends a launch local application request message to the local application module, where the launch local application request message includes an identifier of the selected local application, so that the local application module starts and The local corresponding to the identifier of the selected local application should be based on the second possible implementation of the third aspect.
  • the user proxy module sends the identifier of the selected local application. Before giving the local application module, include:
  • the user agent module performs network data of the selected local application and the operation type of the selected local application for network data processing and the local application The processed data type is saved.
  • the fourth aspect provides a network data processing method, including:
  • the local application module receives a network data processing request message sent by the user agent module, where the network data processing request message is a network data processing request message triggered by the user operating the network object, where the network data processing request message includes an operation type and network data, and The data type of the network data;
  • the local application module determines at least one matching local application to process the network data according to the operation type and the data type;
  • the local application module sends the processing result of the network data to the user agent module, so that the user agent module sends the processing result of the network data to the network object; the user agent module and the The local application module is located at the user terminal.
  • an inter-process communication connection is established between the local application module and the user agent module.
  • the method includes:
  • the local application module respectively receives and saves registration information sent by a plurality of local applications, where the plurality of registration information respectively include an identifier of a corresponding local application, and the operation type of the corresponding local application performs network data processing And the data type of the network data.
  • the local application module determines at least one matching local application according to the operation type and the data type.
  • the local application module queries the saved registration information according to the operation type and the data type included in the network data processing request message sent by the user agent module; if it is determined that there are multiple matching local applications And the local application module sends the identifier list of the matched local application to the user agent module, and the identifiers of the plurality of matching local applications in the identifier list of the matched local application; So that the user agent module displays a list of identifiers of the matched local applications, so that the user selects a local application for network data processing;
  • the local application module receives a request to initiate a local application sent by the user agent module a message, the start local application request message includes an identifier of the selected local application;
  • the local application module launches a local application corresponding to the identity of the selected local application to cause the launched local application to process the network data.
  • the present invention determines at least one matching local application to process according to the operation type and network data included in the network data processing request message and the data type of the network data.
  • the network data processing method of the embodiment of the present invention is not based on a network application program, and therefore, is not susceptible to network conditions, and can ensure continuity of network data processing services;
  • the present invention utilizes a local application installed by the terminal to process network data, expands the application range of the existing network data processing mechanism, and the local application has a good user experience of the local application and a cross-platform of the network application. Advantages can improve the application performance of the network data processing mechanism.
  • FIG. 1 is a schematic flowchart of a network data processing method according to an embodiment of the present invention
  • FIG. 2 is a signaling diagram of a network data processing method according to another embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a network data processing device according to another embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a network data processing device according to another embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a network data processing method according to another embodiment of the present invention.
  • the function of the user agent module (English: User Agent, UA for short) may be implemented by using a browser in a practical application;
  • the network object is an Internet application provided by the server, and the specific form may include A text page, a picture, a video, and the like, wherein the user agent module can exchange information with the network object through the application program interface.
  • FIG. 1 is a schematic flowchart of a network data processing method according to an embodiment of the present invention. As shown in FIG. 1 , the network data processing method in this embodiment may include:
  • a network data processing request message triggered by a user operating a network object, where the network data processing request message includes an operation type and network data, and a data type of the network data.
  • the action parameter is used to indicate the operation type, such as editing (English: edit), sharing (English: share ), etc.
  • the Type parameter is used to indicate the data type of the network data, such as the Joint Photographic Experts Group (English: Joint Photographic) Experts Grou (referred to as JPG) develops standard image formats or graphic interchange formats (English: Graphics Interchange Format, GIF for short).
  • JPG Joint Photographic Experts Group
  • GIF Graphics Interchange Format
  • Step 101 no user browses the news webpage through the browser, and hopes to share a photo in the news webpage to the friend, but the photo needs to be edited before sharing the photo to the friend, for example, adding some description to the photo, but There is no function of editing a photo on the news webpage, the user can operate the news webpage to trigger a network data processing request message, and the network data processing request message is also called an intent event, and the operation type included in the network data processing request message is edit, network data
  • the data type is, for example, JPG, and the network data is the photo data that needs to be processed.
  • the user terminal is installed with multiple local applications, and the installed local applications are all registered to the local application module.
  • the local application module stores the identifier of each local application, and each local The operation type and data type of the network data that the application can process;
  • the local application used in the embodiment of the present invention uses a Graphical User Interface (GUI) as a presentation layer, and each local application Internal logic processing uses web technologies such as Hypertext Markup Language (HTML) or a programming language that makes web pages more lively (English: Java script ), therefore, combines the good user experience of a native application with the cross-platform advantages of a web application.
  • HTML Hypertext Markup Language
  • Java script a programming language that makes web pages more lively
  • the user agent module in this embodiment requests an inter-process communication connection with the local application module through an application interface of the operating system, for example, establishing a connection for Dbus process communication, and the user agent module can The triggered network data processing request message is sent to the local application module.
  • the local application module can determine at least one matching local application to process the network data according to the operation type and the data type.
  • the local application module displays, according to the operation type and the data type, an identifier of the plurality of matching local applications, if it is determined that there are multiple matching local applications, so that The user determines an identifier of the local application that performs network data processing; and according to the determined identifier of the local application, launching a local application corresponding to the identifier of the local application to process the network data.
  • the proxy module after determining at least one matching local application to process the network data according to the operation type and the data type, storing the determined identifier of the local application for performing network data processing And the type of operation and data type of the local application processing network data.
  • the proxy module sends to the network object.
  • the embodiment of the present invention determines at least one matching local application according to the operation type and network data included in the network data processing request message and the data type of the network data.
  • the network data processing method of the embodiment of the present invention is not based on the network application, it is not easily affected by the network condition, and the continuity of the network data processing service can be ensured;
  • the present invention utilizes a local application installed by the terminal to process network data, expands the application range of the existing network data processing mechanism, and the local application has a good user experience of the local application and a cross-platform of the network application. Advantages can improve the application performance of the network data processing mechanism.
  • FIG. 2 is a signaling diagram of a network data processing method according to an embodiment of the present invention.
  • the network data processing method in this embodiment may include: 201.
  • the user agent module receives a network data processing request message triggered by a user operating a network object.
  • the user agent module may obtain a network data processing request message, where the network data processing request message includes an operation type (action parameter) and a data type (type parameter) of the network data, Network data processing events are also known as intent events.
  • the user agent module sends a network data processing request message to the local application module.
  • the user agent module can establish a Dbus interprocess communication connection through the operating system and the local application module, and send a network data processing request message to the local application module through the Dbus interprocess communication connection.
  • the local application module determines a matching local application according to the operation type and the data type of the network data.
  • the local application (English: Local Web Application) is installed locally on the user terminal, and each local application is registered to the local application module after installation, and the local application module stores the registration of each registered local application.
  • Information such as the identity of the local application, and the type of operation that the local application can handle for network data and the data type of the network data.
  • the local application module sends the matched local application identifier to the user agent module. It should be noted that, if the local application module determines multiple matching local applications, the identifiers of the multiple matching local applications need to be sent to the user agent module through step 204, if the local application module only determines one matching local application. When the program is running, the flat matching local application can be directly launched to process the network data.
  • the user agent module displays the identifier of the matching local application for the user to select. Send to the local application module. Know the corresponding local application. Agent module.
  • the local application can perform asynchronous processing on the network data, and pass the processing result through The Dbus interprocess communication connection between the local application module and the user agent module is sent to the user agent module.
  • the user agent module sends a processing result of the network data to the network object.
  • the present invention determines at least one matching local application to process according to the operation type and network data included in the network data processing request message and the data type of the network data.
  • the network data processing method of the embodiment of the present invention is not based on a network application program, and therefore, is not susceptible to network conditions, and can ensure continuity of network data processing services;
  • the present invention utilizes a local application installed by the terminal to process network data, expands the application range of the existing network data processing mechanism, and the local application has a good user experience of the local application and a cross-platform of the network application. Advantages can improve the application performance of the network data processing mechanism.
  • FIG. 3 is a schematic structural diagram of a network data processing device according to another embodiment of the present invention. As shown in FIG. 3, the method includes:
  • the receiving module 31 is configured to receive a network data processing request message triggered by the user operating the network object, where the network data processing request message includes an operation type and network data, and a data type of the network data;
  • the local application module 32 is configured to determine at least one matching local application to process the network data according to the operation type and the data type of the network data;
  • the sending module 33 is configured to send, by the user agent module, a processing result of processing, by the matching local application, the network data to the network object.
  • the local application module 32 is specifically configured to: display, according to the operation type and the data type of the network data, the identifiers of the plurality of matching local applications, if the multiple local applications are determined to be present, And a network, to enable the user to determine an identifier of the local application that performs network data processing; and according to the determined identifier of the local application, launching a local application corresponding to the identifier of the local application to process the network data.
  • the device further includes: a storage module 34, configured to store the determined identifier of the local application for performing network data processing and the operation type and data type of the local application processing the network data.
  • a storage module 34 configured to store the determined identifier of the local application for performing network data processing and the operation type and data type of the local application processing the network data.
  • the invention receives the network data processing request message triggered by the user operating the network object, according to the The operation type and network data included in the network data processing request message and the data type of the network data, at least one matching local application is determined to process the network data, because the network data processing method according to the embodiment of the present invention is not based on the network application. Procedures, therefore, are not susceptible to network conditions and can guarantee the continuity of network data processing services;
  • the present invention utilizes a local application installed by the terminal to process network data, expands the application range of the existing network data processing mechanism, and the local application has a good user experience of the local application and a cross-platform of the network application. Advantages can improve the application performance of the network data processing mechanism.
  • FIG. 4 is a schematic structural diagram of a network data processing device according to another embodiment of the present invention. As shown in FIG. 4, the method includes: a processor 41, a memory 42 and a communication bus 43, and the processor 41 communicates with the memory 42 through the communication bus 43.
  • the memory stores instructions for implementing the network data processing method.
  • the network data processing device further includes a communication interface 44, and communicates with other network element devices through the communication interface. Further, the network data processing device further includes a display
  • the processor 41 retrieves an instruction stored in the memory 42, the function of the user agent module and the function of the local application module may be performed, and the processor may perform the following steps:
  • the network data processing request message includes an operation type and network data, and a data type of the network data
  • At least one matching local application is determined to process the network data based on the type of operation and the data type of the network data; the module sends to the network object.
  • At least one matching local application is determined to process the network data according to the operation type and the data type of the network data, including:
  • the identifiers of the plurality of matching local applications are displayed through the display 45 to enable the user to determine the locality for performing network data processing.
  • the identity of the application is displayed through the display 45 to enable the user to determine the locality for performing network data processing.
  • the method includes: identifying, and the local application The program processes the type of operation and data type of the network data.
  • the present invention determines at least one matching local application to process according to the operation type and network data included in the network data processing request message and the data type of the network data.
  • the network data processing method of the embodiment of the present invention is not based on a network application program, and therefore, is not susceptible to network conditions, and can ensure continuity of network data processing services;
  • the present invention utilizes a local application installed by the terminal to process network data, expands the application range of the existing network data processing mechanism, and the local application has a good user experience of the local application and a cross-platform of the network application. Advantages can improve the application performance of the network data processing mechanism.
  • FIG. 5 is a schematic flowchart of a network data processing method according to another embodiment of the present invention. As shown in FIG. 5, the network data processing method in this embodiment may include:
  • the user agent module receives a network data processing request message triggered by a user operating a network object, where the network data processing request message includes an operation type and network data, and a data type of the network data.
  • the network object when a user operates a network object to share a photo to a friend, but needs to edit the photo before sharing, for example, adding a description to the photo, but the network object does not have the function of editing the photo, the network object
  • the network data processing request message may be triggered according to the user instruction, and the network data processing request message is sent to the user agent module.
  • an edit (English: edit) button may be added to the photo to be shared in the network object.
  • the network object sends a network data processing request message triggered by the network object to the user agent module, to notify the user that the proxy module needs to edit the image of the network object;
  • the network data processing request message includes an operation type and network data, and a data type of the network data; wherein, the operation type is edit, and the data type of the network data is, for example, JPG, wherein JPG is a picture format, where Network data is needed Li photo data. 502.
  • the user agent module sends the network data processing request message to a local application module, so that the local application module determines at least one matching local application to process the location according to the operation type and the data type of the network data.
  • the network data is described, and the processing result of the network data is sent to the user agent module.
  • the user agent module and the local application module are both located in the user terminal, wherein the local application module provides a local application for network data processing for the network data processing request message triggered by the network object.
  • the user terminal is installed with multiple local applications, and the installed local application has been registered to the local application module. Therefore, the local application module stores the identifier of the local application installed by the user terminal, and each local application. The type of operation of the network data that can be processed and the data type of the network data.
  • GUI Graphical User Interface
  • HTML Hypertext Markup Language
  • Java script Java script
  • the user agent module may request to establish an inter-process communication connection with the local application module through an application interface of the operating system, for example, establish a Dbus process communication connection, and the user agent module may be localized through a Dbus process communication connection.
  • the application module sends the network data processing request message.
  • the local application module may determine at least one matching local application to process the network data according to the operation type and the data type of the network data, and the network data is processed.
  • the processing result is sent to the user agent module through the established interprocess communication connection.
  • the local application module generates a matching local application by using multiple matching local applications, if the plurality of matching local applications are determined according to the operation type and the data type of the network.
  • An identification list of the application and sending the matching local application's identification list to the user agent module, the user agent module displaying the matching local application's identification list, so that the user selects the local application for network data processing .
  • the user agent module sends a start local application request message to the local application module.
  • the initiating local application request message includes the identifier of the local application selected by the user for network data processing; it should be noted that, in an actual application, the user agent module sends a local startup to the local application module through the Dbus process communication connection.
  • the application requests the message. Further, the following parameters can be carried in the start local application request message:
  • Application ID application ID
  • Type the data type of the network data
  • Success— flg the structure identifier of the local application processing network data
  • Failure— fig the structure identifier of the local application processing network data
  • the local application module starts a local application corresponding to the identifier of the selected local application, and sends the network data to be processed to the activated local application for processing.
  • the local application after the local application starts and receives the network data, it immediately returns a successful startup response to the local application module, and the local application module sends the successful response to the user agent module, the user agent.
  • the module sends a response to the successful start to the network object.
  • the processing result of the network data is sent to the local application module, and the local application module sends the processing result of the network data to the user agent module.
  • the processing result of the network data includes the following parameters:
  • Origin_ message no: processing result identifier
  • the user can operate the network object to select a local application for performing network data processing, and then,
  • the user agent module may register the selected local application, that is, the identifier of the local application selected by the user agent module for network data processing and the type and operation of the local application for network data processing.
  • the data type of the application for network data processing is saved.
  • the user agent module forwards, to the network object, a processing result of the network data sent by the local application module.
  • the present invention determines at least one matching local application to process the network data according to the operation type and the data type of the network data included in the network data processing request message,
  • the network data processing method in the embodiment of the present invention is not based on a network application, and therefore, is not easily affected by network conditions, and can ensure continuity of network data processing services;
  • the present invention utilizes a local application installed by the terminal to process network data, expands the application range of the existing network data processing mechanism, and the local application has a good user experience of the local application and a cross-platform of the network application. Advantages can improve the application performance of the network data processing mechanism.
  • FIG. 6 is a schematic flowchart of a network data processing method according to another embodiment of the present invention. As shown in FIG. 6, the network data processing method in this embodiment may include:
  • the local application module receives a network data processing request message sent by the user agent module, where the network data processing request message is a network data processing request message triggered by the user operating the network object, where the network data processing request message includes an operation type and a network. Data and the data type of the network data.
  • the local application module determines at least one matching local application to process the network data according to the operation type and the data type.
  • the local application module separately receives and saves the registration information sent by the multiple local applications, where the multiple registration information respectively includes the identifier of the corresponding local application, and the corresponding local The type of operation the application performs for network data processing and the data type of the network data.
  • step 602 includes:
  • the local application module queries the saved registration information according to the operation type and the data type included in the network data processing request message sent by the user agent module; When it is determined that there are multiple matching local applications, the local application module sends the matching local application's identification list to the user agent module, and the matching local application's identification list is multiple An identifier of the matching local application; such that the user agent module displays a list of identifiers of the matched local application for the user to select a local application for network data processing;
  • the local application module receives the launching local application request message sent by the user agent module, where the local application request message includes the identifier of the selected local application;
  • the user agent module sends a start local application request message to the local application module through the Dbus process communication connection. Further, the following parameters may be carried in the start local application request message:
  • Application ID application ID
  • Type the data type of the network data
  • Success— flg the structure identifier of the local application processing network data
  • Failure— fig the structure identifier of the local application processing network data
  • the local application module starts a local application corresponding to the identifier of the selected local application, and sends the network data to be processed to the activated local application for processing. It should be noted that, in the actual application, after the local application starts and receives the network data, it immediately returns a successful startup response to the local application module, and the local application module sends the successful response to the user agent module, the user agent. The module sends a response to the successful start to the network object. After the local application processes the network data, the processing result of the network data is sent to the local application module, where the processing result of the network data includes the following parameters:
  • Origin_ message no: processing result identifier;
  • the local application module sends the processing result of the network data to the user agent module, so that the user agent module sends the processing result of the network data to the network.
  • the user agent module and the local application module are located at the user terminal, and the local application module establishes an interprocess communication connection with the user agent module.
  • the present invention determines at least one matching local application to process the network data according to the operation type and the data type of the network data included in the network data processing request message,
  • the network data processing method in the embodiment of the present invention is not based on a network application, and therefore, is not easily affected by network conditions, and can ensure continuity of network data processing services;
  • the present invention utilizes a local application installed by the terminal to process network data, expands the application range of the existing network data processing mechanism, and the local application has a good user experience of the local application and a cross-platform of the network application. Advantages can improve the application performance of the network data processing mechanism.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of the module, and may be in electrical, mechanical or other form.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit may be stored in the form of code in a computer readable storage medium.
  • the above code is stored in a computer readable storage medium and includes instructions for causing a processor or hardware circuit to perform some or all of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a universal serial bus interface, a micro high-capacity mobile storage disk without a physical drive, a mobile hard disk, and a read-only memory (English:
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • disk or optical disk etc., which can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种网络数据处理方法及设备,包括:接收用户操作网络对象触发的网络数据处理请求消息,所述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的数据类型;根据所述操作类型和所述数据类型至少确定一个匹配的本地应用程序以处理所述网络数据;将所述匹配的本地应用程序处理所述网络数据的处理结果通过用户代理模块发送给所述网络对象;不容易受到网络状况的影响,可以保证网络数据处理业务的连续性。

Description

网络数据处理方法及设备
本申请要求于 2012 年 11 月 19 日提交中国专利局, 申请号为 CN201210466840.8 , 发明名称为 "网络数据处理方法及设备" 的中国专利申 请并要求于 2013年 01月 18日提交中国专利局,申请号为 CN201310020028.7、 发明名称为 "网络数据处理方法及设备" 的中国专利申请, 其全部内容通过 引用结合在本申请中。
技术领域 本发明实施例涉及计算机技术领域, 尤其涉及一种网络数据处理方法及 设备。 背景技术 通常, 对网络数据的处理包括网络服务的发现机制及网络应用程序之 间的通信机制, 例如, 用户希望将网络上的一个照片分享给好友, 但需要将 该照片进行编辑或描述后再发送给好友, 现有的处理方法通过查询网络(英 文: web )应用程序库, 确定是否有适配的网络应用程序来处理该网络数据, 若确定有适配的网络应用程序, 启动该网络应用程序对网络数据进行处理, 并将处理结果再显示到网页上。
然而, 上述基于网络应用程序的网络数据处理方法容易受到网络状况的 影响, 例如, 在网络状况比较差的时候, 容易造成网络数据处理的业务中断, 影响应用性能。
发明内容 本发明实施例提供网络数据处理方法及设备, 能够保证网络数据处理的 业务连续性的同时提高应用性能。 第一方面, 提供一种网络数据处理方法, 包括:
接收用户操作网络对象触发的网络数据处理请求消息, 所述网络数据处 理请求消息中包括操作类型和网络数据以及所述网络数据的数据类型;
根据所述操作类型和所述数据类型至少确定一个匹配的本地应用程序以 处理所述网络数据; 模块发送给所述网络对象。
基于第一方面, 在第一种可能的实现方式中, 根据所述操作类型和所述 数据类型至少确定一个匹配的本地应用程序以处理所述网络数据, 包括: 根据所述操作类型和所述数据类型, 若确定存在多个匹配的本地应用程 序, 则显示所述多个匹配的本地应用程序的标识, 以使用户确定进行网络数 据处理的本地应用程序的标识;
根据确定的所述本地应用程序的标识, 启动与所述本地应用程序的标识 对应的本地应用程序处理所述网络数据。
结合第一方面及第一方面的第一种可能的实现方式, 在第二种可能的实 现方式中, 根据所述操作类型和所述数据类型至少确定一个匹配的本地应用 程序之后, 包括: 应用程序处理所述网络数据的操作类型和数据类型。
第二方面, 提供一种网络数据处理设备, 包括:
接收模块, 用于接收用户操作网络对象触发的网络数据处理请求消息, 所述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的 数据类型;
本地应用模块, 用于根据所述操作类型和所述数据类型至少确定一个匹 配的本地应用程序以处理所述网络数据;
发送模块, 用于将所述匹配的本地应用程序处理所述网络数据的处理结 果通过用户代理模块发送给所述网络对象。
第三方面, 提供一种网络数据处理方法, 包括:
用户代理模块接收用户操作网络对象触发的网络数据处理请求消息, 所 述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的数 据类型;
所述用户代理模块将所述网络数据处理请求消息发送给本地应用模块; 以使所述本地应用模块根据所述操作类型和所述数据类型至少确定一个匹配 的本地应用程序以处理所述网络数据, 并将所述网络数据的处理结果发送给 所述用户代理模块;
所述用户代理模块将所述本地应用模块发送的所述网络数据的处理结果 发送给所述网络对象;
所述用户代理模块和所述本地应用模块位于用户终端。
基于第三方面, 在第一种可能的实现方式中, 所述用户代理模块通过操 作系统与所述本地应用模块建立进程间通信连接。
基于第三方面以及第三方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述用户代理模块将所述网络数据处理请求消息发送给本地应 用模块之后, 还包括:
所述用户代理模块接收所述本地应用模块发送的所述匹配的本地应用程 序的标识列表, 所述匹配的本地应用程序的标识列表中包括多个匹配的本地 应用程序的标识;
所述用户代理模块显示所述匹配的本地应用程序的标识列表, 以便用户 选择处理所述网络数据的本地应用程序。
基于第三方面的第二种可能的实现方式, 在第三种可能的实现方式中, 所述用户代理模块显示所述匹配的本地应用程序的标识列表, 以便用户选择 处理所述网络数据的本地应用程序之后, 还包括:
所述用户代理模块向所述本地应用模块发送启动本地应用程序请求消 息, 所述启动本地应用程序请求消息中包括所述选择的本地应用程序的标识; 以使所述本地应用模块启动与所述选择的本地应用程序的标识对应的本地应 基于第三方面的第二种可能的实现方式, 在第四种可能的实现方式中, 所述用户代理模块将所述选择的本地应用程序的标识发送给所述本地应用模 块之前, 包括:
所述用户代理模块将所述选择的本地应用程序的标识以及所述选择的本 地应用程序进行网络数据处理的操作类型和所述本地应用程序进行网络数据 处理的数据类型进行保存。
第四方面, 提供一种网络数据处理方法, 包括:
本地应用模块接收用户代理模块发送的网络数据处理请求消息, 所述网 络数据处理请求消息为用户操作网络对象触发的网络数据处理请求消息, 所 述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的数 据类型;
所述本地应用模块根据所述操作类型和所述数据类型至少确定一个匹配 的本地应用程序以处理所述网络数据;
所述本地应用模块将所述网络数据的处理结果发送给所述用户代理模 块; 以使所述用户代理模块将所述网络数据的处理结果发送给所述网络对象; 所述用户代理模块和所述本地应用模块位于用户终端。
基于第四方面, 在第一种可能的实现方式中, 所述本地应用模块与所述 用户代理模块之间建立进程间通信连接。
基于第四方面, 在第二种可能的实现方式中, 所述本地应用模块根据所 述操作类型和所述数据类型至少确定一个匹配的本地应用程序以处理所述网 络数据之前, 包括:
所述本地应用模块分别接收并保存多个本地应用程序发送的注册信息, 所述多个注册信息中分别包括对应的本地应用程序的标识, 所述对应的本地 应用程序进行网络数据处理的操作类型和以及所述网络数据的数据类型。
基于第四方面以及第四方面的第二种可能的实现方式, 在第三种可能的 实现方式中, 所述本地应用模块根据所述操作类型和所述数据类型至少确定 一个匹配的本地应用程序以处理所述网络数据, 具体包括:
所述本地应用模块根据所述用户代理模块发送的所述网络数据处理请求 消息中包括的所述操作类型和所述数据类型, 查询所述保存的注册信息; 若确定存在多个匹配的本地应用程序时, 所述本地应用模块将所述匹配 的本地应用程序的标识列表发送给所述用户代理模块, 所述匹配的本地应用 程序的标识列表中所述多个匹配的本地应用程序的标识; 以使所述用户代理 模块显示所述匹配的本地应用程序的标识列表, 以便用户选择进行网络数据 处理的本地应用程序;
所述本地应用模块接收所述用户代理模块发送的启动本地应用程序请求 消息, 所述启动本地应用程序请求消息中包括所述选择的本地应用程序的标 识;
所述本地应用模块启动与所述选择的本地应用程序的标识对应的本地应 用程序, 以使所述启动的本地应用程序处理所述网络数据。
本发明在接收到用户操作网络对象触发网络数据处理请求消息时, 根据 网络数据处理请求消息中包含的操作类型和网络数据以及所述网络数据的数 据类型, 至少确定一个匹配的本地应用程序以处理该网络数据, 由于本发明 实施例的网络数据处理方法不是基于网络应用程序, 因此, 不容易受到网络 状况的影响, 可以保证网络数据处理业务的连续性;
同时, 本发明利用终端安装的本地应用程序来处理网络数据, 扩展了现 有的网络数据处理机制的应用范围, 而且本地应用程序兼具了本地应用程序 的良好用户体验和网络应用程序的跨平台优势, 可以提高网络数据处理机制 的应用性能。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一实施例提供的网络数据处理方法的流程示意图; 图 2为本发明另一实施例提供的网络数据处理方法的信令图;
图 3为本发明另一实施例提供的网络数据处理设备的结构示意图; 图 4为本发明另一实施例提供的网络数据处理设备的结构示意图; 图 5为本发明另一实施例提供的网络数据处理方法的流程示意图; 图 6为本发明另一实施例提供的网络数据处理方法的流程示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
需要说明的是, 以下各实施例中, 用户代理模块(英文: User Agent, 简 称 UA )的功能在实际应用中可以采用浏览器来实现; 网络对象为服务器提供 的互联网应用, 具体形式可以为包括文字、 图片、 视频等网页, 其中, 用户 代理模块通过应用程序接口可以与网络对象进行信息交互。
图 1为本发明一实施例提供的网络数据处理方法的流程示意图, 如图 1 所示, 本实施例的网络数据处理方法可以包括:
101、 接收用户操作网络对象触发的网络数据处理请求消息, 所述网络数 据处理请求消息中包括操作类型和网络数据以及所述网络数据的数据类型。
其中,本实施例采用 action参数用于表示操作类型,例如编辑 (英文: edit), 分享(英文: share )等, 采用 Type参数表示网络数据的数据类型, 例如联合 图像专家组 (英文: Joint Photographic Experts Grou , 简称 JPG)制定标准图像 格式或图形交换格式(英文: Graphics Interchange Format, 简称 GIF )等。
步骤 101 在具体实现时, 没用户通过浏览器浏览新闻网页, 希望将新 闻网页中的一张照片分享给好友, 但是在分享照片给好友之前需要先编辑照 片, 例如在照片上加一些描述, 可是新闻网页上没有编辑照片的功能, 用户 可以操作新闻网页触发网络数据处理请求消息, 网络数据处理请求消息又称 为 intent事件, 所述网络数据处理请求消息中包括的操作类型是 edit, 网络数 据的数据类型例如为 JPG, 网络数据就是需要处理的照片数据。
102、 根据所述操作类型和所述网络数据的数据类型至少确定一个匹配的 本地应用程序以处理所述网络数据。
需要说明的是, 用户终端安装有多个本地应用程序, 且已将安装的本地 应用程序均注册到本地应用模块, 例如, 本地应用模块中保存有每个本地应 用程序的标识, 以及每个本地应用程序能够处理的网络数据的操作类型和数 据类型; 由于本发明实施例采用的本地应用程序是使用图形用户界面 (英文: Graphical User Interface , 简称 GUI )作为表示层, 而每个本地应用程序的内 部逻辑处理使用网络技术, 例如超文本标记语言 (英文: Hypertext Markup Language, 简称 HTML )或一种能让网页更加生动活泼的程式语言 (英文: Java script ), 因此, 兼具了本地应用程序的良好用户体验和网络应用程序的跨 平台优势。
需要说明的是, 本实施例中的用户代理模块通过操作系统的应用程序接 口请求与本地应用模块建立进程间通信连接,例如建立 Dbus进程通信的连接, 通过 Dbus进程通信机制, 用户代理模块可以将触发的网络数据处理请求消息 发送给本地应用模块。
对应地, 本地应用模块根据所述操作类型和所述数据类型至少可以确定 一个匹配的本地应用程序以处理所述网络数据。
在本发明的一个实施方式中, 本地应用模块根据所述操作类型和所述数 据类型, 若确定存在多个匹配的本地应用程序, 则显示所述多个匹配的本地 应用程序的标识, 以使用户确定进行网络数据处理的本地应用程序的标识; 根据确定的所述本地应用程序的标识, 启动与所述本地应用程序的标识对应 的本地应用程序处理所述网络数据。
在本发明的一个实施方式中, 根据所述操作类型和所述数据类型至少确 定一个匹配的本地应用程序以处理所述网络数据之后, 存储所述确定的进行 网络数据处理的本地应用程序的标识以及所述本地应用程序处理网络数据的 操作类型和数据类型。 代理模块发送给所述网络对象。
本发明实施例在接收到用户操作网络对象触发网络数据处理请求消息 时, 根据网络数据处理请求消息中包含的操作类型和网络数据以及所述网络 数据的数据类型, 至少确定一个匹配的本地应用程序以处理该网络数据, 由 于本发明实施例的网络数据处理方法不是基于网络应用程序, 因此, 不容易 受到网络状况的影响, 可以保证网络数据处理业务的连续性;
同时, 本发明利用终端安装的本地应用程序来处理网络数据, 扩展了现 有的网络数据处理机制的应用范围, 而且本地应用程序兼具了本地应用程序 的良好用户体验和网络应用程序的跨平台优势, 可以提高网络数据处理机制 的应用性能。
图 2为本发明一实施例提供的网络数据处理方法的信令图, 如图 2所示, 本实施例的网络数据处理方法可以包括: 201、 用户代理模块接收用户操作网络对象触发的网络数据处理请求消 息。
当用户操作网络对象触发一个网络数据处理请求消息, 用户代理模块即 可获取网络数据处理请求消息, 其中网络数据处理请求消息中包括操作类型 ( action参数)和网络数据的数据类型 (type参数), 网络数据处理事件又称 为 intent事件。
202、 用户代理模块向本地应用模块发送网络数据处理请求消息。
具体地, 用户代理模块可以通过操作系统与本地应用模块建立 Dbus进程 间通信连接,通过 Dbus进程间通信连接向本地应用模块发送网络数据处理请 求消息。
203、 本地应用模块根据操作类型和网络数据的数据类型, 确定匹配的本 地应用程序。
其中, 本地应用程序 (英文: Local Web Application )是安装在用户终端 本地, 并且每个本地应用程序在安装之后, 注册到本地应用模块, 本地应用 模块中保存有每个注册的本地应用程序的注册信息, 例如包括本地应用程序 的标识, 以及该本地应用程序能够处理网络数据的操作类型和网络数据的数 据类型。
204、 本地应用模块将匹配的本地应用程序标识发送给用户代理模块。 需要说明的是, 假设本地应用模块确定多个匹配的本地应用程序时, 需 要通过步骤 204将多个匹配的本地应用程序的标识发送给用户代理模块, 若 本地应用模块只确定一个匹配的本地应用程序时, 则可直接启动平匹配本地 应用程序以处理网络数据。
205、 用户代理模块显示匹配的本地应用程序的标识以供用户选择。 发送给本地应用模块。 识启动对应的本地应用程序。 代理模块。
具体地, 本地应用程序可以网络数据进行异步处理, 并将处理结果通过 本地应用模块与用户代理模块之间的 Dbus进程间通信连接发送给用户代理模 块。
209、 用户代理模块将网络数据的处理结果发送给所述网络对象。
本发明在接收到用户操作网络对象触发网络数据处理请求消息时, 根据 网络数据处理请求消息中包含的操作类型和网络数据以及所述网络数据的数 据类型, 至少确定一个匹配的本地应用程序以处理该网络数据, 由于本发明 实施例的网络数据处理方法不是基于网络应用程序, 因此, 不容易受到网络 状况的影响, 可以保证网络数据处理业务的连续性;
同时, 本发明利用终端安装的本地应用程序来处理网络数据, 扩展了现 有的网络数据处理机制的应用范围, 而且本地应用程序兼具了本地应用程序 的良好用户体验和网络应用程序的跨平台优势, 可以提高网络数据处理机制 的应用性能。
图 3为本发明另一实施例提供的网络数据处理设备的结构示意图;如图 3 所示, 包括:
接收模块 31 ,用于接收用户操作网络对象触发的网络数据处理请求消息, 所述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的 数据类型;
本地应用模块 32, 用于根据所述操作类型和所述网络数据的数据类型至 少确定一个匹配的本地应用程序以处理所述网络数据;
发送模块 33 , 用于将所述匹配的本地应用程序处理所述网络数据的处理 结果通过用户代理模块发送给所述网络对象。
其中, 本地应用模块 32具体用于: 根据所述操作类型和网络数据的数据 类型, 若确定存在多个匹配的本地应用程序, 则将所述多个匹配的本地应用 程序的标识显示于所述网络, 以使用户确定进行网络数据处理的本地应用程 序的标识; 根据确定的所述本地应用程序的标识, 启动与所述本地应用程序 的标识对应的本地应用程序处理所述网络数据。
举例来说, 所述设备还包括: 存储模块 34, 用于存储所述确定的进行网 络数据处理的本地应用程序的标识以及所述本地应用程序处理所述网络数据 的操作类型和数据类型。
本发明在接收到用户操作网络对象触发网络数据处理请求消息时, 根据 网络数据处理请求消息中包含的操作类型和网络数据以及所述网络数据的数 据类型, 至少确定一个匹配的本地应用程序以处理该网络数据, 由于本发明 实施例的网络数据处理方法不是基于网络应用程序, 因此, 不容易受到网络 状况的影响, 可以保证网络数据处理业务的连续性;
同时, 本发明利用终端安装的本地应用程序来处理网络数据, 扩展了现 有的网络数据处理机制的应用范围, 而且本地应用程序兼具了本地应用程序 的良好用户体验和网络应用程序的跨平台优势, 可以提高网络数据处理机制 的应用性能。
图 4为本发明另一实施例提供的网络数据处理设备的结构示意图;如图 4 所示, 包括: 处理器 41、 存储器 42和通信总线 43 , 所述处理器 41通过通信 总线 43与存储器 42连接, 所述存储器 42中保存有实现网络数据处理方法的 指令; 进一步地, 所述网络数据处理设备还包括通信接口 44, 通过所述通信 接口与其他网元设备通信。 进一步地, 所述网络数据处理设备还包括显示器
45。
当所述处理器 41调取存储器 42中保存的指令时, 可以执行用户代理模 块的功能和本地应用模块的功能, 所述处理器可以执行如下步骤:
接收用户操作网络对象触发的网络数据处理请求消息, 所述网络数据处 理请求消息中包括操作类型和网络数据以及所述网络数据的数据类型;
根据所述操作类型和所述网络数据的数据类型至少确定一个匹配的本地 应用程序以处理所述网络数据; 模块发送给所述网络对象。
基于第一方面, 在第一种可能的实现方式中, 根据所述操作类型和网络 数据的数据类型至少确定一个匹配的本地应用程序以处理所述网络数据, 包 括:
根据所述操作类型和网络数据的数据类型, 若确定存在多个匹配的本地 应用程序, 则通过显示器 45显示所述多个匹配的本地应用程序的标识, 以使 用户确定进行网络数据处理的本地应用程序的标识;
根据确定的所述本地应用程序的标识, 启动与所述本地应用程序的标识 对应的本地应用程序处理所述网络数据。 基于第一方面, 在第二种可能的实现方式中, 根据所述网络数据的操作 类型和数据类型至少确定一个匹配的本地应用程序以处理所述网络数据之 后, 包括: 标识以及所述本地应用程序处理所述网络数据的操作类型和数据类型。
本发明在接收到用户操作网络对象触发网络数据处理请求消息时, 根据 网络数据处理请求消息中包含的操作类型和网络数据以及所述网络数据的数 据类型, 至少确定一个匹配的本地应用程序以处理该网络数据, 由于本发明 实施例的网络数据处理方法不是基于网络应用程序, 因此, 不容易受到网络 状况的影响, 可以保证网络数据处理业务的连续性;
同时, 本发明利用终端安装的本地应用程序来处理网络数据, 扩展了现 有的网络数据处理机制的应用范围, 而且本地应用程序兼具了本地应用程序 的良好用户体验和网络应用程序的跨平台优势, 可以提高网络数据处理机制 的应用性能。
图 5为本发明另一实施例提供的网络数据处理方法的流程示意图, 如图 5 所示, 本实施例的网络数据处理方法可以包括:
501、 用户代理模块接收用户操作网络对象触发的网络数据处理请求消 息, 所述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数 据的数据类型。
在本发明的一个实施方式中, 当用户操作网络对象分享照片给好友, 但 是, 在分享之前需要先编辑照片, 例如在照片上加一些描述, 可是该网络对 象没有编辑照片的功能时, 网络对象可以根据用户指令触发网络数据处理请 求消息, 将网络数据处理请求消息发送给用户代理模块, 具体实现时, 例如, 可以在网络对象中需要分享的照片边上添加一个编辑 (英文: edit)按钮, 当用 户点击网络对象上的编辑 (英文: edit)按钮时, 该网络对象将触发的网络数据 处理请求消息发送给了用户代理模块, 用以通知用户代理模块该网络对象需 要编辑图片的功能; 其中, 所述网络数据处理请求消息中包括操作类型和网 络数据以及所述网络数据的数据类型; 其中, 操作类型是 edit, 网络数据的数 据类型例如为 JPG, 其中, JPG是一种图片格式, 所述网络数据就是需要处理 的照片数据。 502、 所述用户代理模块将所述网络数据处理请求消息发送给本地应用模 块; 以使所述本地应用模块根据所述操作类型和网络数据的数据类型至少确 定一个匹配的本地应用程序以处理所述网络数据, 并将所述网络数据的处理 结果发送给所述用户代理模块。
需要说明的是, 用户代理模块和本地应用模块均位于用户终端, 其中, 本地应用模块为网络对象触发的网络数据处理请求消息提供本地应用程序以 进行网络数据处理。 例如, 用户终端安装有多个本地应用程序, 且已将安装 的本地应用程序注册到本地应用模块, 因此, 本地应用模块中保存有用户终 端安装的本地应用程序的标识, 以及每个本地应用程序能够处理的网络数据 的操作类型和网络数据的数据类型。
Graphical User Interface , 简称 GUI )作为表示层, 而每个本地应用程序的内 部逻辑处理使用 web技术, 例如超文本标记语言 (英文: Hypertext Markup Language, 简称 HTML )或一种能让网页更加生动活泼的程式语言 (英文: Java script ), 因此, 兼具了本地应用程序的良好用户体验和 web应用程序的 跨平台优势。
在本发明的一个实施方式中, 用户代理模块可以通过操作系统的应用程 序接口请求与本地应用模块建立进程间通信连接, 例如建立 Dbus进程通信连 接, 通过 Dbus进程通信连接, 用户代理模块可以向本地应用模块发送所述网 络数据处理请求消息。
对应地, 本地应用模块接收到网络数据处理请求消息之后, 根据所述操 作类型和所述网络数据的数据类型至少可以确定一个匹配的本地应用程序以 处理所述网络数据, 并将所述网络数据的处理结果通过建立的进程间通信连 接发送给所述用户代理模块。
在本发明的一个实施方式中, 本地应用模块根据所述操作类型和所述网 络的数据类型, 若确定多个匹配的本地应用程序, 本地应用模块将多个匹配 的本地应用程序生成匹配的本地应用程序的标识列表, 并将该匹配的本地应 用程序的标识列表发送给用户代理模块, 用户代理模块显示所述匹配的本地 应用程序的标识列表, 以使用户选择进行网络数据处理的本地应用程序。
之后, 用户代理模块向本地应用模块发送启动本地应用程序请求消息, 所述启动本地应用程序请求消息中包括上述用户选择的进行网络数据处理的 本地应用程序的标识;需要说明的是,在实际应用中,用户代理模块通过 Dbus 进程通信连接向本地应用模块发送启动本地应用程序请求消息, 进一步地, 在启动本地应用程序请求消息中可以携带以下参数:
Intent— method— call : (intent 请求);
application ID : 应用程序标识;
origin— message— no : 启动本地应用程序请求消息的标识, 用于与返 回的应答配对。
Intent {
action : 操作类型
type : 网络数据的数据类型
data : 网络数据
success— flg : 本地应用程序处理网络数据的结构标识
failure— fig : 本地应用程序处理网络数据的结构标识
}
对应地, 本地应用模块启动与所述选择的本地应用程序的标识对应的本 地应用程序, 将需要处理的网络数据发送给启动的本地应用程序进行处理。
需要说明的是, 在实际应用中, 本地应用程序启动并收到网络数据之 后, 立即返回一个启动成功的应答给本地应用模块, 本地应用模将该启动 成功的应答发送给用户代理模块, 用户代理模块将该启动成功的应答发送 给网络对象。
本地应用程序处理网络数据之后, 将网络数据的处理结果发送给本地 应用模块, 本地应用模块将网络数据的处理结果发送给用户代理模块。 其 中, 网络数据的处理结果包含如下参数:
intent— method— return; intent 结果;
origin— message— no: 处理结果标识;
success— fig or failure— fig:成果或失败标识;
data: 处理结果的详细数据, 或者处理失败的原因。
在本发明的一个实施方式中, 根据匹配的本地应用程序的标识列表, 用 户可以操作网络对象选择一个进行的网络数据处理的本地应用程序, 之后, 用户代理模块可以对该选择的本地应用程序进行注册, 即用户代理模块将所 述网络对象选择的进行网络数据处理的本地应用程序的标识以及所述本地应 用程序进行网络数据处理的操作类型和所述应用程序进行网络数据处理的数 据类型进行保存。
503、 所述用户代理模块将所述本地应用模块发送的所述网络数据的处理 结果转发给所述网络对象。
本发明在接收到用户操作网络对象触发网络数据处理请求消息时, 根据 网络数据处理请求消息中包含的操作类型和网络数据的数据类型, 至少确定 一个匹配的本地应用程序以处理该网络数据, 由于本发明实施例的网络数据 处理方法不是基于网络应用程序, 因此, 不容易受到网络状况的影响, 可以 保证网络数据处理业务的连续性;
同时, 本发明利用终端安装的本地应用程序来处理网络数据, 扩展了现 有的网络数据处理机制的应用范围, 而且本地应用程序兼具了本地应用程序 的良好用户体验和网络应用程序的跨平台优势, 可以提高网络数据处理机制 的应用性能。
图 6为本发明另一实施例提供的网络数据处理方法的流程示意图, 如图 6 所示, 本实施例的网络数据处理方法可以包括:
601、 本地应用模块接收用户代理模块发送的网络数据处理请求消息, 所 述网络数据处理请求消息为用户操作网络对象触发的网络数据处理请求消 息, 所述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数 据的数据类型。
602、 所述本地应用模块根据所述操作类型和所述数据类型至少确定一个 匹配的本地应用程序以处理所述网络数据。
举例来说, 在步骤 602之前, 所述本地应用模块分别接收并保存多个本 地应用程序发送的注册信息, 所述多个注册信息中分别包括对应的本地应用 程序的标识, 所述对应的本地应用程序进行网络数据处理的操作类型和以及 所述网络数据的数据类型。
进一步地举例来说, 步骤 602具体实现时包括:
所述本地应用模块根据所述用户代理模块发送的所述网络数据处理请求 消息中包括的所述操作类型和所述数据类型, 查询所述保存的注册信息; 若 确定存在多个匹配的本地应用程序时 , 所述本地应用模块将所述匹配的本地 应用程序的标识列表发送给所述用户代理模块, 所述匹配的本地应用程序的 标识列表中所述多个匹配的本地应用程序的标识; 以使所述用户代理模块显 示所述匹配的本地应用程序的标识列表, 以便用户选择进行网络数据处理的 本地应用程序;
所述本地应用模块接收所述用户代理模块发送的启动本地应用程序请求 消息, 所述启动本地应用程序请求消息中包括所述选择的本地应用程序的标 识; 需要说明的是, 在实际应用中, 用户代理模块通过 Dbus进程通信连接向 本地应用模块发送启动本地应用程序请求消息, 进一步地, 在启动本地应用 程序请求消息中可以携带以下参数:
Intent— method— call : intent 请求;
application ID : 应用程序标识;
origin— message— no : 启动本地应用程序请求消息的标识, 用于与返 回的应答配对。
Intent {
action : 操作类型
type : 网络数据的数据类型
data : 网络数据
success— flg : 本地应用程序处理网络数据的结构标识
failure— fig : 本地应用程序处理网络数据的结构标识
}
所述本地应用模块启动与所述选择的本地应用程序的标识对应的本地 应用程序, 将需要处理的网络数据发送给启动的本地应用程序进行处理。 需要说明的是, 在实际应用中, 本地应用程序启动并收到网络数据之后, 立即返回一个启动成功的应答给本地应用模块, 本地应用模将该启动成功 的应答发送给用户代理模块, 用户代理模块将该启动成功的应答发送给网 络对象。 本地应用程序处理网络数据之后, 将网络数据的处理结果发送给 本地应用模块, 其中, 网络数据的处理结果包含如下参数:
intent— method— return; intent 结果;
origin— message— no: 处理结果标识; success— fig or failure— fig:成果或失败标识;
data: 处理结果的详细数据, 或者处理失败的原因。
603、 所述本地应用模块将所述网络数据的处理结果发送给所述用户代理 模块; 以使所述用户代理模块将所述网络数据的处理结果发送给所述网络对 本实施例中, 所述用户代理模块和所述本地应用模块位于用户终端, 所 述本地应用模块与所述用户代理模块之间建立进程间通信连接。
本发明在接收到用户操作网络对象触发网络数据处理请求消息时, 根据 网络数据处理请求消息中包含的操作类型和网络数据的数据类型, 至少确定 一个匹配的本地应用程序以处理该网络数据, 由于本发明实施例的网络数据 处理方法不是基于网络应用程序, 因此, 不容易受到网络状况的影响, 可以 保证网络数据处理业务的连续性;
同时, 本发明利用终端安装的本地应用程序来处理网络数据, 扩展了现 有的网络数据处理机制的应用范围, 而且本地应用程序兼具了本地应用程序 的良好用户体验和网络应用程序的跨平台优势, 可以提高网络数据处理机制 的应用性能。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述 描述的设备的具体工作过程, 可以参考前述方法实施例中的对应过程, 在 此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的设备和方法, 可以通过其它的方式实现。 例如, 以上所描述的设备实施例仅仅是示意性 的, 例如, 所述模块的划分, 仅仅为一种逻辑功能划分, 实际实现时可以 有另外的划分方式, 例如多个模块或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之 间的耦合或直接耦合或通信连接可以是通过一些接口, 模块的间接耦合或 通信连接, 可以是电性, 机械或其它的形式。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬 件加软件功能单元的形式实现。 上述以软件功能单元的形式实现的集成的单元, 可以以代码的形式存 储在一个计算机可读取存储介质中。 上述代码存储在一个计算机可读存储 介质中, 包括若干指令用以使处理器或硬件电路执行本发明各个实施例所 述方法的部分或全部步骤。 而前述的存储介质包括: 通用串行总线接口的 无需物理驱动器的微型高容量移动存储盘、 移动硬盘、 只读存储器(英文:
Read-Only Memory, 简称 ROM )、 随机存取存储器(英文: Random Access Memory, 简称 RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。

Claims

权利 要求 书
1、 一种网络数据处理方法, 其特征在于, 包括:
接收用户操作网络对象触发的网络数据处理请求消息, 所述网络数据处理 请求消息中包括操作类型和网络数据以及所述网络数据的数据类型;
根据所述操作类型和所述数据类型至少确定一个匹配的本地应用程序以处 理所述网络数据; 块发送给所述网络对象。
2、 根据权利要求 1所述的方法, 其特征在于, 根据所述操作类型和所述数 据类型至少确定一个匹配的本地应用程序以处理所述网络数据, 包括:
根据所述操作类型和所述数据类型, 若确定存在多个匹配的本地应用程序, 则显示所述多个匹配的本地应用程序的标识, 以使用户确定进行网络数据处理 的本地应用程序的标识;
根据确定的所述本地应用程序的标识, 启动与所述本地应用程序的标识对 应的本地应用程序处理所述网络数据。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 根据所述操作类型和所 述数据类型至少确定一个匹配的本地应用程序之后, 包括: 用程序处理所述网络数据的操作类型和数据类型。
4、 一种网络数据处理设备, 其特征在于, 包括:
接收模块, 用于接收用户操作网络对象触发的网络数据处理请求消息, 所 述网络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的数据 类型;
本地应用模块, 用于根据所述操作类型和所述数据类型至少确定一个匹配 的本地应用程序以处理所述网络数据;
发送模块, 用于将所述匹配的本地应用程序处理所述网络数据的处理结果 通过用户代理模块发送给所述网络对象。
5、根据权利要求 4所述的设备, 其特征在于, 所述本地应用模块具体用于: 根据所述操作类型和所述数据类型, 若确定存在多个匹配的本地应用程序, 则 显示所述多个匹配的本地应用程序的标识, 以使用户确定进行网络数据处理的 本地应用程序的标识;
根据确定的所述本地应用程序的标识, 启动与所述本地应用程序的标识对 应的本地应用程序处理所述网络数据。
6、 根据权利要求 4或 5所述的设备, 其特征在于, 所述设备还包括存储模 地应用程序处理所述网络数据的操作类型和数据类型。
7、 一种网络数据处理方法, 其特征在于, 包括:
用户代理模块接收用户操作网络对象触发的网络数据处理请求消息, 所述 网络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的数据类 型;
所述用户代理模块将所述网络数据处理请求消息发送给本地应用模块; 以 使所述本地应用模块根据所述操作类型和所述数据类型至少确定一个匹配的本 地应用程序以处理所述网络数据, 并将所述网络数据的处理结果发送给所述用 户代理模块;
所述用户代理模块将所述本地应用模块发送的所述网络数据的处理结果发 送给所述网络对象;
所述用户代理模块和所述本地应用模块位于用户终端。
8、 根据权利要求 7所述的方法, 其特征在于, 所述用户代理模块通过操作 系统与所述本地应用模块建立进程间通信连接。
9、 根据权利要求 7或 8所述的方法, 其特征在于, 所述用户代理模块将所 述网络数据处理请求消息发送给本地应用模块之后, 还包括:
所述用户代理模块接收所述本地应用模块发送的所述匹配的本地应用程序 的标识列表, 所述匹配的本地应用程序的标识列表中包括多个匹配的本地应用 程序的标识;
所述用户代理模块显示所述匹配的本地应用程序的标识列表, 以便用户选 择处理所述网络数据的本地应用程序。
10、根据权利要求 7-9任一项所述的方法, 其特征在于, 所述用户代理模块 显示所述匹配的本地应用程序的标识列表, 以便用户选择处理所述网络数据的 本地应用程序之后, 还包括:
所述用户代理模块向所述本地应用模块发送启动本地应用程序请求消息, 所述启动本地应用程序请求消息中包括所述选择的本地应用程序的标识; 以使 所述本地应用模块启动与所述选择的本地应用程序的标识对应的本地应用程 序, 以使所述启动的本地应用程序进行所述网络数据的处理。
11、 根据权利要求 7-10任一项所述的方法, 其特征在于, 所述用户代理模 块将所述选择的本地应用程序的标识发送给所述本地应用模块之前, 包括: 所述用户代理模块将所述选择的本地应用程序的标识以及所述选择的本地 应用程序进行网络数据处理的操作类型和所述本地应用程序进行网络数据处理 的数据类型进行保存。
12、 一种网络数据处理方法, 其特征在于, 包括:
本地应用模块接收用户代理模块发送的网络数据处理请求消息, 所述网络 数据处理请求消息为用户操作网络对象触发的网络数据处理请求消息, 所述网 络数据处理请求消息中包括操作类型和网络数据以及所述网络数据的数据类 型;
所述本地应用模块根据所述操作类型和所述数据类型至少确定一个匹配的 本地应用程序以处理所述网络数据; 以使所述用户代理模块将所述网络数据的处理结果发送给所述网络对象;
所述用户代理模块和所述本地应用模块位于用户终端。
13、 根据权利要求 12所述的方法, 其特征在于, 所述本地应用模块与所述 用户代理模块之间建立进程间通信连接。
14、根据权利要求 12-13任一项所述的方法, 其特征在于, 所述本地应用模 块根据所述操作类型和所述数据类型至少确定一个匹配的本地应用程序以处理 所述网络数据之前, 包括:
所述本地应用模块分别接收并保存多个本地应用程序发送的注册信息, 所 述多个注册信息中分别包括对应的本地应用程序的标识, 所述对应的本地应用 程序进行网络数据处理的操作类型和以及所述网络数据的数据类型。
15、根据权利要求 12-14任一项所述的方法, 其特征在于, 所述本地应用模 块根据所述操作类型和所述数据类型至少确定一个匹配的本地应用程序以处理 所述网络数据, 具体包括:
所述本地应用模块根据所述用户代理模块发送的所述网络数据处理请求消 息中包括的所述操作类型和所述数据类型, 查询所述保存的注册信息; 若确定存在多个匹配的本地应用程序时, 所述本地应用模块将所述匹配的 本地应用程序的标识列表发送给所述用户代理模块, 所述匹配的本地应用程序 的标识列表中所述多个匹配的本地应用程序的标识; 以使所述用户代理模块显 示所述匹配的本地应用程序的标识列表, 以便用户选择进行网络数据处理的本 地应用程序;
所述本地应用模块接收所述用户代理模块发送的启动本地应用程序请求消 息, 所述启动本地应用程序请求消息中包括所述选择的本地应用程序的标识; 所述本地应用模块启动与所述选择的本地应用程序的标识对应的本地应用 程序, 以使所述启动的本地应用程序处理所述网络数据。
PCT/CN2013/085233 2012-11-19 2013-10-15 网络数据处理方法及设备 WO2014075526A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201210466840.8 2012-11-19
CN201210466840 2012-11-19
CN201310020028.7A CN103823821B (zh) 2012-11-19 2013-01-18 网络数据处理方法及设备
CN201310020028.7 2013-01-18

Publications (1)

Publication Number Publication Date
WO2014075526A1 true WO2014075526A1 (zh) 2014-05-22

Family

ID=50730573

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/085233 WO2014075526A1 (zh) 2012-11-19 2013-10-15 网络数据处理方法及设备

Country Status (2)

Country Link
CN (1) CN103823821B (zh)
WO (1) WO2014075526A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760395A (zh) * 2014-12-18 2016-07-13 华为技术有限公司 一种数据处理的方法、装置及系统
JP6701903B2 (ja) * 2016-04-08 2020-05-27 オムロンヘルスケア株式会社 端末装置
CN110365720B (zh) * 2018-03-26 2021-02-12 华为技术有限公司 一种资源请求处理的方法、装置及系统
CN109040251A (zh) * 2018-08-07 2018-12-18 中国建设银行股份有限公司 一种异步消息的处理方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1412669A (zh) * 2001-10-18 2003-04-23 精工爱普生株式会社 用于安装和启动网络应用程序的系统
CN1599901A (zh) * 2001-10-02 2005-03-23 茨特里克斯系统公司 在客户端-服务器网络中用文件类型关联执行分布式程序的方法
US20060059174A1 (en) * 2004-09-16 2006-03-16 International Business Machines Corporation Apparatus, system, and method for locating an application compatible with a file
CN101493817A (zh) * 2008-01-21 2009-07-29 宏达国际电子股份有限公司 开启档案的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599901A (zh) * 2001-10-02 2005-03-23 茨特里克斯系统公司 在客户端-服务器网络中用文件类型关联执行分布式程序的方法
CN1412669A (zh) * 2001-10-18 2003-04-23 精工爱普生株式会社 用于安装和启动网络应用程序的系统
US20060059174A1 (en) * 2004-09-16 2006-03-16 International Business Machines Corporation Apparatus, system, and method for locating an application compatible with a file
CN101493817A (zh) * 2008-01-21 2009-07-29 宏达国际电子股份有限公司 开启档案的方法

Also Published As

Publication number Publication date
CN103823821B (zh) 2018-02-23
CN103823821A (zh) 2014-05-28

Similar Documents

Publication Publication Date Title
US10142425B2 (en) Session reliability for a redirected USB device
US9740515B2 (en) Exception handling method, apparatus, and client
US10686778B2 (en) Account login method and apparatus
CN111414208B (zh) 应用程序的启动方法、装置及设备
RU2420797C2 (ru) Предоставление возможности применения команды изменения графического окна к дистанционно сгенерированному графическому окну
US10148852B2 (en) Image processing system, control apparatus, image processing apparatus, and methods of controlling these
JP6093482B2 (ja) 携帯端末で検索結果を表示する方法及び装置
US10659556B2 (en) Progressive hybrid web application
WO2014075526A1 (zh) 网络数据处理方法及设备
KR20180004093A (ko) 인스턴트 메시징 동안의 미디어 콘텐츠의 전송
CN111246238A (zh) 直播方法、装置、存储介质及直播系统
US20240176678A1 (en) Method, apparatus, electronic device and storage medium for application state synchronization
WO2021184992A1 (zh) 一种镜像文件的上传方法、相关设备及计算机存储介质
WO2017193926A1 (zh) 数据传输方法及装置
WO2014026542A1 (zh) 即时通信应用的实现方法及系统、与设备
EP3525411A1 (en) Terminal authentication method and device
CN106941509B (zh) 用户信息流的请求方法及装置
WO2015003570A1 (en) Data downloading method,device and system thereof
WO2023077858A1 (zh) 应用栈管理方法、装置、电子设备和存储介质
JP7373679B2 (ja) Wi-Fi制御方法、装置及び電子機器
CN111885169B (zh) 一种云硬盘服务高可用的实现方法、系统及装置
CN113760490B (zh) 对微服务处理的方法、装置、电子设备及存储介质
CN113645259B (zh) 微服务弹性伸缩方法、系统及相关设备
JP2019536173A (ja) アプリケーションのリソース使用量の削減
CN110457632B (zh) 网页加载的处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13854439

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13854439

Country of ref document: EP

Kind code of ref document: A1