Movatterモバイル変換


[0]ホーム

URL:


CN102780730A - Method and system for integrating web applications and mashup server - Google Patents

Method and system for integrating web applications and mashup server
Download PDF

Info

Publication number
CN102780730A
CN102780730ACN201110128123XACN201110128123ACN102780730ACN 102780730 ACN102780730 ACN 102780730ACN 201110128123X ACN201110128123X ACN 201110128123XACN 201110128123 ACN201110128123 ACN 201110128123ACN 102780730 ACN102780730 ACN 102780730A
Authority
CN
China
Prior art keywords
action
browser
scene information
server
current scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201110128123XA
Other languages
Chinese (zh)
Inventor
张军
钟朝亮
李邵明
王主龙
松尾昭彦
大木宪二
粂照宣
田中昌弘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu LtdfiledCriticalFujitsu Ltd
Priority to CN201110128123XApriorityCriticalpatent/CN102780730A/en
Publication of CN102780730ApublicationCriticalpatent/CN102780730A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了集成web应用的方法、混搭服务器及系统,所述方法包括:从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;根据判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;将所述动作列表中的动作在所述浏览器上进行展示;响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。通过本发明实施例,能够根据用户当前访问的场景信息进行web应用的集成。

The embodiment of the present invention discloses a method for integrating web applications, a mashup server, and a system. The method includes: obtaining current scene information from a client browser, and the current scene information includes at least the unified resources being accessed by the user of the browser. Locator and webpage content; According to the current scene information, it is judged in turn whether all the conditions and actions stored in the mashup database match with the current scene information; an action list is generated according to the judgment result, and the action list includes the actions matched with the current scene information The actions in the pair of conditions and actions; the actions in the action list are displayed on the browser; in response to the user selecting one or more actions through the browser, all the actions are integrated on the browser The web application corresponding to the selected action. Through the embodiment of the present invention, web application integration can be performed according to the scene information currently accessed by the user.

Description

Translated fromChinese
集成web应用的方法、混搭服务器及系统Method, mashup server and system for integrating web applications

技术领域technical field

本发明一般地涉及网络应用技术领域,尤其是集成web应用的方法、混搭服务器及系统。The present invention generally relates to the technical field of network applications, in particular to a method for integrating web applications, a mashup server and a system.

背景技术Background technique

近年来,越来越多的Web应用发布了API(Application ProgrammingInterface,应用程序编程接口),从而可以使软件开发人员不需自己编写源代码或者程序就能够轻松地集成Web应用。集成Web应用需要混搭(Mashup)技术,Mashup具体指将两种以上使用公共或者私有数据库的web应用叠加在一起,形成一个新的整合应用,从而通过组合多个Web应用来创建新的功能。In recent years, more and more Web applications have released APIs (Application Programming Interface, Application Programming Interface), so that software developers can easily integrate Web applications without writing source code or programs themselves. Integrating web applications requires Mashup technology. Mashup specifically refers to superimposing two or more web applications that use public or private databases to form a new integrated application, thereby creating new functions by combining multiple web applications.

Mashup技术具体可以涉及用户界面混搭和数据混搭等方面,其原理即是通过提取和整合数据实现在Web应用中添加新的功能以满足用户的需求,并且通过Mashup实现Web应用的集成。Mashup technology can specifically involve user interface mashups and data mashups. Its principle is to add new functions to Web applications to meet user needs by extracting and integrating data, and to realize the integration of Web applications through Mashups.

现有技术中也有Web应用的集成方法,例如,当用户浏览大众点评网上的某个商店信息时,在这个Web应用“dianping.com”就能够实现谷歌地图应用的集成,即是在用户浏览该商店点评内容的同时向用户提供该商店的地理位置信息。There is also an integration method for Web applications in the prior art. For example, when a user browses a certain store information on Dianping.com, the Web application "dianping.com" can realize the integration of the Google Maps application, that is, when the user browses the information of a certain store on Dianping.com. Provide the location information of the store to the user while reviewing the content of the store.

但是现有技术的这种Web应用的集成方法存在一定的缺陷,因为这种集成都是预先设置好的,且在用户浏览网页的过程中不能进行更改,因此现有技术的Web应用的集成方法无法根据用户当前访问的场景信息进行web应用的集成,进一步的,用户也无法自主选择在当前访问的页面上集成哪个或者哪些web应用。However, there are certain defects in this web application integration method of the prior art, because this integration is pre-set and cannot be changed during the user's web browsing process, so the integration method of the web application of the prior art It is impossible to integrate web applications according to the scene information currently accessed by the user. Furthermore, the user cannot independently choose which or which web applications to integrate on the currently accessed page.

发明内容Contents of the invention

有鉴于此,本发明实施例提供了集成web应用的方法、服务器及系统,能够根据用户当前访问的场景信息进行web应用的集成,也能够使用户可以自主选择在当前访问的页面上集成哪个或哪些web应用。In view of this, the embodiments of the present invention provide a method, server, and system for integrating web applications, which can integrate web applications according to the scene information currently accessed by the user, and also enable the user to independently choose which or which web application to integrate on the currently accessed page. which web applications.

根据本发明实施例的一个方面,提供一种集成web应用的方法,包括:从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;根据判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;将所述动作列表中的动作在所述浏览器上进行展示;响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。According to an aspect of an embodiment of the present invention, there is provided a method for integrating web applications, including: acquiring current scene information from a browser of a client, the current scene information at least including the Uniform Resource Locator being visited by the user of the browser and the content of the webpage; according to the current scene information, it is sequentially judged whether all the conditions and actions stored in the mashup database match with the current scene information; an action list is generated according to the judgment result, and the action list includes the conditions and actions matched with the current scene information actions in the action pair; displaying the actions in the action list on the browser; in response to the user selecting one or more actions through the browser, integrating the selected actions on the browser The web application corresponding to the action.

根据本发明实施例的另一个方面,提供一种集成web应用的混搭服务器,包括:获取场景信息模块,用于从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;判断模块,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;生成动作列表模块,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;展示动作模块,用于将所述动作列表中的动作在所述浏览器上进行展示;集成模块,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。According to another aspect of the embodiments of the present invention, there is provided a mashup server integrating web applications, including: an acquisition scene information module, configured to acquire current scene information from a browser of a client, the current scene information at least includes the browser The Uniform Resource Locator and webpage content that the user is visiting; the judging module is used to judge whether all the conditions and actions stored in the mashup database match the current scene information according to the current scene information; the action list generation module is used to judge according to the current scene information The judgment result of the judging module generates an action list, and the action list includes the conditions matched with the current scene information and the actions in the action pair; the display action module is used to display the actions in the action list in the browsing display on the browser; the integration module is configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.

根据本发明实施例的再一个方面,提供一种集成web应用的系统,所述系统包括客户端和混搭服务器;According to still another aspect of the embodiments of the present invention, a system for integrating web applications is provided, the system includes a client and a mashup server;

所述客户端用于向混搭服务器发送当前场景信息;所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;The client is used to send current scene information to the mashup server; the current scene information includes at least the URL and web page content that the browser user is visiting;

所述混搭服务器包括:The mashup server includes:

获取场景信息模块,用于从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;Obtaining the scene information module, used to obtain the current scene information from the browser of the client, the current scene information at least includes the uniform resource locator and the webpage content that the user of the browser is visiting;

判断模块,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;A judging module, configured to sequentially judge whether all conditions and action pairs stored in the mashup database match the current scene information according to the current scene information;

生成动作列表模块,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;An action list generation module, configured to generate an action list according to the judgment result of the judgment module, the action list includes conditions matching the current scene information and actions in the action pair;

展示动作模块,用于将所述动作列表中的动作在所述浏览器上进行展示;a display action module, configured to display the actions in the action list on the browser;

集成模块,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。An integration module, configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.

另外,根据本发明的另一方面,还提供了一种存储介质。所述存储介质包括机器可读的程序代码,当在信息处理设备上执行所述程序代码时,所述程序代码使得所述信息处理设备执行根据本发明的上述集成web应用的方法。In addition, according to another aspect of the present invention, a storage medium is also provided. The storage medium includes machine-readable program code, and when the program code is executed on the information processing device, the program code causes the information processing device to execute the above method for integrating web applications according to the present invention.

此外,根据本发明的再一方面,还提供了一种程序产品。所述程序产品包括机器可执行的指令,当在信息处理设备上执行所述指令时,所述指令使得所述信息处理设备执行根据本发明的上述集成web应用的方法。In addition, according to still another aspect of the present invention, a program product is also provided. The program product includes machine-executable instructions, and when the instructions are executed on the information processing device, the instructions cause the information processing device to execute the above method for integrating web applications according to the present invention.

根据本发明实施例的上述一种方法,能够使混搭服务器在获取到客户端的浏览器上用户正在访问的URL地址及网页内容等当前场景信息之后,再根据当前场景信息来判断是否需要在用户访问的网页上集成相关的web应用,这样就能避免现有技术中当前场景信息只能固定地与某个web应用集成,采用本发明实施例的技术方案,可以让用户来自主选择在当前访问的页面上集成哪个或哪些web应用;并且从用户角度来看,也可以在自己访问的网页所涉及到的不同场景来满足不同的功能需求。According to the above-mentioned method of the embodiment of the present invention, after the mashup server obtains the current scene information such as the URL address and web page content that the user is visiting on the browser of the client, it can then judge whether it needs to be accessed by the user according to the current scene information. Integrate relevant web applications on the webpage, so that the current scene information in the prior art can only be fixedly integrated with a certain web application. By adopting the technical solution of the embodiment of the present invention, the user can independently select the currently visited webpage. Which or which web applications are integrated on the page; and from the user's point of view, different functional requirements can also be met in different scenarios involved in the webpages they visit.

