WO2010017692A1 - Terminal, system and method for supporting mobile internet application - Google Patents

Terminal, system and method for supporting mobile internet application Download PDF

Info

Publication number
WO2010017692A1
WO2010017692A1 PCT/CN2009/000922 CN2009000922W WO2010017692A1 WO 2010017692 A1 WO2010017692 A1 WO 2010017692A1 CN 2009000922 W CN2009000922 W CN 2009000922W WO 2010017692 A1 WO2010017692 A1 WO 2010017692A1
Authority
WO
WIPO (PCT)
Prior art keywords
capability
mobile internet
application
service
module
Prior art date
Application number
PCT/CN2009/000922
Other languages
French (fr)
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 中国移动通信集团公司
Publication of WO2010017692A1 publication Critical patent/WO2010017692A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability

Definitions

  • Terminal system and method for supporting mobile internet application
  • the present invention relates to the field of mobile internet applications, and in particular, to a terminal, system and method for supporting a mobile internet application. Background technique
  • WRT WebRunTime
  • Widgets are WEB pages and are usually designed for a specific purpose; mobile Widgets are Widgets that run on mobile devices.
  • WRT-based technology mobile terminals can support the mobile Internet application runtime environment, support the parsing of extended tags, and manage the operation of mobile Widget applications.
  • WRT technology extends the JavaScript core within the mobile terminal (JavaScript is a standard Internet technology, also a description language), enabling the mobile terminal to support the analysis of mobile extension tags, while implementing Widget management.
  • the function. WRT technology implements JavaScript extensions by mapping extension object calls between the JavaScript core and the native program.
  • WRT technology implements support for mobile Internet applications
  • the call of the extended object is directly mapped between the JavaScript core and the native capability, and the extension mode is single, and the third-party service cannot be extended to the mobile Internet application. It also does not support extending network-side capabilities to mobile Internet applications. Summary of the invention
  • An object of the embodiments of the present invention is to provide a terminal, system and method for supporting a mobile internet application in order to extend more services and capabilities to a mobile internet application, aiming at a single defect of a method for supporting an Internet application in the prior art. .
  • Embodiments of the present invention provide a terminal supporting a mobile internet application, including a mobile internet connection
  • An application running engine that is fully managed by the web application; an internal server that provides service and/or extended capability support for the application running engine; the application running engine and the internal server respectively run in two separate threads and communicate.
  • the embodiment of the present invention provides a system for supporting a mobile Internet application, including the terminal in the foregoing technical solution, and a network side service server external to the terminal, where the network side service server pushes the network side capability to the internal server of the terminal.
  • the embodiment of the present invention further provides a method for supporting a mobile internet application.
  • a service or an extension capability is used in a mobile internet application
  • a call to a service and/or an extension capability is sent to an internal server by an application execution engine; Service and/or extension capabilities and return to mobile internet applications.
  • Embodiments of the present invention provide a cross-platform terminal, system, and method for supporting mobile Internet application implementation extension, which breaks a single extension manner in the prior art (that is, an extension object is called when the extension object is in the JavaScript core and the local machine. Instead of mapping directly between capabilities, it provides a more flexible way to scale.
  • the solution for supporting the mobile internet application provided by the embodiment of the present invention can not only realize the extension of the local mobile communication capability, but also realize the extension of the local capability by operating the internal server that can be run in a separate thread. One way; and can support the expansion of third-party services to mobile Internet applications, and support the extension of network-side capabilities to mobile Internet applications.
  • FIG. 1 is a system architecture diagram of a terminal supporting a mobile internet application in Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of an interface between related modules in a terminal supporting a mobile internet application according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic flowchart of a method for expanding a communication capability according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for extending a communication capability by using a telephone function in FIG. 3
  • FIG. FIG. 6 is a flowchart of a method for supporting a mobile Internet application to implement a second native capability extension according to Embodiment 2 of the present invention (taking a telephone function as an example)
  • 7 is a flowchart of a method for supporting a third-party service capability extension of a mobile internet application according to Embodiment 3 of the present invention (taking a search service as an example);
  • FIG. 8 is a flowchart of a method for supporting a mobile internet application to implement network side capability expansion according to Embodiment 4 of the present invention. detailed description
  • the mobile terminal 1 supporting the extension of the mobile internet application mainly includes an application running engine 2 and an internal server 3.
  • Application Run Engine 2 is the management container for mobile Internet applications and is responsible for the overall management of mobile Internet applications, including registration, loading, running, and more.
  • the internal server 3 is a container for third-party services, native services, and network-side capability integration deployment, providing support for application runtime engines and service extensions.
  • Application Runtime Engine 2 runs on internal server 3 in two separate threads, communicating in a standard communication protocol such as the HTTP protocol.
  • the application running engine 2 mainly includes an application management module 4, a capability analysis module 5, a traditional capability module 6, a native capability module 7, and a capability agent module 8.
  • the application management module 4 is responsible for managing the mobile internet application, including application resource allocation, security control, and communication between applications. At the same time, this module is responsible for parsing language level calls in the mobile internet application into an object subtree.
  • the capability parsing module 5 maintains a complete object tree (DOM Tree) supported by a system, and distributes the access mapping of the mobile Internet application to the underlying capabilities to different capability modules (for example, the traditional capability module and the native capability module).
  • the traditional capability module 6 is a support for the traditional Internet capability.
  • the native capability module 7 is a support for the extension of the local mobile communication capability
  • the capability proxy module 8 is responsible for cooperating with the internal server to expand the service and network side capabilities in the internal server. Give mobile internet applications.
  • IF1 is a script supported by the system
  • IF2 is a property or method of the DOM object
  • IF3 is a property or method of the native object class
  • IF4 is a call to the specific capabilities of the native system
  • IF5 is a method or property of the capability proxy class
  • IF6 Is a standard communication protocol message, such as an HTTP message, packaged according to internal transport rules.
  • the internal server 3 provides extended support for the application running engine 2 in a service manner, including a service container 9 and a network side capability module 12, which in turn may include a third party service module 10 and a local service module 11, and then a third party service , native packaging services and network side capabilities are available for mobile internet applications.
  • Internal server 3 deploys and manages services in plug-in mode.
  • the system defines a common service plug-in management interface, and third-party services and native services are encapsulated according to standard plug-in interfaces.
  • Service container 9 uses the established plug-in interface management service to achieve flexible and rapid deployment of services.
  • the application runtime engine 2 and the internal server 3 shield the difference between the underlying platforms and provide a unified application programming interface for the upper mobile Internet applications on different platforms.
  • the system has two extension methods through the capability analysis module 5, the capability proxy module 8, and the internal server 3.
  • the first method is to bind the upper layer call directly to the local extension capability.
  • the specific interaction process is shown in Figure 3. . Extending with the first method requires the ability to be extended to be packaged in the «Several Capabilities Module.
  • the flow of the first extension method is illustrated by a telephone function, in which the telephone function is encapsulated in the native capability module.
  • the specific process is as follows:
  • the mobile Internet Widget application uses a phone function to initiate a phone call in a JavaScript program;
  • the application management module parses the Widget application into an object subtree, and passes the call to the phone DOM object to the capability resolution module;
  • the capability resolution module will The DOM Call object maps to the native class in the native capability module, and the native capability module invokes the underlying operating system to initiate a phone call.
  • the second extension method is used in the embodiment of the present invention, and the extended capability is deployed in an internal server in a service manner, and then provided to the capability proxy module in a message manner, and then provided to the upper layer. application.
  • the interaction process between modules is shown in Figure 5.
  • the specific process is as follows: The mobile Internet application uses the extension capability; the application management module parses it into a call to extend the DOM object; the capability resolution module maps the DOM object capability through the service extension to the capability proxy module; the capability proxy module will extend the capability
  • the call is encapsulated as an asynchronous HTTP message sent to the internal server; the internal server parses the call message and evokes the response to the service, returning the result.
  • FIG. 6 shows Embodiment 2 of the present invention, wherein a method for supporting a mobile Internet application to implement native capability extension is illustrated by using a telephone function as an example:
  • Step S102 The mobile internet Widget application initiates a telephone call by using a telephone function in a JavaScript program
  • Step S104 The application management module parses the Widget application into an object subtree, and transmits a call to the phone DOM object (DOM Call) to the capability parsing module;
  • Step S106 The capability parsing module maps the DOM Call object to a proxy class in the capability proxy module.
  • Step S108 The capability proxy module encapsulates the call to the proxy class into an HTTP message and sends it to the internal server.
  • Step S110 The internal server parses the HTTP message to obtain the parameter information invoked by the local telephone, and transmits the parameter information to the encapsulated local telephone service;
  • Step S112 the local telephone service evokes the result of the telephone service operation to the internal server
  • Step S114 The internal server encapsulates the operation result to the capability agent module
  • Step S116 The capability proxy module sends the operation result to the capability parsing module.
  • Step S118 The capability parsing module sends the call object operation result to the application management module.
  • Step S120 The application management module returns the result of creating the call to the mobile internet application.
  • the method described in the above embodiment 2 realizes the extension of the native capability by a method different from the prior art (packaging the capability in the native capability module) by adding several service modules in the internal server.
  • FIG. 7 shows Embodiment 3 of the present invention, wherein a search service is taken as an example to describe a method for supporting a mobile Internet application to implement third-party service capability extension:
  • Step S202 The mobile internet Widget application calls a "local query" function in the JavaScript program
  • Step S204 The application management module parses the Widget application into an object subtree, and passes the call of the query function DOM object to the capability parsing module;
  • Step S206 The capability parsing module maps the DOM query object to a proxy class in the capability proxy module.
  • Step S208 The capability proxy module encapsulates the call to the proxy class into an HTTP message and sends it to the internal server.
  • Step S210 The internal server receives the message invoked by the local query and distributes it to a third-party service plug-in that implements the local query function.
  • Step S212 The third-party service plug-in processes the result and returns the result to the internal server.
  • Step S216 The capability proxy module sends the query result to the capability parsing module.
  • Step S218 The capability parsing module sends the query result of the extended object to the application management module.
  • Step S220 The application management module returns the query result to the mobile internet application.
  • Embodiment 3 implements the extension of the third-party service capability by adding a third-party service module in the internal server.
  • the service server is required to push the network side capability to the internal server of the mobile terminal, and the internal server in turn responds to the request of the application running engine for the network capability.
  • the specific interaction process is shown in Embodiment 4 of Figure 8.
  • the method of "acquiring free bandwidth” is used as an example to support the mobile Internet application to implement network side service capability extension:
  • Step S302 The mobile internet Widget application calls the "get idle bandwidth" function in the JavaScript program
  • Step S304 The application management module parses the Widget application into an object subtree, and passes the call for acquiring the idle bandwidth function DOM object to the capability parsing module;
  • Step S306 The capability parsing module maps the DOM query idle bandwidth to the proxy class in the capability proxy module.
  • Step S308 The capability proxy module encapsulates the call of the proxy class into an HTTP message and sends the call to the internal server.
  • Step S310 The internal server sends a request to the external service server after receiving the message called for the idle bandwidth.
  • Step S314 The internal server encapsulates the idle broadband information and sends it to the capability proxy module.
  • Step S320 The application management module returns the idle bandwidth size to the mobile internet application.
  • the method described in the foregoing embodiment 4 implements the extension of the network side capability by using the network side capability module in the internal server and the interaction between the network side capability module and the external service server.
  • a single extension mode provides a more flexible extension mechanism. It not only expands the native mobile communication capabilities for mobile Internet applications, but also easily extends third-party service capabilities and network-side service capabilities.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A terminal, system and method for supporting mobile Internet application are disclosed. The terminal comprises: an application operating engine which manages comprehensively the mobile Internet application and an internal server which provides service and/or expanding ability support for the application operating engine; the application operating engine and the internal server operate respectively in two independent threads and communicate with each other. The system includes the terminal and external service server. The method includes the following steps: sending the invocation of the service or expanding ability to the internal server through the application operating engine when using the service or expanding ability in mobile Internet application; the internal server invokes the service or expanding ability and returns to the mobile Internet application. The proposed terminal, system and method, which support mobile Internet application to enable extension across platform, support the provisions of local mobile communication ability, the third party service and network side ability to the mobile Internet application.

Description

一种支持移动互联网应用的终端、 系统及方法 技术领域  Terminal, system and method for supporting mobile internet application
本发明涉及移动互联网应用领域, 特别涉及一种支持移动互联网应用的 终端、 系统及方法。 背景技术  The present invention relates to the field of mobile internet applications, and in particular, to a terminal, system and method for supporting a mobile internet application. Background technique
与本发明最接近的现有技术为 WRT(WebRunTime)技术, WRT技术可以 实现各种移动 Widget。 Widget为一些 WEB页面, 且通常为某个特定目的而 设计; 移动 Widget为运行于移动终端上的 Widget。 通过基于 WRT技术的开 发使得移动终端能够支持移动互联网应用运行环境, 能够支持对扩展标签的 解析, 以及管理移动 Widget应用的运行。 WRT技术通过在移动终端内部对 JavaScript核心进行扩展 ( JavaScript是一种标准的互联网技术,也可以说是一 种描述语言), 使该移动终端支持对移动扩展标签的解析, 同时实现与 Widget 管理相关的功能。 WRT技术在实现 JavaScript扩展时, 将扩展对象的调用在 JavaScript核心与本机 ( Native )程序间进行映射, 从而实现对 JavaScript的扩 展。  The closest prior art to the present invention is WRT (WebRunTime) technology, which implements a variety of mobile widgets. Widgets are WEB pages and are usually designed for a specific purpose; mobile Widgets are Widgets that run on mobile devices. Through the development of WRT-based technology, mobile terminals can support the mobile Internet application runtime environment, support the parsing of extended tags, and manage the operation of mobile Widget applications. WRT technology extends the JavaScript core within the mobile terminal (JavaScript is a standard Internet technology, also a description language), enabling the mobile terminal to support the analysis of mobile extension tags, while implementing Widget management. The function. WRT technology implements JavaScript extensions by mapping extension object calls between the JavaScript core and the native program.
目前 WRT技术虽然实现了对移动互联网应用的支持,但是在实现扩展时 是将扩展对象的调用在 JavaScript核心与 native能力间直接进行映射,扩展方 式单一, 不能支持将第三方服务扩展给移动互联网应用, 也不能支持将网络 侧能力扩展给移动互联网应用。 发明内容  At present, although WRT technology implements support for mobile Internet applications, when the extension is implemented, the call of the extended object is directly mapped between the JavaScript core and the native capability, and the extension mode is single, and the third-party service cannot be extended to the mobile Internet application. It also does not support extending network-side capabilities to mobile Internet applications. Summary of the invention
本发明实施例的一个目的是针对现有技术中支持互联网应用的方式单一 的缺陷, 提出一种支持移动互联网应用的终端、 系统及方法, 以能将更多的 服务和能力扩展给移动互联网应用。  An object of the embodiments of the present invention is to provide a terminal, system and method for supporting a mobile internet application in order to extend more services and capabilities to a mobile internet application, aiming at a single defect of a method for supporting an Internet application in the prior art. .
本发明实施例提供了一种支持移动互联网应用的终端, 包括对移动互联 网应用进行全面管理的应用运行引擎; 为应用运行引擎提供服务和 /或扩展能 力支持的内部服务器; 应用运行引擎与内部服务器分别运行于两个独立的线 程中, 并进行通讯。 Embodiments of the present invention provide a terminal supporting a mobile internet application, including a mobile internet connection An application running engine that is fully managed by the web application; an internal server that provides service and/or extended capability support for the application running engine; the application running engine and the internal server respectively run in two separate threads and communicate.
本发明实施例提供了一种支持移动互联网应用的系统, 包括上述技术方 案中的终端; 还可以包括终端外部的网络侧业务服务器, 网络侧业务服务器 将网络侧能力推送到终端的内部服务器中。  The embodiment of the present invention provides a system for supporting a mobile Internet application, including the terminal in the foregoing technical solution, and a network side service server external to the terminal, where the network side service server pushes the network side capability to the internal server of the terminal.
本发明实施例还提供了一种支持移动互联网应用的方法, 在移动互联网 应用中使用服务或扩展能力时, 通过应用运行引擎将对服务和 /或扩展能力的 调用发送给内部服务器; 内部服务器调用服务和 /或扩展能力, 并返回至移动 互联网应用。  The embodiment of the present invention further provides a method for supporting a mobile internet application. When a service or an extension capability is used in a mobile internet application, a call to a service and/or an extension capability is sent to an internal server by an application execution engine; Service and/or extension capabilities and return to mobile internet applications.
本发明实施例提供了一种跨平台的支持移动互联网应用实现扩展的终 端、 系统及方法, 打破了现有技术中单一的扩展方式(即扩展时将扩展对象 的调用在在 JavaScript核心与本机能力间直接进行映射), 而是提供了更加灵 活的扩展方式。 釆用本发明实施例提供的支持移动互联网应用的方案, 不仅 可以实现本机移动通信能力的扩展, 而且由于增加了可在单独的线程中运行 的内部服务器, 从而实现了本机能力扩展的另一种方式; 且可支持将第三方 服务扩展给移动互联网应用 , 以及支持将网络侧能力扩展给移动互联网应用。 附图说明  Embodiments of the present invention provide a cross-platform terminal, system, and method for supporting mobile Internet application implementation extension, which breaks a single extension manner in the prior art (that is, an extension object is called when the extension object is in the JavaScript core and the local machine. Instead of mapping directly between capabilities, it provides a more flexible way to scale. The solution for supporting the mobile internet application provided by the embodiment of the present invention can not only realize the extension of the local mobile communication capability, but also realize the extension of the local capability by operating the internal server that can be run in a separate thread. One way; and can support the expansion of third-party services to mobile Internet applications, and support the extension of network-side capabilities to mobile Internet applications. DRAWINGS
图 1是本发明实施例 1中支持移动互联网应用的终端的系统架构图; 图 2是本发明实施例 1 中支持移动互联网应用的终端中相关模块之间的 接口示意图;  1 is a system architecture diagram of a terminal supporting a mobile internet application in Embodiment 1 of the present invention; FIG. 2 is a schematic diagram of an interface between related modules in a terminal supporting a mobile internet application according to Embodiment 1 of the present invention;
图 3是本发明实施例提供的第一种 ^几通信能力扩展方法流程原理图; 图 4是图 3中以电话功能为例的 ^几通信能力扩展方法流程图; 图 5是本发明实施例提供的支持移动互联网应用的方法流程原理图; 图 6是本发明实施例 2中支持移动互联网应用实现第二种本机能力扩展 的方法流程图 (以电话功能为例); 图 7是本发明实施例 3中支持移动互联网应用实现第三方服务能力扩展 的方法流程图 (以搜索服务为例); FIG. 3 is a schematic flowchart of a method for expanding a communication capability according to an embodiment of the present invention; FIG. 4 is a flowchart of a method for extending a communication capability by using a telephone function in FIG. 3; FIG. FIG. 6 is a flowchart of a method for supporting a mobile Internet application to implement a second native capability extension according to Embodiment 2 of the present invention (taking a telephone function as an example); 7 is a flowchart of a method for supporting a third-party service capability extension of a mobile internet application according to Embodiment 3 of the present invention (taking a search service as an example);
图 8是本发明实施例 4中支持移动互联网应用实现网络侧能力扩展的方 法流程图。 具体实施方式  FIG. 8 is a flowchart of a method for supporting a mobile internet application to implement network side capability expansion according to Embodiment 4 of the present invention. detailed description
下面结合附图, 对本发明的具体实施方式进行详细描述。  The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
图 1为本发明实施例 1 中支持移动互联网应用的终端的系统架构图, 如 图 1所示, 支持移动互联网应用实现扩展的移动终端 1主要包括应用运行引 擎 2和内部服务器 3两部分。 应用运行引擎 2是移动互联网应用的管理容器, 负责对移动互联网应用进行全面管理, 包括注册、 加载、 运行等等。 内部服 务器 3是第三方服务、 本机服务以及网络侧能力集成部署的容器, 为应用运 行引擎提供服务和能力扩展的支持。 应用运行引擎 2与内部服务器 3运行在 两个单独的线程中, 以标准的通信协议(例如 HTTP协议)进行通讯。  1 is a system architecture diagram of a terminal supporting a mobile internet application according to Embodiment 1 of the present invention. As shown in FIG. 1, the mobile terminal 1 supporting the extension of the mobile internet application mainly includes an application running engine 2 and an internal server 3. Application Run Engine 2 is the management container for mobile Internet applications and is responsible for the overall management of mobile Internet applications, including registration, loading, running, and more. The internal server 3 is a container for third-party services, native services, and network-side capability integration deployment, providing support for application runtime engines and service extensions. Application Runtime Engine 2 runs on internal server 3 in two separate threads, communicating in a standard communication protocol such as the HTTP protocol.
应用运行引擎 2主要包括应用管理模块 4、 能力解析模块 5、 传统能力模 块 6、 本机能力模块 7以及能力代理模块 8。 应用管理模块 4负责对移动互联 网应用进行管理, 包括应用的资源分配、 安全控制、 应用间的通信等, 同时 此模块负责将移动互联网应用中的语言级别调用解析为一棵对象子树。 能力 解析模块 5中维护一棵系统支持的完整对象树 (DOM Tree), 将移动互联网应 用对底层能力的访问映射分发到不同的能力模块(例如: 传统能力模块和本 机能力模块)。 传统能力模块 6是对传统互联网能力的支持, 本机能力模块 7 是对本机移动通信能力扩展的支持, 能力代理模块 8则负责与内部服务器进 行协作进而将内部服务器中的服务和网络侧能力扩展给移动互联网应用。  The application running engine 2 mainly includes an application management module 4, a capability analysis module 5, a traditional capability module 6, a native capability module 7, and a capability agent module 8. The application management module 4 is responsible for managing the mobile internet application, including application resource allocation, security control, and communication between applications. At the same time, this module is responsible for parsing language level calls in the mobile internet application into an object subtree. The capability parsing module 5 maintains a complete object tree (DOM Tree) supported by a system, and distributes the access mapping of the mobile Internet application to the underlying capabilities to different capability modules (for example, the traditional capability module and the native capability module). The traditional capability module 6 is a support for the traditional Internet capability. The native capability module 7 is a support for the extension of the local mobile communication capability, and the capability proxy module 8 is responsible for cooperating with the internal server to expand the service and network side capabilities in the internal server. Give mobile internet applications.
上述各个模块之间的接口示意图如图 2所示。 其中, IF1是系统支持的脚 本; IF2是 DOM对象的属性或者方法; IF3是本机对象类的属性或方法; IF4 是对本机系统具体能力的调用; IF5是能力代理类的方法或者属性; IF6是按 照内部传输规则打包的标准通信协议消息, 例如 HTTP消息。 内部服务器 3 以服务的方式为应用运行引擎 2提供扩展支持, 包括服务 容器 9和网络侧能力模块 12,服务容器 9又可包括第三方服务模块 10以及本 机服务模块 11, 进而将第三方服务、 本机封装服务以及网络侧能力提供给移 动互联网应用。 内部服务器 3 采用插件模式对服务进行部署和管理。 系统定 义通用的服务插件管理接口, 第三方服务和本机服务按照标准插件接口进行 封装。 服务容器 9使用既定的插件接口管理服务, 即可实现服务的灵活快速 部署。 The interface between the above modules is shown in Figure 2. Where IF1 is a script supported by the system; IF2 is a property or method of the DOM object; IF3 is a property or method of the native object class; IF4 is a call to the specific capabilities of the native system; IF5 is a method or property of the capability proxy class; IF6 Is a standard communication protocol message, such as an HTTP message, packaged according to internal transport rules. The internal server 3 provides extended support for the application running engine 2 in a service manner, including a service container 9 and a network side capability module 12, which in turn may include a third party service module 10 and a local service module 11, and then a third party service , native packaging services and network side capabilities are available for mobile internet applications. Internal server 3 deploys and manages services in plug-in mode. The system defines a common service plug-in management interface, and third-party services and native services are encapsulated according to standard plug-in interfaces. Service container 9 uses the established plug-in interface management service to achieve flexible and rapid deployment of services.
应用运行引擎 2与内部服务器 3屏蔽了底层平台的差异, 对上层移动互 联网应用在不同的平台提供统一的应用编程接口。 系统通过能力解析模块 5、 能力代理模块 8 以及内部服务器 3等使系统具有两种扩展方法, 第一种方法 是将上层调用直接与本机扩展能力进行绑定, 具体交互流程如图 3 所示。 采 用第一种方法进行扩展需要将待扩展的能力封装在«几能力模块中。 图 4 中 以电话功能为例示出了该第一种扩展方法的流程, 其中电话功能封装在本机 能力模块中。 具体流程如下: 移动互联网 Widget应用在 JavaScript程序中使 用电话功能发起一个电话呼叫;应用管理模块将 Widget应用解析为对象子树, 并将对电话 DOM对象的调用传递给能力解析模块; 能力解析模块将 DOM Call对象映射到本机能力模块中的本地类, 本机能力模块调用底层操作系统 发起电话呼叫。  The application runtime engine 2 and the internal server 3 shield the difference between the underlying platforms and provide a unified application programming interface for the upper mobile Internet applications on different platforms. The system has two extension methods through the capability analysis module 5, the capability proxy module 8, and the internal server 3. The first method is to bind the upper layer call directly to the local extension capability. The specific interaction process is shown in Figure 3. . Extending with the first method requires the ability to be extended to be packaged in the «Several Capabilities Module. In Figure 4, the flow of the first extension method is illustrated by a telephone function, in which the telephone function is encapsulated in the native capability module. The specific process is as follows: The mobile Internet Widget application uses a phone function to initiate a phone call in a JavaScript program; the application management module parses the Widget application into an object subtree, and passes the call to the phone DOM object to the capability resolution module; the capability resolution module will The DOM Call object maps to the native class in the native capability module, and the native capability module invokes the underlying operating system to initiate a phone call.
本发明实施例中除使用了上述方法以外, 还使用了第二种扩展方法, 即 将扩展的能力以服务的方式部署在内部服务器中, 然后以消息的方式提供给 能力代理模块, 进而提供给上层应用。 采用第二种方法进行能力扩展时, 模 块之间的交互流程如图 5所示。 具体流程如下: 移动互联网应用中使用扩展 能力;应用管理模块将其解析为扩展 DOM对象的调用; 能力解析模块将通过 服务扩展的 DOM对象能力映射到能力代理模块;能力代理模块将对扩展能力 的调用封装为异步 HTTP消息发送给内部服务器; 内部服务器解析调用消息 并唤起响应的服务, 返回结果。  In addition to the above method, the second extension method is used in the embodiment of the present invention, and the extended capability is deployed in an internal server in a service manner, and then provided to the capability proxy module in a message manner, and then provided to the upper layer. application. When the second method is used for capacity expansion, the interaction process between modules is shown in Figure 5. The specific process is as follows: The mobile Internet application uses the extension capability; the application management module parses it into a call to extend the DOM object; the capability resolution module maps the DOM object capability through the service extension to the capability proxy module; the capability proxy module will extend the capability The call is encapsulated as an asynchronous HTTP message sent to the internal server; the internal server parses the call message and evokes the response to the service, returning the result.
下面以具体的实施例加以详细说明: 如图 6所示为本发明的实施例 2,其中以电话功能为例说明支持移动互联 网应用实现本机能力扩展的方法: The following is a detailed description of specific embodiments: FIG. 6 shows Embodiment 2 of the present invention, wherein a method for supporting a mobile Internet application to implement native capability extension is illustrated by using a telephone function as an example:
步骤 S102: 移动互联网 Widget应用在 JavaScript程序中使用电话功能发 起一个电话呼叫;  Step S102: The mobile internet Widget application initiates a telephone call by using a telephone function in a JavaScript program;
步骤 S104: 应用管理模块将 Widget应用解析为对象子树, 并将对电话 DOM对象的调用 (DOM Call )传递给能力解析模块;  Step S104: The application management module parses the Widget application into an object subtree, and transmits a call to the phone DOM object (DOM Call) to the capability parsing module;
步骤 S106: 能力解析模块将 DOM Call对象映射到能力代理模块中的代 理类;  Step S106: The capability parsing module maps the DOM Call object to a proxy class in the capability proxy module.
步骤 S108: 能力代理模块将对代理类的调用封装为一个 HTTP消息并发 送给内部服务器;  Step S108: The capability proxy module encapsulates the call to the proxy class into an HTTP message and sends it to the internal server.
步驟 S110: 内部服务器解析 HTTP消息后取得本机电话调用的参数信息, 并将参数信息传递给封装的本机电话服务;  Step S110: The internal server parses the HTTP message to obtain the parameter information invoked by the local telephone, and transmits the parameter information to the encapsulated local telephone service;
步骤 S112: 本机电话服务唤起电话服务操作结果至内部服务器; 步驟 S114: 内部服务器封装操作结果至能力代理模块;  Step S112: the local telephone service evokes the result of the telephone service operation to the internal server; Step S114: The internal server encapsulates the operation result to the capability agent module;
步骤 S116: 能力代理模块将操作结果发送给能力解析模块;  Step S116: The capability proxy module sends the operation result to the capability parsing module.
步骤 S118: 能力解析模块将通话对象操作结果发送给应用管理模块; 步骤 S120: 应用管理模块返回创建呼叫的结果至移动互联网应用。  Step S118: The capability parsing module sends the call object operation result to the application management module. Step S120: The application management module returns the result of creating the call to the mobile internet application.
上述实施例 2 所述的方法通过增加的内部服务器中的 几服务模块, 以 不同于现有技术(将能力封装在本机能力模块中) 的方法实现了本机能力的 扩展。  The method described in the above embodiment 2 realizes the extension of the native capability by a method different from the prior art (packaging the capability in the native capability module) by adding several service modules in the internal server.
对于第三方服务的扩展, 系统将第三方服务以标准插件模式部署在内部 服务器中。如图 7所示为本发明的实施例 3, 其中以搜索服务为例说明支持移 动互联网应用实现第三方服务能力扩展的方法:  For extensions to third-party services, the system deploys third-party services in an internal server in standard plug-in mode. FIG. 7 shows Embodiment 3 of the present invention, wherein a search service is taken as an example to describe a method for supporting a mobile Internet application to implement third-party service capability extension:
步驟 S202: 移动互联网 Widget应用在 JavaScript程序中调用 "本地查询" 功能;  Step S202: The mobile internet Widget application calls a "local query" function in the JavaScript program;
步骤 S204: 应用管理模块将 Widget应用解析为对象子树, 并将对查询功 能 DOM对象的调用传递给能力解析模块; 步骤 S206: 能力解析模块将 DOM查询对象映射到能力代理模块中的代 理类; Step S204: The application management module parses the Widget application into an object subtree, and passes the call of the query function DOM object to the capability parsing module; Step S206: The capability parsing module maps the DOM query object to a proxy class in the capability proxy module.
步骤 S208: 能力代理模块将对代理类的调用封装为一个 HTTP消息并发 送给内部服务器;  Step S208: The capability proxy module encapsulates the call to the proxy class into an HTTP message and sends it to the internal server.
步骤 S210: 内部服务器接收到对本地查询调用的消息后将其分发到某一 具体实现本地查询功能的第三方服务插件;  Step S210: The internal server receives the message invoked by the local query and distributes it to a third-party service plug-in that implements the local query function.
步骤 S212: 第三方服务插件进行处理后将结果返回给内部服务器; 步骤 S214: 内部服务器封装查询结果并发送至能力代理模块;  Step S212: The third-party service plug-in processes the result and returns the result to the internal server. Step S214: The internal server encapsulates the query result and sends the result to the capability agent module.
步骤 S216: 能力代理模块将查询结果发送给能力解析模块;  Step S216: The capability proxy module sends the query result to the capability parsing module.
步骤 S218: 能力解析模块将扩展对象的查询结果发送给应用管理模块; 步骤 S220: 应用管理模块返回查询结果至移动互联网应用。  Step S218: The capability parsing module sends the query result of the extended object to the application management module. Step S220: The application management module returns the query result to the mobile internet application.
上述实施例 3 所述的方法通过增加的内部服务器中的第三方服务模块, 实现了第三方服务能力的扩展。  The method described in Embodiment 3 above implements the extension of the third-party service capability by adding a third-party service module in the internal server.
对于网络侧能力的扩展, 需要业务服务器将网络侧能力推送到移动终端 的内部服务器中, 内部服务器进而响应应用运行引擎对网络能力的请求。 具 体的交互流程如图 8实施例 4所示, 其中以 "获取空闲带宽" 为例说明支持 移动互联网应用实现网络侧服务能力扩展的方法:  For the extension of the network side capability, the service server is required to push the network side capability to the internal server of the mobile terminal, and the internal server in turn responds to the request of the application running engine for the network capability. The specific interaction process is shown in Embodiment 4 of Figure 8. The method of "acquiring free bandwidth" is used as an example to support the mobile Internet application to implement network side service capability extension:
步驟 S302: 移动互联网 Widget应用在 JavaScript程序中调用 "获取空闲 带宽" 功能;  Step S302: The mobile internet Widget application calls the "get idle bandwidth" function in the JavaScript program;
步骤 S304: 应用管理模块将 Widget应用解析为对象子树, 并将对获取空 闲带宽功能 DOM对象的调用传递给能力解析模块;  Step S304: The application management module parses the Widget application into an object subtree, and passes the call for acquiring the idle bandwidth function DOM object to the capability parsing module;
步骤 S306: 能力解析模块将 DOM查询空闲带宽映射到能力代理模块中 的代理类;  Step S306: The capability parsing module maps the DOM query idle bandwidth to the proxy class in the capability proxy module.
步骤 S308: 能力代理模块将对代理类的调用封装为一个 HTTP消息并发 送给内部服务器;  Step S308: The capability proxy module encapsulates the call of the proxy class into an HTTP message and sends the call to the internal server.
步驟 S310: 内部服务器接收到对空闲带宽调用的消息后向外部业务服务 器发出请求; 步骤 S312: 外部的业务服务器将网络侧能力推送到移动终端的内部服务 器; Step S310: The internal server sends a request to the external service server after receiving the message called for the idle bandwidth. Step S312: The external service server pushes the network side capability to the internal server of the mobile terminal;
步骤 S314: 内部服务器封装空闲宽带信息并将其发送至能力代理模块; 步骤 S316: 能力代理模块将空闲带宽信息返回给能力解析模块; 步骤 S318: 能力解析模块将扩展对象的空闲带宽结果信息发送给应用管 理模块;  Step S314: The internal server encapsulates the idle broadband information and sends it to the capability proxy module. Step S316: The capability proxy module returns the idle bandwidth information to the capability parsing module. Step S318: The capability parsing module sends the idle bandwidth result information of the extended object to the Application management module;
步骤 S320: 应用管理模块返回空闲带宽大小至移动互联网应用。  Step S320: The application management module returns the idle bandwidth size to the mobile internet application.
上述实施例 4所述的方法通过增加的内部服务器中的网络侧能力模块, 通过网络侧能力模块与外部业务服务器的交互, 实现了网络侧能力的扩展。 单一的扩展模式, 提供了一种更为灵活的扩展机制。 不仅能够为移动互联网 应用扩展本机移动通信能力, 而且能方便地扩展第三方服务能力以及网络側 业务能力。  The method described in the foregoing embodiment 4 implements the extension of the network side capability by using the network side capability module in the internal server and the interaction between the network side capability module and the external service server. A single extension mode provides a more flexible extension mechanism. It not only expands the native mobile communication capabilities for mobile Internet applications, but also easily extends third-party service capabilities and network-side service capabilities.
以上公开的仅为本发明的几个具体实施例, 但是, 本发明并非局限于此, 任何本领域的技术人员能想到的变化都应落入本发明的保护范围。  The above disclosure is only a few specific embodiments of the present invention, but the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种支持移动互联网应用的终端, 其特征在于, 包括:  A terminal for supporting a mobile internet application, comprising:
对移动互联网应用进行全面管理的应用运行引擎;  An application running engine that comprehensively manages mobile Internet applications;
为所述应用运行引擎提供服务和 /或扩展能力支持的内部服务器; 所述应用运行引擎与所述内部服务器分别运行于两个独立的线程中, 并 进行通讯。  An internal server that provides service and/or extension capability support for the application execution engine; the application execution engine and the internal server respectively run in two separate threads and communicate.
2、 根据权利要求 1所述的终端, 其特征在于, 还包括:  2. The terminal according to claim 1, further comprising:
能力代理模块, 用于与所述内部服务器进行协作, 将所述内部服务器中 的服务和 /或能力扩展给移动互联网应用。  A capability proxy module, configured to cooperate with the internal server to extend services and/or capabilities in the internal server to a mobile internet application.
3、根据权利要求 2所述的终端, 其特征在于, 所述能力代理模块位于所 述应用运行引擎内部, 移动互联网应用通过所述能力代理模块扩展所述内部 服务器中的服务和 /或能力。  The terminal according to claim 2, wherein the capability agent module is located inside the application execution engine, and the mobile internet application extends the service and/or capability in the internal server through the capability agent module.
4、根据权利要求 2所述的终端, 其特征在于, 所述能力代理模块位于所 述应用运行引擎与所述内部服务器之间。  The terminal according to claim 2, wherein the capability proxy module is located between the application execution engine and the internal server.
5、 根据权利要求 1-4中任一项所述的终端, 其特征在于, 所述内部服务 器包括:  The terminal according to any one of claims 1 to 4, wherein the internal server comprises:
服务容器, 用于支持本机和 /或第三方服务的扩展; 和 /或,  Service container, used to support extensions to native and/or third-party services; and / or,
网络侧能力模块, 用于与终端外部的网络侧业务服务器进行交互, 支持 网络侧能力扩展。  The network side capability module is configured to interact with a network side service server outside the terminal to support network side capability extension.
6、根据权利要求 5所述的终端, 其特征在于, 所述应用运行引擎具体包 括:  The terminal according to claim 5, wherein the application running engine specifically includes:
应用管理模块, 用于对移动互联网应用进行管理, 并对移动互联网应用 中语言级别的调用进行解析;  An application management module for managing mobile internet applications and parsing language level calls in mobile internet applications;
能力解析模块, 用于将应用管理模块的解析结果进行维护, 并将移动互 联网应用对底层能力的访问映射分发至不同的能力模块。  The capability parsing module is configured to maintain the parsing result of the application management module, and distribute the access mapping of the mobile internet application to the underlying capability to different capability modules.
7、 根据权利要求 6所述的终端, 其特征在于, 所述能力代理模块分别与 所述能力解析模块和内部服务器连接。 The terminal according to claim 6, wherein the capability proxy modules are respectively associated with The capability resolution module is connected to an internal server.
8、 根据权利要求 7所述的终端, 其特征在于, 所述能力代理模块与能力 解析模块之间采用能力代理类的方法或属性接口。  The terminal according to claim 7, wherein a method or an attribute interface of the capability proxy class is adopted between the capability proxy module and the capability analysis module.
9、 根据权利要求 5所述的终端, 其特征在于, 所述应用运行引擎与所述 内部服务器之间釆用按照内部传输规则打包的标准通信协议消息进行通信。  9. The terminal according to claim 5, wherein the application running engine communicates with the internal server by using a standard communication protocol message packaged according to an internal transmission rule.
10、根据权利要求 9所述的终端,其特征在于,所述标准通信协议为 HTTP 协议。  10. The terminal of claim 9, wherein the standard communication protocol is an HTTP protocol.
11、 根据权利要求 6所述的终端, 其特征在于, 所述应用运行引擎还包 括本机能力模块, 用于提供对本机移动通信能力扩展的支持。  The terminal according to claim 6, wherein the application running engine further comprises a native capability module for providing support for the extension of the local mobile communication capability.
12、 一种支持移动互联网应用的系统, 其特征在于, 包括权利要求 1 至 11中任意一项所述的终端。  12. A system for supporting a mobile internet application, comprising the terminal of any one of claims 1 to 11.
13、 根据权利要求 12所述的系统, 其特征在于, 还包括终端外部的网络 侧业务服务器, 所述网络侧业务服务器将网络侧能力推送到所述终端的内部 服务器中。  The system according to claim 12, further comprising a network side service server external to the terminal, wherein the network side service server pushes the network side capability to an internal server of the terminal.
14、 一种支持移动互联网应用的方法, 其特征在于, 包括:  14. A method for supporting a mobile internet application, the method comprising:
在移动互联网应用中使用服务和 /或扩展能力时, 通过应用运行引擎将对 所述服务和 /或扩展能力的调用发送给内部服务器;  When a service and/or extension capability is used in a mobile internet application, a call to the service and/or extension capability is sent to the internal server by the application runtime engine;
所述内部服务器调用所述服务和 /或扩展能力, 并返回至所述移动互联网 应用。  The internal server invokes the service and/or extension capabilities and returns to the mobile internet application.
15、 根据权利要求 14所述的方法, 其特征在于, 所述内部服务器调用所 述服务和 /或扩展能力, 并返回至所述移动互联网应用具体为:  The method according to claim 14, wherein the internal server invokes the service and/or extension capability, and returns to the mobile internet application specifically:
将扩展的能力以服务的方式部署在内部服务器中;  Deploy the extended capabilities as a service in an internal server;
并以消息的方式提供给能力代理模块;  And provided to the capability agent module by means of a message;
进而提供给移动互联网应用。  It is then provided to mobile internet applications.
16、 根据权利要求 14或 15所述的方法, 其特征在于, 还包括: 在移动互联网应用中使用本机扩展能力时, 通过应用运行引擎将对所述 本机扩展能力的调用映射到本机能力模块; 所述本机能力模块将自身内部封装的本机扩展能力提供给应用运行引 擎, 进而提供给移动互联网应用。 The method according to claim 14 or 15, further comprising: when the native extension capability is used in the mobile internet application, mapping the local extension capability call to the local machine by the application execution engine Capability module The native capability module provides native extension capabilities of its own internal package to the application runtime engine for use in mobile Internet applications.
17、 根据权利要求 14或 15所述的方法, 其特征在于, 所述内部服务器 调用所述服务和 /或扩展能力具体包括:  The method according to claim 14 or 15, wherein the invoking the service and/or the extension capability by the internal server specifically comprises:
调用本机服务; 和 /或  Calling native services; and / or
第三方服务; 和 /或  Third party services; and / or
网络侧扩展能力。  Network side expansion capability.
18、 根据权利要求 17所述的方法, 其特征在于, 所述本机服务为电话功 能服务; 所述第三方服务为搜索查询服务; 所述网络侧扩展能力为获取空闲 带宽。  The method according to claim 17, wherein the local service is a phone function service; the third party service is a search query service; and the network side extension capability is an idle bandwidth.
PCT/CN2009/000922 2008-08-12 2009-08-12 Terminal, system and method for supporting mobile internet application WO2010017692A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810118268.X 2008-08-12
CN 200810118268 CN101651633B (en) 2008-08-12 2008-08-12 Terminal, system and method for supporting mobile internet application

Publications (1)

Publication Number Publication Date
WO2010017692A1 true WO2010017692A1 (en) 2010-02-18

Family

ID=41668653

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/000922 WO2010017692A1 (en) 2008-08-12 2009-08-12 Terminal, system and method for supporting mobile internet application

Country Status (2)

Country Link
CN (1) CN101651633B (en)
WO (1) WO2010017692A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624765A (en) * 2011-01-28 2012-08-01 腾讯科技(深圳)有限公司 Shared service call system of intelligent terminal and method
CN104243415B (en) * 2013-06-17 2017-11-14 中国移动通信集团公司 A kind of capacity calling method and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039473A (en) * 2006-03-14 2007-09-19 三星电子株式会社 Apparatus and method for fast access to applications in mobile communication terminal
US20070288858A1 (en) * 2006-06-09 2007-12-13 Mindy Pereira Engine for rendering widgets using platform-specific attributes
CN101136938A (en) * 2007-09-10 2008-03-05 北京易路联动技术有限公司 Centralized management method and platform system for mobile internet application
CN101159754A (en) * 2007-09-28 2008-04-09 李华 Internet application management system operating on intelligent mobile terminal
CN101222487A (en) * 2007-01-09 2008-07-16 乐金电子(中国)研究开发中心有限公司 System, method and mobile terminal for establishing website on mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039473A (en) * 2006-03-14 2007-09-19 三星电子株式会社 Apparatus and method for fast access to applications in mobile communication terminal
US20070288858A1 (en) * 2006-06-09 2007-12-13 Mindy Pereira Engine for rendering widgets using platform-specific attributes
CN101222487A (en) * 2007-01-09 2008-07-16 乐金电子(中国)研究开发中心有限公司 System, method and mobile terminal for establishing website on mobile terminal
CN101136938A (en) * 2007-09-10 2008-03-05 北京易路联动技术有限公司 Centralized management method and platform system for mobile internet application
CN101159754A (en) * 2007-09-28 2008-04-09 李华 Internet application management system operating on intelligent mobile terminal

Also Published As

Publication number Publication date
CN101651633B (en) 2011-11-09
CN101651633A (en) 2010-02-17

Similar Documents

Publication Publication Date Title
KR100694155B1 (en) Method and apparatus for providing service of home network device for service client outside the home network through web service
US20170374155A1 (en) Common device interface framework for iot/smart device application
Hughes et al. Looci: The loosely-coupled component infrastructure
CN103294455A (en) Software service implementation method and system, as well as Java platform
CN113596110A (en) Heterogeneous cloud-oriented cloud native micro-service platform
CN101232626A (en) Business supporting system and method based on business events developing platform
CN113973129B (en) Gateway supporting multiple registry micro services
CN112596931B (en) Cross-process communication method and device, electronic equipment and storage medium
CN114422350B (en) Public cloud container instance creation method
CN113726869A (en) Communication method, gateway and electronic equipment
CN114244654B (en) URL forwarding method, device, equipment and computer storage medium
WO2010017692A1 (en) Terminal, system and method for supporting mobile internet application
CN112698930B (en) Method, device, equipment and medium for obtaining server identification
WO2008095369A1 (en) Communication adapter layer system, method and device for obtaining network element information
KR20080052112A (en) Method for start of application based on sca system according to component start order
WO2021093671A1 (en) Task processing method, system, apparatus and device, and computer readable storage medium
EP2088741A1 (en) Method and OSGi bundle to enable sharing of a local service on an embedded device
US11902301B2 (en) System and method for implementing an auto detect, fix and deploy module
WO2022121682A1 (en) Method and system for communication between apple mobile device andapple external accessory
WO2009062396A1 (en) Resource access method and resource access system
CN112486559B (en) Product adjusting method and device, storage medium and electronic device
US8046419B2 (en) Method of processing open asynchronous application service event and open web service gateway implementing the same
JP5042415B2 (en) Client server system
CN111414262A (en) Service calling method and device
CN112882710B (en) Rendering method, device, equipment and storage medium based on client

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: 09806295

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: 09806295

Country of ref document: EP

Kind code of ref document: A1