在下面的说明书部分中给出本发明实施例的其他方面,其中,详细说明用于充分地公开本发明实施例的优选实施例,而不对其施加限定。Further aspects of the embodiments of the present invention are given in the description section below, wherein the detailed description serves to fully disclose preferred embodiments of the embodiments of the present invention without imposing limitations thereon.

附图说明Description of drawings

下面结合具体的实施例,并参照附图,对本发明实施例的上述和其它目的和优点做进一步的描述。在附图中,相同的或对应的技术特征或部件将采用相同或对应的附图标记来表示。The above and other objectives and advantages of the embodiments of the present invention will be further described below in conjunction with specific embodiments and with reference to the accompanying drawings. In the drawings, the same or corresponding technical features or components will be indicated by the same or corresponding reference numerals.

图1是示出作为本发明实施例提供的一种方法流程图;Fig. 1 is a flow chart showing a method provided as an embodiment of the present invention;

图2是示出作为本发明实施例提供的步骤102的流程图;FIG. 2 is a flowchart illustrating step 102 provided as an embodiment of the present invention;

图3是示出一种方法中在浏览器上展示匹配的动作列表的具体例子的界面示意图;Fig. 3 is a schematic interface diagram showing a specific example of displaying a matching action list on a browser in a method;

图4是示出作为本发明实施例提供的第二方法的流程图;Fig. 4 is a flowchart illustrating a second method provided as an embodiment of the present invention;

图5是示出作为本发明实施例提供的混搭服务器装置的示意图;Fig. 5 is a schematic diagram showing a mashup server device provided as an embodiment of the present invention;

图6是示出作为本发明实施例提供的第一系统的示意图;Fig. 6 is a schematic diagram showing a first system provided as an embodiment of the present invention;

图7是示出作为本发明实施例提供的第二系统的示意图;Fig. 7 is a schematic diagram showing a second system provided as an embodiment of the present invention;

图8是示出作为本发明的实施例中所采用的信息处理设备的个人计算机的示例性结构的框图。FIG. 8 is a block diagram showing an exemplary structure of a personal computer as an information processing device employed in an embodiment of the present invention.

具体实施方式Detailed ways

下面参照附图来说明本发明的实施例。Embodiments of the present invention will be described below with reference to the drawings.

本发明人在实现本发明的过程中发现,在利用现有技术的Web应用的集成方法时,至少存在以下问题:In the process of realizing the present invention, the inventors found that when using the integration method of Web applications in the prior art, there are at least the following problems:

用户在客户端的浏览器上访问网页时,存在各种各样的应用场景。假设存在以下三种应用场景,场景一:用户A在办公室使用谷歌搜索,该用户当前正在使用的设备是富士通笔记本电脑,正在使用的浏览器类型为火狐(Firefox)网页浏览器,正在搜索的关键字是“富士通消息”;场景二:用户B使用内部网的CRM(客户关系管理,Customer Relationship Management)系统来添加新客户信息,该用户正在使用的浏览器类型为IE浏览器,而该新客户则分类为最重要的客户;场景三:用户C在他的iPad上正在使用Opera浏览器观看“YouTube”视频网站的视频,该视频是与时尚相关的一个电视节目。There are various application scenarios when a user accesses a webpage on a browser of a client. Assume that there are the following three application scenarios. Scenario 1: User A uses Google search in the office. The device that the user is currently using is a Fujitsu laptop, and the type of browser he is using is Firefox (Firefox). The word is "Fujitsu News"; Scenario 2: User B uses the intranet CRM (Customer Relationship Management, Customer Relationship Management) system to add new customer information, the browser type that the user is using is IE browser, and the new customer It is classified as the most important customer; Scenario 3: User C is using the Opera browser on his iPad to watch the video of the "YouTube" video website, which is a TV program related to fashion.

而对于上述三种应用情景,每一种场景下的用户可能都需要新增加一些与正在使用的web应用相关的功能。例如,在场景一中,用户A可能需要一个从富士通主页直接查看富士通最新消息的功能;在场景二中,用户B可能需要一个在CRM系统添加新客户信息之后也往其手机联络人列表中增加该新客户信息的功能;在场景三中,用户C可能需要一个显示在哪里可以买到电视节目中展示的鞋的新功能。For the above three application scenarios, users in each scenario may need to add some functions related to the web application being used. For example, in Scenario 1, User A may need a function to directly view Fujitsu’s latest news from the Fujitsu homepage; in Scenario 2, User B may need a function to add new customer information to his mobile phone contact list after the CRM system adds This new customer information function; in scenario three, user C may need a new function that shows where to buy the shoes shown in the TV show.

而现有技术中的web应用集成方式因为都是预先设置好的,能够实现集成的web应用都固定的与某一个或某些web应用相关联,无法根据用户访问时的当前场景信息进行更新,所以,对于上述例子中的三种应用场景,应用现有技术的方法无法做到web应用的集成,即是无法根据用户的应用场景进行web应用的集成。However, because the web application integration methods in the prior art are all pre-set, all web applications that can be integrated are fixedly associated with one or some web applications, and cannot be updated according to the current scene information when the user visits. Therefore, for the three application scenarios in the above example, the method of applying the prior art cannot realize the integration of web applications, that is, the integration of web applications cannot be performed according to the user's application scenarios.

因此,本发明实施例针对这个问题,提供了相应的解决方法。具体的,参见图1,本发明实施例提供的集成web应用的方法可以包括:Therefore, the embodiment of the present invention provides a corresponding solution to this problem. Specifically, referring to FIG. 1, the method for integrating web applications provided by the embodiment of the present invention may include:

S101:从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容。S101: Acquire current scene information from a browser of a client, where the current scene information includes at least a URL and webpage content that a user of the browser is visiting.

本发明实施例中所述的场景(scenario)信息至少包括用户浏览网页时的URL(Uniform/Universal Resource Locator,统一资源定位符)和网页内容,这里的网页内容即是HTML(Hyper Text Mark-up Language,超文本标记语言)源代码;此外所述场景信息还可以包括IP(Internet Protocol,网际协议)地址、浏览器类型、用户上网设备类型或者用户的地理位置等关于用户使用该网页应用的更多的信息。The scene (scenario) information described in the embodiment of the present invention at least includes the URL (Uniform/Universal Resource Locator, Uniform Resource Locator) and webpage content when the user browses the webpage, and the webpage content here is HTML (Hyper Text Mark-up Language, hypertext markup language) source code; In addition, the scene information can also include IP (Internet Protocol, Internet Protocol) address, browser type, user's Internet access device type or user's geographical location, etc. much information.

在实际应用中,当用户在客户端的浏览访问网页时,由混搭服务器从客户端的浏览器获取到所述浏览器的用户正在访问的统一资源定位符及网页内容,这些当前场景信息可以帮助混搭服务器获取到用户可能感兴趣的其他web应用的功能,或者获知与当前场景的web应用较为相关的其他web应用。例如,从上述场景一中获取到与当前场景信息较为相关的能够展示富士通的最新新闻的web应用。In practical applications, when a user browses and visits a webpage on the client side, the mashup server obtains the URL and webpage content that the user of the browser is visiting from the client's browser. These current scene information can help the mashup server Functions of other web applications that may be of interest to the user are obtained, or other web applications that are relatively related to the web application in the current scene are learned. For example, a web application that is relatively relevant to the current scene information and can display the latest news of Fujitsu is obtained from the above scene one.

在本发明实施例中混搭服务器具体也可以通过接收由所述浏览器的插件发送的XML(可扩展标记语言,Extensible Markup Language)格式的场景信息文件来获取当前场景信息,所述插件获取场景信息文件的方式可以为:采集所述浏览器上正在访问的统一资源定位符及对应的网页内容;将所述统一资源定位符及对应的网页内容组成XML格式的场景信息文件(scenario_xml)。In the embodiment of the present invention, the mashup server can also obtain the current scene information by receiving the scene information file in XML (Extensible Markup Language) format sent by the plug-in of the browser, and the plug-in obtains the scene information The way of the file may be: collect the URL being accessed on the browser and the corresponding webpage content; compose the URL and the corresponding webpage content into a scenario information file (scenario_xml) in XML format.

浏览器的插件采集当前场景信息的详细过程在下一个实施例中将会详细介绍。The detailed process of collecting the current scene information by the plug-in of the browser will be introduced in detail in the next embodiment.

S102:依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配。S102: According to the current scene information, it is sequentially judged whether all condition and action pairs stored in the mashup database match the current scene information.

在本发明实施例中可以采用混搭数据库来存储条件和动作对的二元组。该混搭数据库中所保存的每个条目都是一个二元组,该二元组由条件(condition)和动作(action)组成。其中的条件是一个条件服务器的URI地址,而动作则由动作名称、动作描述和动作服务器的URI组成。In the embodiment of the present invention, a mashup database may be used to store pairs of conditions and actions. Each item stored in the mashup database is a two-tuple, and the two-tuple is composed of a condition (condition) and an action (action). The condition is the URI address of a condition server, and the action is composed of the action name, action description and the URI of the action server.

在S102中混搭服务器会检查混搭数据库中的所有条目,并按照混搭数据库中保存的所有条件和动作对判断与当前场景信息是否匹配。In S102, the mashup server checks all entries in the mashup database, and judges whether it matches the current scene information according to all condition and action pairs stored in the mashup database.

在实际应用中,混搭服务器首先向每个条件服务器的URL指示的所有条件服务器发出请求来检查当前是否应该给用户提供所对应的混搭功能,然后把场景信息文件分发给各个条件服务器,各个条件服务器再根据场景信息文件中的当前场景信息来判断所对应的动作是不是应该在当前场景下显示给用户。In practical applications, the mashup server first sends a request to all conditional servers indicated by the URL of each conditional server to check whether the corresponding mashup function should be provided to the user at present, and then distributes the scene information file to each conditional server, each conditional server Then judge whether the corresponding action should be displayed to the user in the current scene according to the current scene information in the scene information file.

参考图2所示,所述步骤S102的具体实现可以包括如下步骤:Referring to Fig. 2, the specific implementation of the step S102 may include the following steps:

S201:遍历所述混搭数据库中保存的所有条件和动作对,所述条件和动作对中的条件为条件服务器的统一资源定位符。S201: Traversing all condition and action pairs stored in the mashup database, where the condition in the condition and action pair is the Uniform Resource Locator of the condition server.

混搭服务器首先遍历所述混搭数据库中的所有条件和动作对,所述条件为条件服务器的URL地址,因此,混搭服务器遍历所述条件和动作对之后,就能够获知各个条件服务器的地址。The mashup server first traverses all the condition-action pairs in the mashup database, and the conditions are the URL addresses of the condition servers. Therefore, after the mashup server traverses the condition-action pairs, it can learn the address of each condition server.

需要说明的是,所述条件服务器可以采用软件的方式实现,例如采用程序代码的方式,在这种情况下条件服务器即是一段可执行代码,该可执行代码集成到混搭服务器上执行;条件服务器也可以采用硬件方式实现,例如作为与混搭服务器相连的一个独立功能实体,或者通过在混搭服务器上集成功能实体的方式。条件服务器的实现方式可以有多种,因为其实现方式不影响本发明的实现,所以本发明实施例中不限定条件服务器的实现方式。It should be noted that the conditional server can be realized by means of software, such as program code, in which case the conditional server is a section of executable code, and the executable code is integrated into the mashup server for execution; the conditional server It can also be realized by hardware, for example, as an independent functional entity connected to the mashup server, or by integrating functional entities on the mashup server. There are many ways to implement the condition server, because the way of implementation does not affect the realization of the present invention, so the embodiment of the present invention does not limit the way to realize the condition server.

S202:将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器。S202: Send the current scene information to each condition server corresponding to the uniform resource locator of the condition server.

在实际应用中,混搭服务器得到条件服务器的地址之后,就按照所述条件服务器的URL分别将XML格式的场景信息文件发送给各个条件服务器。In practical applications, after the mashup server obtains the address of the condition server, it sends the scene information file in XML format to each condition server according to the URL of the condition server.

S203:条件服务器根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断所述当前场景信息是否匹配。S203: The condition server judges whether the current scene information matches according to at least one of the URL included in the current scene information and the web page content.

条件服务器接收到场景信息文件之后,将根据XML格式的场景信息文件中的URL地址和网页内容中的至少一个,来判断条件和动作对中的动作与当前场景信息是否匹配。每个条件服务器的结果都只需要向混搭服务器返回是或否的结果即可。如果返回是,说明该条件服务器的URL对应的动作应该在浏览器上进行显示,否则,则说明对应的动作不应该在浏览器上显示。After the condition server receives the scene information file, it will judge whether the action in the condition-action pair matches the current scene information according to at least one of the URL address and the webpage content in the scene information file in XML format. The result of each conditional server simply needs to return a yes or no result to the mashup server. If yes, it means that the action corresponding to the URL of the conditional server should be displayed on the browser; otherwise, it means that the corresponding action should not be displayed on the browser.

S103:根据判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作。S103: Generate an action list according to the judgment result, where the action list includes actions in pairs of conditions and actions matching the current scene information.

混搭服务器在接收到各个条件服务器返回的结果时,将根据判断结果生成动作列表,该动作列表中包括与所述当前场景信息匹配的条件和动作对中的动作,即是需要在浏览器上显示的所有动作。例如,对于上述场景一,则对应的动作可能是显示富士通最新消息,等等。When the mashup server receives the results returned by each condition server, it will generate an action list according to the judgment results. The action list includes the actions in the pair of conditions and actions that match the current scene information, that is, the actions that need to be displayed on the browser. all actions. For example, for the above scenario 1, the corresponding action may be to display the latest news from Fujitsu, and so on.

S104:将所述动作列表中的动作在所述浏览器上进行展示。S104: Display the actions in the action list on the browser.

混搭服务器在把动作列表中与用户访问的当前场景信息匹配的动作在浏览器上进行展示,其目的是为了方便用户在看到这些匹配的动作之后选择自己感兴趣或者需要的动作进行web应用的集成。请参考图3所示,示出了一个在浏览器上展示匹配的动作列表的具体例子的界面示意图。The mashup server displays the actions in the action list that match the current scene information accessed by the user on the browser. The purpose is to facilitate the user to choose the action he is interested in or needs for web application after seeing these matching actions. integrated. Please refer to FIG. 3 , which shows a schematic interface diagram of a specific example of displaying a matching action list on a browser.

S105:响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。S105: In response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.

当用户根据展示出的动作列表选择了一个或者多个动作之后,混搭服务器再响应用户的选择在浏览器上集成用户所选择的动作对应的web应用。After the user selects one or more actions according to the displayed action list, the mashup server responds to the user's selection and integrates the web application corresponding to the action selected by the user on the browser.

总之,通过本发明实施例提供的上述方法,能够使混搭服务器在获取到客户端的浏览器上用户正在访问的URL地址及网页内容等当前场景信息之后,再根据当前场景信息来判断是否需要在用户访问的网页上集成相关的web应用,这样就能避免现有技术中当前场景信息只能固定地与某个web应用集成,采用本发明实施例的技术方案,可以让用户来自主选择在当前访问的页面上集成哪个或哪些web应用;并且从用户角度来看,也可以在自己访问的网页所涉及到的不同场景来满足不同的功能需求。In a word, through the above-mentioned method provided by the embodiment of the present invention, the mashup server can determine whether it is necessary to use the current scene information based on the current scene information after obtaining the current scene information such as the URL address and the web page content that the user is visiting on the browser of the client. Integrate relevant web applications on the visited web pages, so that the current scene information in the prior art can only be fixedly integrated with a certain web application. By adopting the technical solution of the embodiment of the present invention, the user can independently choose the current scene information in the current visit. Which or which web applications are integrated on the page; and from the user's point of view, different functional requirements can also be met in different scenarios involved in the webpages they visit.

针对上述问题,具体的,参见图4,本发明实施例提供了另一种集成web应用的方法,具体可以包括:In view of the above problems, specifically, referring to FIG. 4, the embodiment of the present invention provides another method for integrating web applications, which may specifically include:

S401:客户端的浏览器的插件采集所述浏览器上正在访问的统一资源定位符及对应的网页内容。S401: The browser plug-in of the client collects the URL being accessed on the browser and the corresponding web page content.

在本实施例中,客户端上集成浏览器的插件,由插件采集浏览器上用户正在访问的统一资源定位符及对应的网页内容,可选的,也采集浏览器类型、用户设备类型、用户的地理位置信息等关于用户使用该网络应用的其他场景信息。In this embodiment, a browser plug-in is integrated on the client, and the URL and the corresponding web page content that the user is visiting on the browser are collected by the plug-in. Optionally, the browser type, user device type, user Other scene information about the user's use of the network application, such as geographical location information.

S402:所述插件再将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件。S402: The plug-in then forms the URL and the corresponding web page content into a scene information file in an extensible markup language format.

在本步骤中,插件可以将获取到的当前场景信息组成XML格式的场景信息文件,并将该场景信息文件发送给混搭服务器,以便混搭服务器从该场景信息文件中获取当前场景信息。In this step, the plug-in can form the acquired current scene information into a scene information file in XML format, and send the scene information file to the mashup server, so that the mashup server can obtain the current scene information from the scene information file.

在实际应用中的一个具体场景信息文件的例子可以如下所示:An example of a specific scene information file in an actual application may be as follows:

需要说明的是,上述场景信息文件的内容只是一个具体例子,在实际应用中,场景信息文件与具体场景相关所以有所不同,因此上述例子不应理解为对本发明实施例的限定。It should be noted that the content of the above-mentioned scene information file is only a specific example. In practical applications, the scene information files are related to specific scenes, so they are different. Therefore, the above examples should not be construed as limiting the embodiment of the present invention.

S403:混搭服务器从所述浏览器的插件发送的可扩展标记语言格式的场景信息文件获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容。S403: The mashup server acquires current scene information from the scene information file in Extensible Markup Language format sent by the browser plug-in, and the current scene information includes at least the Uniform Resource Locator and webpage content that the browser user is visiting. .

混搭服务器再从插件发来的场景信息文件获取用户正在访问的当前场景信息,该当前场景信息至少应该包括所述浏览器的用户正在访问的统一资源定位符及网页内容,进一步的,还可以包括插件采集到的其他场景信息。The mashup server obtains the current scene information that the user is visiting from the scene information file sent by the plug-in. The current scene information should at least include the URL and the webpage content that the user of the browser is visiting. Further, it can also include Other scene information collected by the plug-in.

S404:混搭服务器遍历所述混搭数据库中保存的所有条件和动作对,所述条件和动作对中的条件为条件服务器的统一资源定位符。S404: The mashup server traverses all condition-action pairs stored in the mashup database, where the condition in the condition-action pair is the uniform resource locator of the condition server.

在实际应用中,条件和动作对与具体场景相关,以下是条件和动作对一个具体例子:In practical applications, condition and action pairs are related to specific scenarios. The following is a specific example of condition and action pairs:

Figure BSA00000498197200082
Figure BSA00000498197200082

Figure BSA00000498197200091
Figure BSA00000498197200091

在上述例子中,条件和动作对中的条件(条件服务器的URL)为:http://condition_server1.com/fujitsu,动作包括动作名称“Fujitsu news”,以及动作描述“Shows the latest news about Fujitsu from the official Fujitsuhomepage”,以及动作服务器的URL地址“http://action_server1.com/fujitsu”。In the above example, the condition (the URL of the condition server) in the condition and action pair is: http://condition_server1.com/fujitsu, the action includes the action name "Fujitsu news", and the action description "Shows the latest news about Fujitsu from the official Fujitsuhomepage", and the URL address of the action server "http://action_server1.com/fujitsu".

S405:混搭服务器将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器。S405: The mashup server sends the current scene information to each condition server corresponding to the uniform resource locator of the condition server.

本步骤中混搭服务器向条件服务器发送当前场景信息的目的,是为了由条件服务器判断当前场景信息与条件和动作对是否匹配。In this step, the purpose of the mashup server sending the current scene information to the condition server is for the condition server to determine whether the current scene information matches the condition-action pair.

S406:条件服务器根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断所述当前场景信息是否匹配。S406: The condition server judges whether the current scene information matches according to at least one of the URL included in the current scene information and the web page content.

条件服务器会接下来根据接收到的场景信息来判断所对应的动作是不是应该在当前场景下显示给用户。在实际应用中,条件服务器可以根据具体场景设置不同的判断逻辑,以下是条件服务器的判断逻辑的一个具体例子,该例子用来判断当前场景下是否需要混搭“添加富士通官网的富士通新闻”的功能:The condition server will then judge whether the corresponding action should be displayed to the user in the current scene according to the received scene information. In practical applications, the conditional server can set different judgment logics according to specific scenarios. The following is a specific example of the judgment logic of the conditional server. This example is used to judge whether it is necessary to mix and match the function of "Adding Fujitsu News from Fujitsu Official Website" in the current scenario. :

把场景信息中的URL信息分解成远程主机地址和查询参数;Decompose the URL information in the scene information into the remote host address and query parameters;

如果远程主机是搜索引擎google,并且查询参数中含有关键字富士通或者Fujitsu,返回真;If the remote host is the search engine google, and the query parameter contains the keyword Fujitsu or Fujitsu, return true;

如果HTML源代码中关键字富士通出现的次数超过20次,返回真;If the keyword Fujitsu appears more than 20 times in the HTML source code, return true;

否则,返回假。Otherwise, return false.

S407:混搭服务器根据判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;其中所述动作列表中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址。S407: The mashup server generates an action list according to the judgment result, the action list includes actions in the pair of conditions and actions that match the current scene information; the actions in the action list include action names, action descriptions, and actions of the action server A Uniform Resource Locator, where the Uniform Resource Locator of the action server indicates the add address of the mashup script of the web application corresponding to the action.

当所有的条件服务器都向混搭服务器返回真或假的判断结果之后,根据条件服务器返回的真和假的情况,混搭服务器会给出一个混搭功能列表即是动作列表(action list),在该动作列表中包括的动作最终会展示给用户。需要说明的是,该动作列表中仅包括条件服务器返回的真的时候所对应的动作。When all condition servers return true or false judgment results to the mashup server, the mashup server will give a mashup function list (action list) according to the true or false status returned by the condition server. The actions included in the list will eventually be shown to the user. It should be noted that the action list only includes actions corresponding to when the condition server returns true.

S408:混搭服务器将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示。S408: The mashup server displays the action names and action descriptions corresponding to the actions in the action list on the browser.

混搭服务器向浏览器返回动作列表之后,混搭服务器可以采用一个下拉框向用户显示动作名称,并通过提示框显示所对应的动作描述,便于用户从这个下拉框中选择一个感兴趣的动作来执行。After the mashup server returns the action list to the browser, the mashup server can use a drop-down box to display the action name to the user, and display the corresponding action description through a prompt box, so that the user can choose an interested action from the drop-down box to execute.

S409:混搭服务器响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器。S409: The mashup server sends the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user in response to the browser.

当用户选择了一个或者一些动作时,混搭服务器响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器。具体的,可以由浏览器的插件把XML格式的场景信息文件发送给用户选择的动作对应的动作服务器。When the user selects one or some actions, the mashup server sends the current scene information to the action server corresponding to the URL of the action server in the action selected by the user in response to the browser. Specifically, the browser plug-in may send the scene information file in XML format to the action server corresponding to the action selected by the user.

需要说明的是,所述动作服务器可以采用软件的方式实现,例如采用程序代码的方式,在这种情况下动作服务器即是一段可执行代码,该可执行代码集成到混搭服务器上执行;动作服务器也可以采用硬件方式实现,例如作为与混搭服务器相连的一个独立功能实体,或者通过在混搭服务器上集成功能实体的方式。动作服务器的实现方式可以有多种,因为其实现方式不影响本发明的实现,所以本发明实施例中不限定动作服务器的实现方式。It should be noted that the action server can be implemented in the form of software, for example, in the form of program code. In this case, the action server is a piece of executable code, which is integrated into the mashup server for execution; the action server It can also be realized by hardware, for example, as an independent functional entity connected to the mashup server, or by integrating functional entities on the mashup server. There may be many ways to implement the action server, because the way of implementation does not affect the realization of the present invention, so the embodiment of the present invention does not limit the way of implementing the action server.

S410:所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。S410: The action server returns the mashup script of the web application corresponding to the selected action, so that it can be injected into the current web application of the browser on the browser and execute the injected mashup script, thereby A corresponding web application is integrated on the browser.

动作服务器会返回一段用来添加相应功能的混搭脚本(mashupscript)给浏览器的插件,执行所述混搭脚本即可集成相应的web应用。所述混搭脚本可以加载到浏览器中并在浏览器中执行,这样新的功能就在本步骤中通过该混搭脚本添加到了当前的web应用中,实现了集成web应用的发明目的。The action server will return a mashup script for adding corresponding functions to the browser plug-in, and the corresponding web application can be integrated by executing the mashup script. The mashup script can be loaded into the browser and executed in the browser, so that the new function is added to the current web application through the mashup script in this step, realizing the invention purpose of integrating the web application.

总之,通过本发明实施例提供的上述第二种集成web应用的方法,可以由条件服务器来依次判断当前场景信息与条件和动作对是否匹配,并在用户选择了相应的动作之后,由动作服务器向浏览器返回混搭脚本,触发执行混搭脚本即可实现web应用的集成,实现由用户自主选择在当前web应用中集成的其他web应用,满足了用户在某一个应用场景下集成其他新功能的需求,因此本发明实施例更具有通用性且在应用上更具广泛性。In short, through the above-mentioned second method for integrating web applications provided by the embodiment of the present invention, the condition server can sequentially judge whether the current scene information matches the condition and action pair, and after the user selects the corresponding action, the action server Return the mashup script to the browser, trigger the execution of the mashup script to realize the integration of web applications, realize the integration of other web applications selected by the user in the current web application, and meet the needs of users to integrate other new functions in a certain application scenario , so the embodiments of the present invention are more versatile and more extensive in application.

与本发明实施例提供的集成web应用的方法第一实施例相对应,本发明实施例还提供了一种集成web应用的混搭服务器,参见图5,该混搭服务器具体可以包括:Corresponding to the first embodiment of the method for integrating web applications provided by the embodiment of the present invention, the embodiment of the present invention also provides a mashup server for integrating web applications. Referring to FIG. 5 , the mashup server may specifically include:

获取场景信息模块501,用于从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容。The obtainingscene information module 501 is configured to obtain current scene information from the browser of the client, the current scene information at least including the URL and web page content that the browser user is visiting.

本发明实施例中所述的场景(scenario)信息至少包括用户浏览网页时的URL(Uniform/Universal Resource Locator,统一资源定位符)和网页内容,这里的网页内容即是HTML(Hyper Text Mark-up Language,超文本标记语言)源代码;此外所述场景信息还可以包括IP(Internet Protocol,网际协议)地址、浏览器类型、用户上网设备类型或者用户的地理位置等关于用户使用该网页应用的更多的信息。The scene (scenario) information described in the embodiment of the present invention at least includes the URL (Uniform/Universal Resource Locator, Uniform Resource Locator) and webpage content when the user browses the webpage, and the webpage content here is HTML (Hyper Text Mark-up Language, hypertext markup language) source code; In addition, the scene information can also include IP (Internet Protocol, Internet Protocol) address, browser type, user's Internet access device type or user's geographical location, etc. much information.

所述获取场景信息模块501在实际应用中具体可以配置为:通过接收由所述浏览器的插件发送的可扩展标记语言格式的场景信息文件获取当前场景信息,所述插件获取场景信息文件的方式可以为:采集所述浏览器上正在的统一资源定位符及对应的网页内容;将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件。The acquiringscene information module 501 may specifically be configured in practical applications to: acquire the current scene information by receiving the scene information file in Extensible Markup Language format sent by the plug-in of the browser; It may be: collecting the current uniform resource locator and corresponding webpage content on the browser; forming the scene information file in extensible markup language format by the uniform resource locator and corresponding webpage content.

判断模块502,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配。The judgingmodule 502 is configured to sequentially judge whether all condition and action pairs stored in the mashup database match the current scene information according to the current scene information.

在本发明实施例中可以采用混搭数据库来存储条件和动作对的二元组。该混搭数据库中所保存的每个条目都是一个二元组,该二元组由条件(condition)和动作(action)组成。其中的条件是一个条件服务器的URI地址,而动作则由动作名称、动作描述和动作服务器的URI组成。In the embodiment of the present invention, a mashup database can be used to store the pair of conditions and actions. Each item stored in the mashup database is a two-tuple, and the two-tuple is composed of a condition (condition) and an action (action). The condition is the URI address of a condition server, and the action is composed of the action name, action description and the URI of the action server.

所述判断模块502在实际应用中具体可以包括:遍历子模块和发送子模块,所述遍历子模块用于遍历所述混搭数据库中保存的所有条件和动作对;所述条件和动作对中的条件为条件服务器的统一资源定位符;所述发送子模块,用于将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;以便于条件服务器根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断当前场景信息是否匹配。The judgingmodule 502 may specifically include in practical applications: a traversal submodule and a sending submodule, the traversal submodule is used to traverse all condition and action pairs stored in the mashup database; The condition is the uniform resource locator of the condition server; the sending submodule is used to send the current scene information to each condition server corresponding to the uniform resource locator of the condition server; At least one of the uniform resource locator and the content of the webpage, and determine whether the current scene information matches.

生成动作列表模块503,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作。The generatingaction list module 503 is configured to generate an action list according to the judgment result of the judging module, the action list includes the conditions matching the current scene information and the actions in the action pair.

生成动作列表模块503在接收到各个条件服务器返回的结果时,将根据判断结果生成动作列表,该动作列表中包括与所述当前场景信息匹配的条件和动作对中的动作,即是需要在浏览器上显示的所有动作。When the actionlist generation module 503 receives the results returned by each condition server, it will generate an action list according to the judgment result. all actions displayed on the monitor.

展示动作模块504,用于将所述动作列表中的动作在所述浏览器上进行展示。Thedisplay action module 504 is configured to display the actions in the action list on the browser.

展示动作模块504在把动作列表中与用户访问的当前场景信息匹配的动作在浏览器上进行展示,其目的是为了方便用户在看到这些匹配的动作之后选择自己感兴趣或者需要的动作进行web应用的集成。Thedisplay action module 504 displays the actions in the action list that match the current scene information accessed by the user on the browser. Application integration.

集成模块505,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。The integration module 505 is configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.

当用户根据展示出的动作列表选择了一个或者多个动作之后,混搭服务器再响应用户的选择在浏览器上集成用户所选择的动作对应的web应用。After the user selects one or more actions according to the displayed action list, the mashup server responds to the user's selection and integrates the web application corresponding to the action selected by the user on the browser.

在本发明实施例中,所述动作列表中的动作可以包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;其中所述展示动作模块具体可以配置为:将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示。In this embodiment of the present invention, the actions in the action list may include an action name, an action description, and a uniform resource locator of an action server, and the uniform resource locator of the action server indicates the mashup script of the web application corresponding to the action address; wherein the display action module may specifically be configured to: display the action names and action descriptions corresponding to the actions in the action list on the browser.

则所述集成模块505具体可以配置为:响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。Then the integration module 505 may specifically be configured as: in response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the selected action server. The mashup script of the web application corresponding to the action of the browser, so that it is injected into the current web application of the browser on the browser and executes the injected mashup script, thereby integrating the corresponding web application on the browser .

通过本发明实施例提供的上述混搭服务器,能够使混搭服务器在获取到客户端的浏览器上用户正在访问的URL地址及网页内容等当前场景信息之后,再根据当前场景信息来判断是否需要在用户访问的网页上集成相关的web应用,这样就能避免现有技术中当前场景信息只能固定地与某个web应用集成的现象,采用本发明实施例的混搭服务器,可以让用户来自主选择在当前访问的页面上集成哪个或哪些web应用;并且从用户角度来看,也可以在自己访问的网页所涉及到的不同场景来满足不同的功能需求。Through the above-mentioned mashup server provided by the embodiment of the present invention, after the mashup server obtains the current scene information such as the URL address and the web page content that the user is visiting on the browser of the client, it can then judge whether it is necessary to access the web page based on the current scene information. Integrate related web applications on the webpage, so as to avoid the phenomenon that the current scene information can only be fixedly integrated with a certain web application in the prior art, and the mashup server in the embodiment of the present invention can allow users to independently select the current scene information. Which web application or applications are integrated on the visited page; and from the user's point of view, different functional requirements can also be met in different scenarios involved in the visited webpage.

与本发明实施例提供的集成web应用的方法及服务器相对应,本发明实施例还提供了一种集成web应用的系统,参考图6所示,所述系统具体可以包括客户端601和混搭服务器602;Corresponding to the method and server for integrating web applications provided in the embodiment of the present invention, the embodiment of the present invention also provides a system for integrating web applications, as shown in FIG. 6 , the system may specifically include aclient 601 and amashup server 602;

所述客户端601包括浏览器6011,具体用于向混搭服务器发送当前场景信息;所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;Theclient 601 includes abrowser 6011, which is specifically used to send current scene information to the mashup server; the current scene information includes at least the URL and web page content that the browser user is visiting;

所述混搭服务器具体可以包括:The mashup server specifically may include:

获取场景信息模块501,用于从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;The obtainingscene information module 501 is used to obtain current scene information from the browser of the client, and the current scene information includes at least the uniform resource locator and webpage content that the user of the browser is visiting;

判断模块502,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;A judgingmodule 502, configured to sequentially judge whether all condition and action pairs stored in the mashup database match the current scene information according to the current scene information;

生成动作列表模块503,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;Generating anaction list module 503, configured to generate an action list according to the judgment result of the judging module, the action list includes conditions matching the current scene information and actions in the action pair;

展示动作模块504,用于将所述动作列表中的动作在所述浏览器上进行展示;Adisplay action module 504, configured to display the actions in the action list on the browser;

集成模块505,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。The integration module 505 is configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.

需要说明的是,参考图7所示,所述客户端的浏览器6011具体可以包括:It should be noted that, referring to FIG. 7 , thebrowser 6011 of the client may specifically include:

采集模块701,用于采集所述浏览器上正在访问的统一资源定位符及对应的网页内容;并将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件;The collection module 701 is used to collect the Uniform Resource Locator and the corresponding webpage content being accessed on the browser; and form the scene information file of the Extensible Markup Language format by the Uniform Resource Locator and the corresponding webpage content;

发送模块702,用于向混搭服务器发送所述场景信息文件。The sending module 702 is configured to send the scene information file to the mashup server.

还需要说明的是,所述浏览器6011在实际应用中,也包括与混搭服务器的展示动作模块504对应的展示模块,用于配合所述展示动作模块504将最终动作列表中的动作在浏览器上展示以使用户能够看到该动作列表;以及与所述集成模块505对应的集成web应用模块,用于在用户选择了一个或者多个动作时,将所选择的动作对应的web应用集成在浏览器上,使用户后续可以使用新集成的web应用的新功能。It should also be noted that, in practical applications, thebrowser 6011 also includes a display module corresponding to thedisplay action module 504 of the mashup server, for cooperating with thedisplay action module 504 to display the actions in the final action list in the browser displayed above so that the user can see the action list; and the integrated web application module corresponding to the integration module 505, used to integrate the web application corresponding to the selected action when the user selects one or more actions On the browser, the user can subsequently use the new functions of the newly integrated web application.

所述系统的混搭服务器中的获取场景信息模块501具体可以配置为:通过接收由所述浏览器的插件发送的可扩展标记语言格式的场景信息文件获取当前场景信息,所述插件获取场景信息文件的方式为:采集所述浏览器上正在访问的统一资源定位符及对应的网页内容;将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件。The acquisitionscene information module 501 in the mashup server of the system can be specifically configured to: obtain the current scene information by receiving the scene information file in the extensible markup language format sent by the plug-in of the browser, and the plug-in obtains the scene information file The method is as follows: collecting the URL being accessed on the browser and the corresponding webpage content; and composing the URL and the corresponding webpage content into a scene information file in Extensible Markup Language format.

所述系统的混搭服务器中的判断模块502包括:遍历子模块,用于遍历所述混搭数据库中保存的所有条件和动作对,所述条件和动作对中的条件为条件服务器的统一资源定位符;发送子模块,用于将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;则所述系统还可以包括:条件服务器,用于根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断所述当前场景信息是否匹配。The judgingmodule 502 in the mashup server of the system includes: a traversal submodule for traversing all condition and action pairs stored in the mashup database, and the condition in the condition and action pair is the Uniform Resource Locator of the condition server The sending submodule is used to send the current scene information to each condition server corresponding to the uniform resource locator of the condition server; At least one of the resource locator and the webpage content, and judging whether the current scene information matches.

所述系统还可以包括动作服务器;所述条件和动作对中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;其中所述展示模块具体可以配置为:将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示;The system may also include an action server; the action in the condition and action pair includes an action name, an action description, and a uniform resource locator of the action server, and the uniform resource locator of the action server indicates the web application corresponding to the action The add address of the mashup script; wherein the display module can be specifically configured to: display the action names and action descriptions corresponding to the actions in the action list on the browser;

则所述集成模块具体可以配置为:响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。Then the integration module can be specifically configured as: in response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the selected action server. Action the mashup script of the corresponding web application, so as to inject it into the web application running in the browser on the browser and execute the injected mashup script, so as to integrate the corresponding web application on the browser.

当然,在实际应用中并不限于以上几种具体的情况,本领域技术人员还可以根据实际需要对混搭服务器和系统灵活设置。Of course, the actual application is not limited to the above specific situations, and those skilled in the art can also flexibly configure the mashup server and system according to actual needs.

另外,还应该指出的是,上述系列处理和装置也可以通过软件和/或固件实现。在通过软件和/或固件实现的情况下,从存储介质或网络向具有专用硬件结构的计算机,例如图8所示的通用个人计算机1200安装构成该软件的程序,该计算机在安装有各种程序时,能够执行各种功能等等。In addition, it should also be noted that the series of processes and devices described above may also be implemented by software and/or firmware. In the case of realization by software and/or firmware, a program constituting the software is installed from a storage medium or a network to a computer having a dedicated hardware configuration, such as a general-purpose personal computer 1200 shown in FIG. , can perform various functions and so on.

在图8中,中央处理单元(CPU)801根据只读存储器(ROM)802中存储的程序或从存储部分808加载到随机存取存储器(RAM)803的程序执行各种处理。在RAM803中,也根据需要存储当CPU 801执行各种处理等等时所需的数据。In FIG. 8 , a central processing unit (CPU) 801 executes various processes according to programs stored in a read only memory (ROM) 802 or loaded from a storage section 808 to a random access memory (RAM) 803 . In the RAM 803, data required when the CPU 801 executes various processing and the like is also stored as necessary.

CPU 801、ROM802和RAM 803经由总线804彼此连接。输入/输出接口805也连接到总线804。The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. The input/output interface 805 is also connected to the bus 804 .

下述部件连接到输入/输出接口805:输入部分806,包括键盘、鼠标等等;输出部分807,包括显示器,比如阴极射线管(CRT)、液晶显示器(LCD)等等,和扬声器等等;存储部分808,包括硬盘等等;和通信部分809,包括网络接口卡比如LAN卡、调制解调器等等。通信部分809经由网络比如因特网执行通信处理。The following components are connected to the input/output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; The storage section 808 includes a hard disk and the like; and the communication section 809 includes a network interface card such as a LAN card, a modem, and the like. The communication section 809 performs communication processing via a network such as the Internet.

根据需要,驱动器810也连接到输入/输出接口805。可拆卸介质811比如磁盘、光盘、磁光盘、半导体存储器等等根据需要被安装在驱动器810上,使得从中读出的计算机程序根据需要被安装到存储部分808中。A drive 810 is also connected to the input/output interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read therefrom is installed into the storage section 808 as necessary.

在通过软件实现上述系列处理的情况下,从网络比如因特网或存储介质比如可拆卸介质811安装构成软件的程序。In the case of realizing the above-described series of processing by software, the programs constituting the software are installed from a network such as the Internet or a storage medium such as the removable medium 811 .

本领域的技术人员应当理解,这种存储介质不局限于图8所示的其中存储有程序、与设备相分离地分发以向用户提供程序的可拆卸介质811。可拆卸介质811的例子包含磁盘(包含软盘(注册商标))、光盘(包含光盘只读存储器(CD-ROM)和数字通用盘(DVD))、磁光盘(包含迷你盘(MD)(注册商标))和半导体存储器。或者,存储介质可以是ROM 802、存储部分808中包含的硬盘等等,其中存有程序,并且与包含它们的设备一起被分发给用户。Those skilled in the art should understand that such a storage medium is not limited to the removable medium 811 shown in FIG. 8 in which the program is stored and distributed separately from the device to provide the program to the user. Examples of the removable media 811 include magnetic disks (including floppy disks (registered trademark)), optical disks (including compact disk read only memory (CD-ROM) and digital versatile disks (DVD)), magneto-optical disks (including )) and semiconductor memory. Alternatively, the storage medium may be a ROM 802, a hard disk contained in the storage section 808, etc., in which the programs are stored and distributed to users together with devices containing them.

还需要指出的是,执行上述系列处理的步骤可以自然地按照说明的顺序按时间顺序执行,但是并不需要一定按照时间顺序执行。某些步骤可以并行或彼此独立地执行。It should also be pointed out that the steps for executing the above series of processes can naturally be executed in chronological order according to the illustrated order, but it does not need to be executed in chronological order. Certain steps may be performed in parallel or independently of each other.

虽然已经详细说明了本发明及其优点,但是应当理解在不脱离由所附的权利要求所限定的本发明的精神和范围的情况下可以进行各种改变、替代和变换。而且,本发明实施例的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Although the present invention and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made hereto without departing from the spirit and scope of the invention as defined by the appended claims. Moreover, the terms "comprising", "comprising" or any other variation thereof in the embodiments of the present invention are intended to cover a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Including other elements not expressly listed, or also including elements inherent in such process, method, article or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

关于包括以上实施例的实施方式,还公开下述附记:Regarding the implementation manner comprising the above embodiments, the following additional notes are also disclosed:

附记1.一种集成web应用的方法,包括:Additional Note 1. A method for integrating web applications, comprising:

从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;Acquiring current scene information from the browser of the client, the current scene information at least including the URL and the webpage content that the user of the browser is visiting;

从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;Acquiring current scene information from the browser of the client, the current scene information at least including the URL and the webpage content that the user of the browser is visiting;

依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;Judging in turn whether all conditions and actions stored in the mashup database match the current scene information according to the current scene information;

根据判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;Generating an action list according to the judgment result, the action list includes actions in pairs of conditions and actions matching the current scene information;

将所述动作列表中的动作在所述浏览器上进行展示;displaying the actions in the action list on the browser;

响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。In response to the user selecting one or more actions through the browser, a web application corresponding to the selected actions is integrated on the browser.

附记2.根据附记1所述的方法,其中所述从客户端的浏览器获取当前场景信息的步骤包括:Supplementary Note 2. The method according to Supplementary Note 1, wherein the step of obtaining the current scene information from the browser of the client comprises:

通过接收由所述浏览器的插件发送的可扩展标记语言格式的场景信息文件获取当前场景信息,所述插件获取场景信息文件的方式为:采集所述浏览器上正在访问的统一资源定位符及对应的网页内容;将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件。The current scene information is obtained by receiving the scene information file in Extensible Markup Language format sent by the plug-in of the browser, and the method of obtaining the scene information file by the plug-in is: collecting the Uniform Resource Locator and Corresponding webpage content; combining the uniform resource locator and the corresponding webpage content into a scene information file in Extensible Markup Language format.

附记3.根据附记1所述的方法,其中所述依据所述当前场景信息依次判断混搭数据库中的所有条件和动作对与当前场景信息是否匹配的步骤,包括:Additional Note 3. The method according to Additional Note 1, wherein the step of sequentially judging whether all condition and action pairs in the mashup database match the current scene information according to the current scene information includes:

遍历所述混搭数据库中保存的所有条件和动作对,所述条件和动作对中的条件为条件服务器的统一资源定位符;Traversing all condition and action pairs stored in the mashup database, the condition in the condition and action pair is the Uniform Resource Locator of the condition server;

将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;sending the current scene information to each condition server corresponding to the uniform resource locator of the condition server;

条件服务器根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断所述当前场景信息是否匹配。The condition server judges whether the current scene information matches according to at least one of the URL included in the current scene information and the webpage content.

附记4.根据附记1所述的方法,其中所述动作列表中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;Supplementary Note 4. The method according to Supplementary Note 1, wherein the actions in the action list include action names, action descriptions, and uniform resource locators of action servers, and the uniform resource locators of the action servers indicate that they correspond to the actions The add address of the mashup script of the web application;

其中所述将所述动作列表中的动作在所述浏览器上进行展示的步骤包括:Wherein the step of displaying the actions in the action list on the browser comprises:

将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示;displaying the action names and action descriptions corresponding to the actions in the action list on the browser;

其中所述在所述浏览器上集成所选择的动作对应的web应用的步骤包括:Wherein the step of integrating the web application corresponding to the selected action on the browser includes:

响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。In response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the mashup script of the web application corresponding to the selected action, so that On the browser, it is injected into the current web application of the browser and the injected mashup script is executed, so as to integrate the corresponding web application on the browser.

附记5.根据附记1所述的方法,所述当前场景信息还包括客户端的网际协议地址、浏览器类型信息和客户端的设备信息中的一个或多个。Supplement 5. The method according to Supplement 1, the current scene information further includes one or more of the client's Internet Protocol address, browser type information, and client device information.

附记6.一种集成web应用的混搭服务器,包括:Additional note 6. A mashup server integrating web applications, comprising:

获取场景信息模块,用于从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的的用户正在访问统一资源定位符及网页内容;The obtaining scene information module is used to obtain the current scene information from the browser of the client, the current scene information at least includes that the user of the browser is accessing the uniform resource locator and the content of the webpage;

判断模块,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;A judging module, configured to sequentially judge whether all conditions and action pairs stored in the mashup database match the current scene information according to the current scene information;

生成动作列表模块,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;An action list generation module, configured to generate an action list according to the judgment result of the judgment module, the action list includes conditions matching the current scene information and actions in the action pair;

展示动作模块,用于将所述动作列表中的动作在所述浏览器上进行展示;a display action module, configured to display the actions in the action list on the browser;

集成模块,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。An integration module, configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.

附记7.根据附记6所述的混搭服务器,所述获取场景信息模块具体配置为:通过接收由所述浏览器的插件发送的可扩展标记语言格式的场景信息文件获取当前场景信息,所述插件获取场景信息文件的方式为:采集所述浏览器上正在的统一资源定位符及对应的网页内容;将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件。Additional Note 7. According to the mashup server described in Additional Note 6, the module for obtaining scene information is specifically configured to: obtain the current scene information by receiving the scene information file in Extensible Markup Language format sent by the plug-in of the browser, so The method for obtaining the scene information file by the plug-in is: collecting the current URL and the corresponding web page content on the browser; forming the scene information file in the extensible markup language format by the described URL and the corresponding web page content .

附记8.根据附记6所述的混搭服务器,所述判断模块包括:Additional Note 8. According to the mashup server described in Additional Note 6, the judgment module includes:

遍历子模块,用于遍历所述混搭数据库中保存的所有条件和动作对;所述条件和动作对中的条件为条件服务器的统一资源定位符;The traversal submodule is used to traverse all condition and action pairs stored in the mashup database; the condition in the condition and action pair is the Uniform Resource Locator of the condition server;

发送子模块,用于将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;以便于条件服务器根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断当前场景信息是否匹配。The sending sub-module is configured to send the current scene information to each condition server corresponding to the uniform resource locator of the condition server; , to determine whether the current scene information matches.

附记9.根据附记6所述的混搭服务器,其中所述动作列表中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;其中所述展示模块具体配置为:Supplement 9. The mashup server according to Supplement 6, wherein the actions in the action list include action names, action descriptions, and uniform resource locators of the action servers, and the uniform resource locators of the action servers represent the The add address of the mashup script of the corresponding web application; wherein the specific configuration of the display module is:

将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示;displaying the action names and action descriptions corresponding to the actions in the action list on the browser;

所述集成模块具体配置为:The specific configuration of the integrated module is:

响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。In response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the mashup script of the web application corresponding to the selected action, so that On the browser, it is injected into the current web application of the browser and the injected mashup script is executed, so as to integrate the corresponding web application on the browser.

附记10.一种集成web应用的系统,所述系统包括客户端和混搭服务器;Supplementary Note 10. A system for integrating web applications, said system comprising a client and a mashup server;

所述客户端包括浏览器,用于向混搭服务器发送当前场景信息;所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;The client includes a browser, which is used to send current scene information to the mashup server; the current scene information includes at least the Uniform Resource Locator and webpage content that the browser user is visiting;

所述混搭服务器包括:The mashup server includes:

获取场景信息模块,用于从所述客户端的浏览器获取所述当前场景信息;Obtaining a scene information module, configured to obtain the current scene information from the browser of the client;

判断模块,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;A judging module, configured to sequentially judge whether all conditions and action pairs stored in the mashup database match the current scene information according to the current scene information;

生成动作列表模块,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;An action list generation module, configured to generate an action list according to the judgment result of the judgment module, the action list includes conditions matching the current scene information and actions in the action pair;

展示动作模块,用于将所述动作列表中的动作在所述浏览器上进行展示;a display action module, configured to display the actions in the action list on the browser;

集成模块,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。An integration module, configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.

附记11.根据权利要求10所述的系统,所述浏览器具体包括:Additional note 11. The system according to claim 10, the browser specifically includes:

采集模块,用于采集所述浏览器上正在访问的统一资源定位符及对应的网页内容;并将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件;The collection module is used to collect the Uniform Resource Locator and the corresponding webpage content being accessed on the browser; and form the scene information file of the extensible markup language format by the uniform resource locator and the corresponding webpage content;

发送模块,用于向混搭服务器发送所述场景信息文件。A sending module, configured to send the scene information file to the mashup server.

附记12.根据权利要求10所述的系统,所述获取场景信息模块具体配置为:通过接收由所述浏览器的插件发送的可扩展标记语言格式的场景信息文件获取当前场景信息,所述插件获取场景信息文件的方式为:采集所述浏览器上正在访问的统一资源定位符及对应的网页内容;将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件。Additional note 12. The system according to claim 10, the module for obtaining scene information is specifically configured to: obtain the current scene information by receiving the scene information file in Extensible Markup Language format sent by the plug-in of the browser, the The way for the plug-in to obtain the scene information file is: to collect the Uniform Resource Locator and the corresponding web page content being accessed on the browser; to compose the scene information file in Extensible Markup Language format by the said Uniform Resource Locator and the corresponding web page content .

附记13.根据权利要求10所述的系统,所述判断模块包括:Additional note 13. The system according to claim 10, the judging module comprising:

遍历子模块,用于遍历所述混搭数据库中保存的所有条件和动作对,所述条件和动作对中的条件为条件服务器的统一资源定位符;The traversal submodule is used to traverse all condition and action pairs stored in the mashup database, the condition in the condition and action pair is the Uniform Resource Locator of the condition server;

发送子模块,用于将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;The sending submodule is used to send the current scene information to each condition server corresponding to the uniform resource locator of the condition server;

所述系统还包括:条件服务器,用于根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断所述当前场景信息是否匹配。The system further includes: a condition server, configured to determine whether the current scene information matches according to at least one of the URL and webpage content included in the current scene information.

附记14.根据权利要求10所述的系统,还包括动作服务器;所述条件和动作对中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;其中所述展示模块具体配置为:Additional note 14. The system according to claim 10, further comprising an action server; the action in the condition and action pair includes an action name, an action description, and a uniform resource locator of the action server, and the uniform resource location of the action server symbol represents the add address of the mashup script of the web application corresponding to the action; wherein the specific configuration of the display module is:

将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示;displaying the action names and action descriptions corresponding to the actions in the action list on the browser;

所述集成模块具体配置为:The specific configuration of the integrated module is:

响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。In response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the mashup script of the web application corresponding to the selected action, so that On the browser, it is injected into the current web application of the browser and the injected mashup script is executed, so as to integrate the corresponding web application on the browser.

Claims (10)

Translated fromChinese
1.一种集成web应用的方法,包括:1. A method for integrating web applications, comprising:从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;Acquiring current scene information from the browser of the client, the current scene information at least including the URL and the webpage content that the user of the browser is visiting;依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;Judging in turn whether all conditions and actions stored in the mashup database match the current scene information according to the current scene information;根据判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;Generating an action list according to the judgment result, the action list includes actions in pairs of conditions and actions matching the current scene information;将所述动作列表中的动作在所述浏览器上进行展示;displaying the actions in the action list on the browser;响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。In response to the user selecting one or more actions through the browser, a web application corresponding to the selected actions is integrated on the browser.2.根据权利要求1所述的方法,其中所述从客户端的浏览器获取当前场景信息的步骤包括:2. The method according to claim 1, wherein the step of obtaining the current scene information from the browser of the client comprises:通过接收由所述浏览器的插件发送的可扩展标记语言格式的场景信息文件获取当前场景信息,所述插件获取场景信息文件的方式为:采集所述浏览器上正在访问的统一资源定位符及对应的网页内容;将所述统一资源定位符及对应的网页内容组成可扩展标记语言格式的场景信息文件。The current scene information is obtained by receiving the scene information file in Extensible Markup Language format sent by the plug-in of the browser, and the method of obtaining the scene information file by the plug-in is: collecting the Uniform Resource Locator and Corresponding webpage content; combining the uniform resource locator and the corresponding webpage content into a scene information file in Extensible Markup Language format.3.根据权利要求1所述的方法,其中所述依据所述当前场景信息依次判断混搭数据库中的所有条件和动作对与当前场景信息是否匹配的步骤,包括:3. The method according to claim 1, wherein said step of judging in turn whether all conditions and actions in the mashup database match with the current scene information according to the current scene information comprises:遍历所述混搭数据库中保存的所有条件和动作对,所述条件和动作对中的条件为条件服务器的统一资源定位符;Traversing all condition and action pairs stored in the mashup database, the condition in the condition and action pair is the Uniform Resource Locator of the condition server;将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;sending the current scene information to each condition server corresponding to the uniform resource locator of the condition server;条件服务器根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断所述当前场景信息是否匹配。The condition server judges whether the current scene information matches according to at least one of the URL included in the current scene information and the webpage content.4.根据权利要求1所述的方法,其中所述动作列表中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;4. The method according to claim 1, wherein the actions in the action list include an action name, an action description, and a uniform resource locator of an action server, and the uniform resource locator of the action server indicates the web server corresponding to the action The add address of the application's mashup script;其中所述将所述动作列表中的动作在所述浏览器上进行展示的步骤包括:Wherein the step of displaying the actions in the action list on the browser comprises:将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示;displaying the action names and action descriptions corresponding to the actions in the action list on the browser;其中所述在所述浏览器上集成所选择的动作对应的web应用的步骤包括:Wherein the step of integrating the web application corresponding to the selected action on the browser includes:响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。In response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the mashup script of the web application corresponding to the selected action, so that On the browser, it is injected into the current web application of the browser and the injected mashup script is executed, so as to integrate the corresponding web application on the browser.5.一种集成web应用的混搭服务器,包括:5. A mashup server integrating web applications, comprising:获取场景信息模块,用于从客户端的浏览器获取当前场景信息,所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;Obtaining the scene information module, used to obtain the current scene information from the browser of the client, the current scene information at least includes the uniform resource locator and the webpage content that the user of the browser is visiting;判断模块,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;A judging module, configured to sequentially judge whether all conditions and action pairs stored in the mashup database match the current scene information according to the current scene information;生成动作列表模块,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;An action list generation module, configured to generate an action list according to the judgment result of the judgment module, the action list includes conditions matching the current scene information and actions in the action pair;展示动作模块,用于将所述动作列表中的动作在所述浏览器上进行展示;a display action module, configured to display the actions in the action list on the browser;集成模块,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。An integration module, configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.6.根据权利要求5所述的混搭服务器,所述判断模块包括:6. The mashup server according to claim 5, the judgment module comprising:遍历子模块,用于遍历所述混搭数据库中保存的所有条件和动作对;所述条件和动作对中的条件为条件服务器的统一资源定位符;The traversal submodule is used to traverse all condition and action pairs stored in the mashup database; the condition in the condition and action pair is the Uniform Resource Locator of the condition server;发送子模块,用于将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;以便于条件服务器根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断当前场景信息是否匹配。The sending sub-module is configured to send the current scene information to each condition server corresponding to the uniform resource locator of the condition server; , to determine whether the current scene information matches.7.根据权利要求5所述的混搭服务器,其中所述动作列表中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;其中所述展示模块具体配置为:7. The mashup server according to claim 5, wherein the actions in the action list include an action name, an action description, and a uniform resource locator of an action server, and the uniform resource locator of the action server indicates the corresponding The add address of the mashup script of the web application; wherein the specific configuration of the display module is:将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示;displaying the action names and action descriptions corresponding to the actions in the action list on the browser;所述集成模块具体配置为:The specific configuration of the integrated module is:响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。In response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the mashup script of the web application corresponding to the selected action, so that On the browser, it is injected into the current web application of the browser and the injected mashup script is executed, so as to integrate the corresponding web application on the browser.8.一种集成web应用的系统,所述系统包括客户端和混搭服务器;8. A system for integrating web applications, said system comprising a client and a mashup server;所述客户端包括浏览器,用于向混搭服务器发送当前场景信息;所述当前场景信息至少包括所述浏览器的用户正在访问的统一资源定位符及网页内容;The client includes a browser, which is used to send current scene information to the mashup server; the current scene information includes at least the Uniform Resource Locator and webpage content that the browser user is visiting;所述混搭服务器包括:The mashup server includes:获取场景信息模块,用于从所述客户端的浏览器获取所述当前场景信息;Obtaining a scene information module, configured to obtain the current scene information from the browser of the client;判断模块,用于依据所述当前场景信息依次判断混搭数据库保存的所有条件和动作对与当前场景信息是否匹配;A judging module, configured to sequentially judge whether all conditions and action pairs stored in the mashup database match the current scene information according to the current scene information;生成动作列表模块,用于根据所述判断模块的判断结果生成动作列表,所述动作列表包括与所述当前场景信息匹配的条件和动作对中的动作;An action list generation module, configured to generate an action list according to the judgment result of the judgment module, the action list includes conditions matching the current scene information and actions in the action pair;展示动作模块,用于将所述动作列表中的动作在所述浏览器上进行展示;a display action module, configured to display the actions in the action list on the browser;集成模块,用于响应于所述用户通过所述浏览器选择一个或多个动作,在所述浏览器上集成所选择的动作对应的web应用。An integration module, configured to, in response to the user selecting one or more actions through the browser, integrate web applications corresponding to the selected actions on the browser.9.根据权利要求8所述的系统,所述判断模块包括:9. The system according to claim 8, the judging module comprising:遍历子模块,用于遍历所述混搭数据库中保存的所有条件和动作对,所述条件和动作对中的条件为条件服务器的统一资源定位符;The traversal submodule is used to traverse all condition and action pairs stored in the mashup database, the condition in the condition and action pair is the Uniform Resource Locator of the condition server;发送子模块,用于将当前场景信息发送给所述条件服务器的统一资源定位符对应的各个条件服务器;The sending submodule is used to send the current scene information to each condition server corresponding to the uniform resource locator of the condition server;所述系统还包括:条件服务器,用于根据当前场景信息中所包括的统一资源定位符和网页内容中的至少一个,判断所述当前场景信息是否匹配。The system further includes: a condition server, configured to determine whether the current scene information matches according to at least one of the URL and webpage content included in the current scene information.10.根据权利要求8所述的系统,还包括动作服务器;所述条件和动作对中的动作包括动作名称、动作描述和动作服务器的统一资源定位符,所述动作服务器的统一资源定位符表示与该动作对应的web应用的混搭脚本的添加地址;其中所述展示模块具体配置为:10. The system according to claim 8, further comprising an action server; the action in the condition and action pair includes an action name, an action description, and a URL of the action server, the URL of the action server representing The add address of the mashup script of the web application corresponding to the action; wherein the specific configuration of the display module is:将所述动作列表中的动作对应的动作名称以及动作描述在所述浏览器上进行展示;displaying the action names and action descriptions corresponding to the actions in the action list on the browser;所述集成模块具体配置为:The specific configuration of the integrated module is:响应于所述浏览器将当前场景信息发送到与用户选择的动作中的动作服务器的统一资源定位符对应的动作服务器,所述动作服务器返回与所选择的动作对应的web应用的混搭脚本,以便在所述浏览器上将其注入到所述浏览器正在的web应用中并且执行所注入的混搭脚本,从而在所述浏览器上集成相应的web应用。In response to the browser sending the current scene information to the action server corresponding to the uniform resource locator of the action server in the action selected by the user, the action server returns the mashup script of the web application corresponding to the selected action, so that On the browser, it is injected into the current web application of the browser and the injected mashup script is executed, so as to integrate the corresponding web application on the browser.
CN201110128123XA2011-05-132011-05-13Method and system for integrating web applications and mashup serverPendingCN102780730A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201110128123XACN102780730A (en)2011-05-132011-05-13Method and system for integrating web applications and mashup server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201110128123XACN102780730A (en)2011-05-132011-05-13Method and system for integrating web applications and mashup server

Publications (1)

Publication NumberPublication Date
CN102780730Atrue CN102780730A (en)2012-11-14

Family

ID=47125483

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201110128123XAPendingCN102780730A (en)2011-05-132011-05-13Method and system for integrating web applications and mashup server

Country Status (1)

CountryLink
CN (1)CN102780730A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103227830A (en)*2013-04-272013-07-31天津大学Mobile phone cloud system taking user as center and applying Mashup, and application method of mobile phone cloud system
CN104361085A (en)*2014-11-142015-02-18百度在线网络技术(北京)有限公司Information recommendation method, device, browser, server and system
CN108038177A (en)*2017-12-072018-05-15上海连尚网络科技有限公司A kind of method and apparatus for being used to provide Shipping Options Page
CN108664191A (en)*2018-04-112018-10-16阿里巴巴集团控股有限公司system access method and device
CN109241474A (en)*2017-07-112019-01-18阿里巴巴集团控股有限公司Offer, displaying, dissemination method, server and the client of page info

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070124323A1 (en)*2005-11-292007-05-31Keith HackworthDynamic web site database setup
CN101488151A (en)*2009-01-202009-07-22中国科学院计算技术研究所System and method for gathering website contents

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070124323A1 (en)*2005-11-292007-05-31Keith HackworthDynamic web site database setup
CN101488151A (en)*2009-01-202009-07-22中国科学院计算技术研究所System and method for gathering website contents

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103227830A (en)*2013-04-272013-07-31天津大学Mobile phone cloud system taking user as center and applying Mashup, and application method of mobile phone cloud system
CN104361085A (en)*2014-11-142015-02-18百度在线网络技术(北京)有限公司Information recommendation method, device, browser, server and system
CN104361085B (en)*2014-11-142018-11-09百度在线网络技术(北京)有限公司Information recommendation method, device, browser, server and system
CN109241474A (en)*2017-07-112019-01-18阿里巴巴集团控股有限公司Offer, displaying, dissemination method, server and the client of page info
CN109241474B (en)*2017-07-112022-08-05阿里巴巴集团控股有限公司Method for providing, displaying and releasing page information, server and client
CN108038177A (en)*2017-12-072018-05-15上海连尚网络科技有限公司A kind of method and apparatus for being used to provide Shipping Options Page
CN108664191A (en)*2018-04-112018-10-16阿里巴巴集团控股有限公司system access method and device
CN108664191B (en)*2018-04-112021-08-20创新先进技术有限公司System access method and device

Similar Documents

PublicationPublication DateTitle
JP5571091B2 (en) Providing search results
US9183566B2 (en)Systems and methods for displaying advertisements in an advertisement unit
EP3161678B1 (en)Deep links for native applications
US10110966B2 (en)Method, device, server and client device for video processing
CN105027121A (en) Indexing app pages for native apps
US20150193537A1 (en)Navigation through a collection of electronic documents
US10223460B2 (en)Application partial deep link to a corresponding resource
CN103838862B (en)Video searching method, device and terminal
US9465814B2 (en)Annotating search results with images
US11922465B2 (en)Expandable content items for presenting additional content
WO2014108038A1 (en)Frequently-used website generation client terminal, server, system and method
US20250094518A1 (en)Provision of different content pages based on varying user interactions with a single content item
CN102780730A (en)Method and system for integrating web applications and mashup server
CN1960371B (en) A method and system for accessing web application program files
US20170193053A1 (en)Searching Based On Application Usage
US20150032657A1 (en)Computerized system for the distribution of a multi-platform digital publishing product and relative method
KR20150045236A (en)Method and apparatus for managing scrap information
RU2774319C2 (en)Deep links for native applications
CN104281896A (en)Information integrating system and information integrating method

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C02Deemed withdrawal of patent application after publication (patent law 2001)
WD01Invention patent application deemed withdrawn after publication

Application publication date:20121114


[8]ページ先頭

©2009-2025 Movatter.jp