WO2017114169A1 - 链接请求的处理方法和装置 - Google Patents

链接请求的处理方法和装置 Download PDF

Info

Publication number
WO2017114169A1
WO2017114169A1 PCT/CN2016/110098 CN2016110098W WO2017114169A1 WO 2017114169 A1 WO2017114169 A1 WO 2017114169A1 CN 2016110098 W CN2016110098 W CN 2016110098W WO 2017114169 A1 WO2017114169 A1 WO 2017114169A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
service module
parameter
target page
page
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.)
Ceased
Application number
PCT/CN2016/110098
Other languages
English (en)
French (fr)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to PH1/2018/501379A priority Critical patent/PH12018501379B1/en
Priority to AU2016383336A priority patent/AU2016383336B2/en
Priority to SG11201805525RA priority patent/SG11201805525RA/en
Priority to EP16880959.8A priority patent/EP3399409A4/en
Priority to MYPI2018001142A priority patent/MY188781A/en
Priority to JP2018534042A priority patent/JP6692907B2/ja
Priority to KR1020187021867A priority patent/KR102121679B1/ko
Publication of WO2017114169A1 publication Critical patent/WO2017114169A1/zh
Priority to US16/019,812 priority patent/US11188612B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/54Link editing before load time
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/134Hyperlinking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Definitions

  • the present invention relates to the field of mobile network technologies, and in particular, to a method and an apparatus for processing a link request.
  • the link processing is mainly performed by hard coding, some fields are written into the link by hard coding, and the link request is introduced to the relevant service module according to these fields, thereby opening the corresponding page.
  • the process of processing the link request in the prior art is as follows: S101: the link distribution module receives the link request to be processed; S102, the link distribution module queries the preset coupling file, according to the hard coded content and the coupled file in the link request Determining a service module corresponding to the link request, and acquiring a header file corresponding to the service module; S103, the link distribution module creates a corresponding link processor according to the header file of the service module; S104, the link distribution module calls the link processor to process the link.
  • the link processing module needs to determine the value of the page is newsdetail, and use the business module NewsDetail to process the link.
  • the link distribution module needs to query the preset coupling file to determine the corresponding service module, and needs to read the header file of the service module to create the corresponding link.
  • the processor so the processing is very complicated; 2, because the hard-coded way fixed the parsing logic, the newer business needs to re-adjust the coupled file, so it can not automatically adapt to the new business.
  • an object of the present invention is to provide a method for processing a link request, which can solve the problem of complicated processing of the link request process in the hard coding manner, and does not need to re-adjust the coupled file for the newly added service, which is simple and convenient.
  • a second object of the present invention is to provide a processing apparatus for a link request.
  • a third object of the present invention is to propose a method of generating a link.
  • a fourth object of the present invention is to provide a link generating apparatus.
  • the first aspect of the present invention provides a method for processing a link request, including: receiving a link request, where the link request includes a service module parameter and a behavior parameter; and correspondingly according to the service module parameter a link processor; and controlling the link processor to perform a page jump according to the behavior parameter to jump to the target page.
  • the processing method of the link request in the embodiment of the present invention by receiving a link request, and creating a corresponding link processor according to the service module parameter in the link request, and controlling the link processor to perform a page jump according to the behavior parameter to jump to the target page It solves the complicated problem of hard-coded processing of the link request process, and does not need to re-adjust the coupled file for new services, which is simple and convenient.
  • the second aspect of the present invention provides a link request processing apparatus, including: a link request receiving module, configured to receive a link request, where the link request includes a service module parameter and a behavior parameter; and a creating module, configured to The service module parameter creates a corresponding link processor; and an execution module, configured to control the link processor to perform a page jump according to the behavior parameter to jump to the target page.
  • the processing device for the link request in the embodiment of the present invention by receiving the link request, and creating a corresponding link processor according to the service module parameter in the link request, and controlling the link processor to perform a page jump according to the behavior parameter to jump to the target page It solves the complicated problem of hard-coded processing of the link request process, and does not need to re-adjust the coupled file for new services, which is simple and convenient.
  • the third aspect of the present invention provides a method for generating a link, including: obtaining a service module name of a service module to which the target page belongs and a behavior parameter corresponding to the target page; and generating, according to the service module name and the behavior parameter The link corresponding to the target page.
  • the method for generating a link in the embodiment of the present invention can automatically generate a corresponding target page by acquiring a service module name of the service module to which the target page belongs and a behavior parameter corresponding to the target page, and generating a link corresponding to the target page according to the service module name and the behavior parameter.
  • the link is convenient and simple.
  • the fourth aspect of the present invention provides a link generating apparatus, including: an obtaining module, configured to acquire a service module name of a service module to which a target page belongs and a behavior parameter corresponding to the target page; and a generating module, configured to The service module name and the behavior parameter generate a link corresponding to the target page.
  • the link generating apparatus of the embodiment of the present invention automatically generates a corresponding target page by acquiring a service module name of the service module to which the target page belongs and a behavior parameter corresponding to the target page, and generating a link corresponding to the target page according to the service module name and the behavior parameter.
  • the link is convenient and simple.
  • FIG. 1 is a flow chart of a method of processing a link request in accordance with one embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a processing apparatus for a link request according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of a method of generating a link in accordance with one embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a link generating apparatus according to an embodiment of the present invention.
  • FIG. 1 is a flow chart of a method of processing a link request in accordance with one embodiment of the present invention.
  • the processing method of the link request may include:
  • the link request may include a service module parameter and a behavior parameter.
  • the link request may be generated by an external APP such as a browser, an internal service module, push information, or the like.
  • the reflection interface provided by the client may be invoked according to the business module parameters to generate a link processor.
  • the corresponding link processor ModuleALinkHandler can be generated according to the business module parameter moduleA.
  • a preset configuration file or a configuration table may be queried according to the service module parameters to determine a corresponding link processor.
  • the service module parameters are saved in the preset configuration file or configuration package.
  • the JSON-formatted configuration file LinkRule.json one of which can be ⁇ moduleA:ModuleALinkHandler ⁇ .
  • the configuration file LinkRule.json may be queried to determine that the corresponding link processor is ModuleALinkHandler.
  • the control link processor performs a page jump according to the behavior parameter to jump to the target page.
  • the reflection interface provided by the client may be invoked according to the service module parameter and the behavior parameter to obtain the target page, and the page of the link processor is controlled to jump to the target page.
  • the link is parsed to determine the link processor ModuleALinkHandler corresponding to the moduleelA, and the link processor ModuleALinkHandler processes the corresponding link request according to the behavior parameter action1, that is, the link routing algorithm.
  • the link naming specification is combined with the page naming specification, and the coupling can be eliminated without introducing the relevant service module.
  • the newly added services can also automatically assign corresponding links, and only need to determine the corresponding link processor according to the above method, and jump to the corresponding page.
  • link processor is a piece of program code for handling page jumps.
  • link processor can also be implemented in hardware.
  • the preset configuration file or configuration table may be queried according to the business module parameters and the behavior parameters to obtain the target page, and the page of the link processor is controlled to jump to the target page.
  • the configuration file such as ⁇ action1:ModelAAction1ViewController ⁇ can be further queried, and then the page of the link processor is controlled according to the behavior parameter Action1 to jump to the target page. .
  • the processing method of the link request in the embodiment of the present invention by receiving a link request, and creating a corresponding link processor according to the service module parameter in the link request, and controlling the link processor to perform a page jump according to the behavior parameter to jump to the target page It solves the complicated problem of hard-coded processing of the link request process, and does not need to re-adjust the coupled file for new services, which is simple and convenient.
  • the present invention also provides a processing apparatus for a link request.
  • FIG. 2 is a schematic structural diagram of a processing apparatus for a link request according to an embodiment of the present invention.
  • the processing device of the link request may include a link request receiving module 110, a creating module 120, and an executing module 130.
  • the link request receiving module 110 can be configured to receive a link request.
  • the link request may include a service module parameter and a behavior parameter.
  • the link request may be generated by an external APP such as a browser, an internal service module, push information, or the like.
  • the creation module 120 can be configured to create a corresponding link processor based on the business module parameters.
  • the creation module 120 may invoke a reflection interface provided by the client according to the service module parameters to generate a link processor.
  • the corresponding link processor ModuleALinkHandler can be generated according to the business module parameter moduleA.
  • the creating module 120 may further query a preset configuration file or a configuration table according to the service module parameter to determine a corresponding link processor.
  • the service module parameters are saved in the preset configuration file or configuration package.
  • the JSON-formatted configuration file LinkRule.json one of which can be ⁇ moduleA:ModuleALinkHandler ⁇ .
  • the configuration file LinkRule.json may be queried to determine that the corresponding link processor is ModuleALinkHandler.
  • the execution module 130 can be configured to control the link processor to perform a page jump according to the behavior parameter to jump to the target page.
  • the execution module 130 may invoke the reflection interface provided by the client according to the service module parameter and the behavior parameter to acquire the target page, and control the page of the link processor to jump to the target page.
  • the link is parsed to determine the link processor ModuleALinkHandler corresponding to the moduleelA, and the link processor ModuleALinkHandler processes the corresponding link request according to the behavior parameter action1, that is, the link routing algorithm.
  • the link naming specification is combined with the page naming specification, and the coupling can be eliminated without introducing the relevant service module.
  • the newly added services can also automatically assign corresponding links, and only need to determine the corresponding link processor according to the above method, and jump to the corresponding page.
  • link processor is a piece of program code for handling page jumps.
  • link processor can also be implemented in hardware.
  • the execution module 130 may also query a preset configuration file or a configuration table according to the service module parameter and the behavior parameter to obtain the target page, and control the page of the link processor to jump to the target page.
  • a preset configuration file or a configuration table according to the service module parameter and the behavior parameter to obtain the target page, and control the page of the link processor to jump to the target page.
  • the query configuration file LinkRule.json determine the corresponding link processor is After ModuleALinkHandler, you can further query the configuration file such as ⁇ action1:ModelAAction1ViewController ⁇ , and then control the link processor's page to jump to the target page according to the behavior parameter Action1.
  • the processing device for the link request in the embodiment of the present invention by receiving the link request, and creating a corresponding link processor according to the service module parameter in the link request, and controlling the link processor to perform a page jump according to the behavior parameter to jump to the target page It solves the complicated problem of hard-coded processing of the link request process, and does not need to re-adjust the coupled file for new services, which is simple and convenient.
  • the present invention also proposes a method of generating a link.
  • FIG. 3 is a flow chart of a method of generating a link in accordance with one embodiment of the present invention.
  • the method for generating a link may include:
  • the method for generating a link in the embodiment of the present invention can automatically generate a corresponding target page by acquiring a service module name of the service module to which the target page belongs and a behavior parameter corresponding to the target page, and generating a link corresponding to the target page according to the service module name and the behavior parameter.
  • the link is convenient and simple.
  • the present invention also proposes a link generating apparatus.
  • FIG. 4 is a schematic structural diagram of a link generating apparatus according to an embodiment of the present invention.
  • the link generating device may include: an obtaining module 210 and a generating module 220.
  • the obtaining module 210 is configured to obtain a service module name of the service module to which the target page belongs and a behavior parameter corresponding to the target page.
  • the generating module 220 is configured to generate a link corresponding to the target page according to the service module name and the behavior parameter.
  • the link generating apparatus of the embodiment of the present invention automatically generates a corresponding target page by acquiring a service module name of the service module to which the target page belongs and a behavior parameter corresponding to the target page, and generating a link corresponding to the target page according to the service module name and the behavior parameter.
  • the link is convenient and simple.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless otherwise specified Body limitation.
  • the terms “installation”, “connected”, “connected”, “fixed” and the like shall be understood broadly, and may be either a fixed connection or a detachable connection, unless explicitly stated and defined otherwise. , or integrated; can be mechanical or electrical connection; can be directly connected, or indirectly connected through an intermediate medium, can be the internal communication of two elements or the interaction of two elements, unless otherwise specified Limited.
  • the specific meanings of the above terms in the present invention can be understood on a case-by-case basis.
  • the first feature "on” or “under” the second feature may be a direct contact of the first and second features, or the first and second features may be indirectly through an intermediate medium, unless otherwise explicitly stated and defined. contact.
  • the first feature "above”, “above” and “above” the second feature may be that the first feature is directly above or above the second feature, or merely that the first feature level is higher than the second feature.
  • the first feature “below”, “below” and “below” the second feature may be that the first feature is directly below or obliquely below the second feature, or merely that the first feature level is less than the second feature.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)
  • Document Processing Apparatus (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种链接请求的处理方法和装置,其中,链接请求的处理方法包括:接收链接请求(S1),其中,链接请求包括业务模块参数和行为参数;根据业务模块参数创建对应的链接处理器(S2);以及控制链接处理器根据行为参数进行页面跳转以跳转至目标页面(S3)。所述链接请求的处理方法和装置,通过接收链接请求,并根据链接请求中的业务模块参数创建对应的链接处理器,以及控制链接处理器根据行为参数进行页面跳转以跳转至目标页面,解决了硬编码方式处理链接请求过程复杂的问题,并且无需针对新增业务重新调整耦合文件,简单便捷。

Description

链接请求的处理方法和装置 技术领域
本发明涉及移动网络技术领域,尤其涉及一种链接请求的处理方法和装置。
背景技术
随着科技的不断进步,智能手机已成为人们生活中不可或缺的部分。人们可以用智能手机实现诸如听歌、上网、看视频等功能。当人们通过浏览器浏览网页时,可点击想要阅读的题目,通过题目对应的链接从而跳转到对应的页面。
目前,主要采用硬编码的方式进行链接处理,通过硬编码的方式将一些字段写入到链接中,并根据这些字段将链接请求引入至相关的业务模块,从而打开对应的页面。具体而言,现有技术中处理链接请求的过程如下:S101、链接分发模块接收待处理的链接请求;S102、链接分发模块查询预设的耦合文件,根据链接请求中的硬编码内容和耦合文件确定该链接请求对应的业务模块,并获取该业务模块对应的头文件;S103、链接分发模块根据该业务模块的头文件创建对应的链接处理器;S104、链接分发模块调用该链接处理器处理该链接。举例来说,假设接收到一个新闻应用打开新闻详情页的链接请求,其中,链接格式规定为newsapp://newsapp/?page=newsdetail&newsid=news1,新闻详情页对应的页面展示模块为newsdetail,在NewsDetail.h中定义,则需要链接处理模块判断page的值为newsdetail时使用业务模块NewsDetail来处理该链接。
但是,采用硬编码的方式进行链接处理存在以下技术问题:1、链接分发模块需要查询预设的耦合文件才能够确定对应的业务模块,并且需要读取业务模块的头文件才能够创建对应的链接处理器,因此处理过程非常复杂;2、由于硬编码的方式固定了解析逻辑,对于新增的业务要重新调整耦合文件,因此不能自动适应新增的业务。
发明内容
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的一个目的在于提出一种链接请求的处理方法,该方法能够解决硬编码方式处理链接请求过程复杂的问题,并且无需针对新增业务重新调整耦合文件,简单便捷。
本发明的第二个目的在于提出一种链接请求的处理装置。
本发明的第三个目的在于提出一种链接的生成方法。
本发明的第四个目的在于提出一种链接的生成装置。
为了实现上述目的,本发明第一方面实施例提出了一种链接请求的处理方法,包括:接收链接请求,其中,所述链接请求包括业务模块参数和行为参数;根据所述业务模块参数创建对应的链接处理器;以及控制所述链接处理器根据所述行为参数进行页面跳转以跳转至目标页面。
本发明实施例的链接请求的处理方法,通过接收链接请求,并根据链接请求中的业务模块参数创建对应的链接处理器,以及控制链接处理器根据行为参数进行页面跳转以跳转至目标页面,解决了硬编码方式处理链接请求过程复杂的问题,并且无需针对新增业务重新调整耦合文件,简单便捷。
本发明第二方面实施例提出了一种链接请求的处理装置,包括:链接请求接收模块,用于接收链接请求,其中,所述链接请求包括业务模块参数和行为参数;创建模块,用于根据所述业务模块参数创建对应的链接处理器;以及执行模块,用于控制所述链接处理器根据所述行为参数进行页面跳转以跳转至目标页面。
本发明实施例的链接请求的处理装置,通过接收链接请求,并根据链接请求中的业务模块参数创建对应的链接处理器,以及控制链接处理器根据行为参数进行页面跳转以跳转至目标页面,解决了硬编码方式处理链接请求过程复杂的问题,并且无需针对新增业务重新调整耦合文件,简单便捷。
本发明第三方面实施例提出了一种链接的生成方法,包括:获取目标页面所属的业务模块的业务模块名和所述目标页面对应的行为参数;以及根据所述业务模块名和所述行为参数生成所述目标页面对应的链接。
本发明实施例的链接的生成方法,通过获取目标页面所属的业务模块的业务模块名和目标页面对应的行为参数,并根据业务模块名和行为参数生成目标页面对应的链接,可自动为目标页面生成对应的链接,方便简单。
本发明第四方面实施例提出了一种链接的生成装置,包括:获取模块,用于获取目标页面所属的业务模块的业务模块名和所述目标页面对应的行为参数;以及生成模块,用于根据所述业务模块名和所述行为参数生成所述目标页面对应的链接。
本发明实施例的链接的生成装置,通过获取目标页面所属的业务模块的业务模块名和目标页面对应的行为参数,并根据业务模块名和行为参数生成目标页面对应的链接,可自动为目标页面生成对应的链接,方便简单。
附图说明
图1是根据本发明一个实施例的链接请求的处理方法的流程图。
图2是根据本发明一个实施例的链接请求的处理装置的结构示意图。
图3是根据本发明一个实施例的链接的生成方法的流程图。
图4是根据本发明一个实施例的链接的生成装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
下面参考附图描述本发明实施例的链接请求的处理方法和装置。
图1是根据本发明一个实施例的链接请求的处理方法的流程图。
如图1所示,链接请求的处理方法可包括:
S1、接收链接请求。
其中,链接请求可包括业务模块参数和行为参数。
在本发明的一个实施例中,链接请求可通过外部APP如浏览器、内部业务模块、推送信息等产生。
S2、根据业务模块参数创建对应的链接处理器。
具体地,可根据业务模块参数调用客户端提供的反射接口以生成链接处理器。举例来说,链接为scheme://domain/model=modulelA&action=action1,则可根据业务模块参数modulelA生成对应的链接处理器ModuleALinkHandler。
另外,还可以根据业务模块参数查询预设的配置文件或配置表以确定对应的链接处理器。其中,预设的配置文件或配置包中保存有业务模块参数。举例来说,JSON格式的配置文件LinkRule.json,其中一条内容可为{moduleA:ModuleALinkHandler}。当接收的链接请求中的业务模块参数为modulelA时,可查询该配置文件LinkRule.json,从而确定对应的链接处理器为ModuleALinkHandler。
S3、控制链接处理器根据行为参数进行页面跳转以跳转至目标页面。
具体地,可根据业务模块参数和行为参数调用客户端提供的反射接口以获取目标页面,并控制链接处理器的页面跳转至目标页面。举例来说,在根据业务模块参数modulelA生成对应的链接处理器ModuleALinkHandler之后,可根据行为参数action1控制链接处理器ModuleALinkHandler的页面跳转至目标页面,即scheme://domain/model=modulelA&action=action1对应的页面。上述通过反射的方式,对链接进行解析,从而确定modulelA对应的链接处理器ModuleALinkHandler,并由链接处理器ModuleALinkHandler根据行为参数action1处理相应的链接请求的过程,即链接路由算法。
本发明实施例通过链接路由算法结合页面命名规范,无需引入相关业务模块,即可消除耦合。
另外,新增的业务也能自动分配相应的链接,只需根据上述方式即可确定对应的链接处理器,并跳转至对应的页面。
应当理解的是,链接处理器为一段程序编码,用于处理页面跳转。当然,链接处理器也可以通过硬件方式实现。
另外,还可根据业务模块参数和行为参数查询预设的配置文件或配置表以获取目标页面,并控制链接处理器的页面跳转至目标页面。举例来说,在查询配置文件LinkRule.json,确定对应的链接处理器为ModuleALinkHandler之后,可进一步查询配置文件如{action1:ModelAAction1ViewController},然后根据行为参数Action1控制链接处理器的页面跳转至目标页面。
本发明实施例的链接请求的处理方法,通过接收链接请求,并根据链接请求中的业务模块参数创建对应的链接处理器,以及控制链接处理器根据行为参数进行页面跳转以跳转至目标页面,解决了硬编码方式处理链接请求过程复杂的问题,并且无需针对新增业务重新调整耦合文件,简单便捷。
为实现上述目的,本发明还提出一种链接请求的处理装置。
图2是根据本发明一个实施例的链接请求的处理装置的结构示意图。
如图2所示,链接请求的处理装置可包括:链接请求接收模块110、创建模块120和执行模块130。
具体地,链接请求接收模块110可用于接收链接请求。
其中,链接请求可包括业务模块参数和行为参数。
在本发明的一个实施例中,链接请求可通过外部APP如浏览器、内部业务模块、推送信息等产生。
创建模块120可用于根据业务模块参数创建对应的链接处理器。
具体地,创建模块120可根据业务模块参数调用客户端提供的反射接口以生成链接处理器。举例来说,链接为 scheme://domain/model=modulelA&action=action1,则可根据业务模块参数modulelA生成对应的链接处理器ModuleALinkHandler。
另外,创建模块120还可以根据业务模块参数查询预设的配置文件或配置表以确定对应的链接处理器。其中,预设的配置文件或配置包中保存有业务模块参数。举例来说,JSON格式的配置文件LinkRule.json,其中一条内容可为{moduleA:ModuleALinkHandler}。当接收的链接请求中的业务模块参数为modulelA时,可查询该配置文件LinkRule.json,从而确定对应的链接处理器为ModuleALinkHandler。
执行模块130可用于控制链接处理器根据行为参数进行页面跳转以跳转至目标页面。
具体地,执行模块130可根据业务模块参数和行为参数调用客户端提供的反射接口以获取目标页面,并控制链接处理器的页面跳转至目标页面。举例来说,在根据业务模块参数modulelA生成对应的链接处理器ModuleALinkHandler之后,可根据行为参数action1控制链接处理器ModuleALinkHandler的页面跳转至目标页面,即scheme://domain/model=modulelA&action=action1对应的页面。上述通过反射的方式,对链接进行解析,从而确定modulelA对应的链接处理器ModuleALinkHandler,并由链接处理器ModuleALinkHandler根据行为参数action1处理相应的链接请求的过程,即链接路由算法。
本发明实施例通过链接路由算法结合页面命名规范,无需引入相关业务模块,即可消除耦合。
另外,新增的业务也能自动分配相应的链接,只需根据上述方式即可确定对应的链接处理器,并跳转至对应的页面。
应当理解的是,链接处理器为一段程序编码,用于处理页面跳转。当然,链接处理器也可以通过硬件方式实现。
另外,执行模块130还可根据业务模块参数和行为参数查询预设的配置文件或配置表以获取目标页面,并控制链接处理器的页面跳转至目标页面。举例来说,在查询配置文件LinkRule.json,确定对应的链接处理器为 ModuleALinkHandler之后,可进一步查询配置文件如{action1:ModelAAction1ViewController},然后根据行为参数Action1控制链接处理器的页面跳转至目标页面。
本发明实施例的链接请求的处理装置,通过接收链接请求,并根据链接请求中的业务模块参数创建对应的链接处理器,以及控制链接处理器根据行为参数进行页面跳转以跳转至目标页面,解决了硬编码方式处理链接请求过程复杂的问题,并且无需针对新增业务重新调整耦合文件,简单便捷。
为实现上述目的,本发明还提出一种链接的生成方法。
图3是根据本发明一个实施例的链接的生成方法的流程图。
如图3所示,链接的生成方法可包括:
S301、获取目标页面所属的业务模块的业务模块名和目标页面对应的行为参数。
其中,不同的业务模块具有不同的业务模块名。
S302、根据业务模块名和行为参数生成目标页面对应的链接。
举例来说,生成目标页面对应的链接的预设格式为scheme://domain/?module={ModuleName}&action={ActionType}。其中,业务模块名为module={ModuleName},行为参数为action={ActionType}。可将目标页面所属的业务模块的业务模块名ModuleA和目标页面对应的行为参数action1代入到预设格式中,则目标页面对应的链接为scheme://domain/?module=ModuleA&action=action1。
本发明实施例的链接的生成方法,通过获取目标页面所属的业务模块的业务模块名和目标页面对应的行为参数,并根据业务模块名和行为参数生成目标页面对应的链接,可自动为目标页面生成对应的链接,方便简单。
为实现上述目的,本发明还提出一种链接的生成装置。
图4是根据本发明一个实施例的链接的生成装置的结构示意图。
如图4所示,链接的生成装置可包括:获取模块210和生成模块220。
获取模块210可用于获取目标页面所属的业务模块的业务模块名和目标页面对应的行为参数。
其中,不同的业务模块具有不同的业务模块名。
生成模块220可用于根据业务模块名和行为参数生成目标页面对应的链接。
举例来说,生成目标页面对应的链接的预设格式为scheme://domain/?module={ModuleName}&action={ActionType}。其中,业务模块名为module={ModuleName},行为参数为action={ActionType}。生成模块220可将目标页面所属的业务模块的业务模块名ModuleA和目标页面对应的行为参数action1代入到预设格式中,则目标页面对应的链接为scheme://domain/?module=ModuleA&action=action1。
本发明实施例的链接的生成装置,通过获取目标页面所属的业务模块的业务模块名和目标页面对应的行为参数,并根据业务模块名和行为参数生成目标页面对应的链接,可自动为目标页面生成对应的链接,方便简单。
在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”、“顺时针”、“逆时针”、“轴向”、“径向”、“周向”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具 体的限定。
在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。
在本发明中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (14)

  1. 一种链接请求的处理方法,其特征在于,包括以下步骤:
    接收链接请求,其中,所述链接请求包括业务模块参数和行为参数;
    根据所述业务模块参数创建对应的链接处理器;以及
    控制所述链接处理器根据所述行为参数进行页面跳转以跳转至目标页面。
  2. 如权利要求1所述的链接请求的处理方法,其特征在于,所述根据所述业务模块参数创建对应的链接处理器具体包括:
    根据所述业务模块参数调用客户端提供的反射接口以生成所述链接处理器。
  3. 如权利要求1所述的链接请求的处理方法,其特征在于,所述控制所述链接处理器根据所述行为参数进行页面跳转以跳转至目标页面具体包括:
    根据所述业务模块参数和所述行为参数调用客户端提供的反射接口以获取所述目标页面;以及
    控制所述链接处理器的页面跳转至所述目标页面。
  4. 如权利要求1所述的链接请求的处理方法,其特征在于,所述根据所述业务模块参数创建对应的链接处理器具体包括:
    根据所述业务模块参数查询预设的配置文件或配置表以确定对应的所述链接处理器。
  5. 如权利要求1所述的链接请求的处理方法,其特征在于,所述控制所述链接处理器根据所述行为参数进行页面跳转以跳转至目标页面具体包括:
    根据所述业务模块参数和所述行为参数查询预设的配置文件或配置表以获取所述目标页面;以及
    控制所述链接处理器的页面跳转至所述目标页面。
  6. 一种链接请求的处理装置,其特征在于,包括:
    链接请求接收模块,用于接收链接请求,其中,所述链接请求包括业务模块参数和行为参数;
    创建模块,用于根据所述业务模块参数创建对应的链接处理器;以及
    执行模块,用于控制所述链接处理器根据所述行为参数进行页面跳转以跳转至目标页面。
  7. 如权利要求6所述的链接请求的处理装置,其特征在于,所述创建模块根据所述业务模块参数调用客户端提供的反射接口以生成所述链接处理器。
  8. 如权利要求6所述的链接请求的处理装置,其特征在于,所述执行模块根据所述业务模块参数和所述行为参数调用客户端提供的反射接口以获取所述目标页面,并控制所述链接处理器的页面跳转至所述目标页面。
  9. 如权利要求6所述的链接请求的处理装置,其特征在于,所述创建模块根据所述业务模块参数查询预设的配置文件或配置表以确定对应的所述链接处理器。
  10. 如权利要求6所述的链接请求的处理装置,其特征在于,所述执行模块根据所述业务模块参数和所述行为参数查询预设的配置文件或配置表以获取所述目标页面,并控制所述链接处理器的页面跳转至所述目标页面。
  11. 一种链接的生成方法,其特征在于,包括以下步骤:
    获取目标页面所属的业务模块的业务模块名和所述目标页面对应的行为参数;以及
    根据所述业务模块名和所述行为参数生成所述目标页面对应的链接。
  12. 如权利要求11所述的链接的生成方法,其特征在于,不同的所述业务模块具有不同的业务模块名。
  13. 一种链接的生成装置,其特征在于,包括:
    获取模块,用于获取目标页面所属的业务模块的业务模块名和所述目标页面对应的行为参数;以及
    生成模块,用于根据所述业务模块名和所述行为参数生成所述目标页面对应的链接。
  14. 如权利要求12所述的链接的生成装置,其特征在于,不同的所述业务模块具有不同的业务模块名。
PCT/CN2016/110098 2015-12-28 2016-12-15 链接请求的处理方法和装置 Ceased WO2017114169A1 (zh)

Priority Applications (8)

Application Number Priority Date Filing Date Title
PH1/2018/501379A PH12018501379B1 (en) 2015-12-28 2016-12-15 Link request processing method and apparatus
AU2016383336A AU2016383336B2 (en) 2015-12-28 2016-12-15 Link request processing method and apparatus
SG11201805525RA SG11201805525RA (en) 2015-12-28 2016-12-15 Link request processing method and apparatus
EP16880959.8A EP3399409A4 (en) 2015-12-28 2016-12-15 METHOD AND DEVICE FOR PROCESSING CONNECTIONS
MYPI2018001142A MY188781A (en) 2015-12-28 2016-12-15 Link request processing method and apparatus
JP2018534042A JP6692907B2 (ja) 2015-12-28 2016-12-15 リンク要求を処理する方法、リンクを生成する方法、リンク生成装置
KR1020187021867A KR102121679B1 (ko) 2015-12-28 2016-12-15 링크 요청 처리 방법 및 장치
US16/019,812 US11188612B2 (en) 2015-12-28 2018-06-27 Link request processing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511001035.8A CN106919414B (zh) 2015-12-28 2015-12-28 链接请求的处理方法和装置
CN201511001035.8 2015-12-28

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/019,812 Continuation US11188612B2 (en) 2015-12-28 2018-06-27 Link request processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2017114169A1 true WO2017114169A1 (zh) 2017-07-06

Family

ID=59224541

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110098 Ceased WO2017114169A1 (zh) 2015-12-28 2016-12-15 链接请求的处理方法和装置

Country Status (10)

Country Link
US (1) US11188612B2 (zh)
EP (1) EP3399409A4 (zh)
JP (1) JP6692907B2 (zh)
KR (1) KR102121679B1 (zh)
CN (1) CN106919414B (zh)
AU (1) AU2016383336B2 (zh)
MY (1) MY188781A (zh)
PH (1) PH12018501379B1 (zh)
SG (1) SG11201805525RA (zh)
WO (1) WO2017114169A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611507A (zh) * 2020-05-27 2020-09-01 掌阅科技股份有限公司 基于模块化的应用内页面跳转方法及计算设备

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764895A (zh) * 2019-10-30 2020-02-07 江苏满运软件科技有限公司 应用服务动态切换方法、系统、设备及存储介质
CN111538530A (zh) * 2020-04-29 2020-08-14 中国银行股份有限公司 页面跳转方法及系统、存储介质及电子设备
CN112115337B (zh) * 2020-09-09 2023-12-29 北京奇艺世纪科技有限公司 展示数据的方法及装置、电子设备、计算机可读存储介质
CN112711455B (zh) * 2020-12-31 2024-04-16 京东科技控股股份有限公司 一种页面交互方法、装置、电子设备及存储介质
US12526127B2 (en) * 2022-08-31 2026-01-13 Beijing Boe Technology Development Co., Ltd. Resource distribution method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214449A1 (en) * 2004-03-02 2007-09-13 Choi Elliot M Portlet template based on a state design pattern
CN101266623A (zh) * 2008-05-09 2008-09-17 杭州华三通信技术有限公司 一种页面跳转的方法和系统
CN102169486A (zh) * 2010-02-25 2011-08-31 腾讯科技(深圳)有限公司 一种文件下载方法及装置
CN104598513A (zh) * 2014-11-03 2015-05-06 腾讯科技(成都)有限公司 一种基于网页框架的数据流控制方法和系统

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802299A (en) * 1996-02-13 1998-09-01 Microtouch Systems, Inc. Interactive system for authoring hypertext document collections
KR100377189B1 (ko) * 1999-12-24 2003-03-28 한국전자통신연구원 워크플로우 시스템과 어플리케이션간의 데이터 교환시스템 및 그 방법
US7366777B2 (en) * 2003-05-15 2008-04-29 Sap Aktiengesellschaft Web application router
US20060229054A1 (en) 2005-04-07 2006-10-12 Esa Erola Help desk connect
KR100717032B1 (ko) * 2005-09-30 2007-05-10 삼성전자주식회사 UPnP를 따르지 않는 개체를 UPnP 디바이스 또는컨텐트로 표현하는 방법 및 장치
CN101115050A (zh) * 2006-07-24 2008-01-30 中兴通讯股份有限公司 一种网络业务请求的处理系统及其方法
US8209615B2 (en) * 2006-11-22 2012-06-26 Qualcomm Incorporated Apparatus and methods of linking to an application on a wireless device
CN101141694B (zh) * 2007-11-02 2010-06-02 华为技术有限公司 一种业务推送方法及装置
US7870482B2 (en) * 2009-01-30 2011-01-11 International Business Machines Corporation Web browser extension for simplified utilization of web services
US20100317374A1 (en) * 2009-06-11 2010-12-16 Yaron Alpert Apparatus for and method of managing paging interval access on a mobile station
US20110055683A1 (en) * 2009-09-02 2011-03-03 Facebook Inc. Page caching for rendering dynamic web pages
CN102651017A (zh) * 2012-03-30 2012-08-29 北京英富森信息技术有限公司 一种基于url地址改写的网页原版原貌展现方法
CN102902785B (zh) * 2012-09-29 2016-08-10 合一网络技术(北京)有限公司 一种网页信息获取系统及方法
CN104216911B (zh) * 2013-06-03 2018-03-27 阿里巴巴集团控股有限公司 一种浏览跟踪方法及装置
CN104618412B (zh) * 2013-11-05 2018-11-06 杭州海康威视数字技术股份有限公司 页面跳转方法及装置
CN104714980B (zh) * 2013-12-17 2018-04-06 阿里巴巴集团控股有限公司 页面嵌套路径确定方法及装置
US10069891B2 (en) * 2015-09-30 2018-09-04 Bank Of America Corporation Channel accessible single function micro service data collection process for light analytics

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214449A1 (en) * 2004-03-02 2007-09-13 Choi Elliot M Portlet template based on a state design pattern
CN101266623A (zh) * 2008-05-09 2008-09-17 杭州华三通信技术有限公司 一种页面跳转的方法和系统
CN102169486A (zh) * 2010-02-25 2011-08-31 腾讯科技(深圳)有限公司 一种文件下载方法及装置
CN104598513A (zh) * 2014-11-03 2015-05-06 腾讯科技(成都)有限公司 一种基于网页框架的数据流控制方法和系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3399409A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111611507A (zh) * 2020-05-27 2020-09-01 掌阅科技股份有限公司 基于模块化的应用内页面跳转方法及计算设备

Also Published As

Publication number Publication date
JP6692907B2 (ja) 2020-05-13
AU2016383336B2 (en) 2020-04-02
JP2019508783A (ja) 2019-03-28
CN106919414A (zh) 2017-07-04
AU2016383336A1 (en) 2018-07-19
PH12018501379B1 (en) 2022-09-14
EP3399409A1 (en) 2018-11-07
CN106919414B (zh) 2021-10-08
US20180314708A1 (en) 2018-11-01
PH12018501379A1 (en) 2019-02-18
KR102121679B1 (ko) 2020-06-11
MY188781A (en) 2021-12-30
SG11201805525RA (en) 2018-07-30
US11188612B2 (en) 2021-11-30
EP3399409A4 (en) 2019-01-09
KR20180099815A (ko) 2018-09-05

Similar Documents

Publication Publication Date Title
WO2017114169A1 (zh) 链接请求的处理方法和装置
CN104025548B (zh) 用于被递送媒体的灵活缓存的方法和设备
US10241839B2 (en) Method and system for generating a virtual device resource accessible by an application
US9552338B2 (en) Mechanisms to compose, execute, save, and retrieve hyperlink pipelines in web browsers
CN102567516B (zh) 脚本加载方法及装置
WO2019037660A1 (zh) 设备控制方法、装置、终端设备和操作系统
JP6093482B2 (ja) 携帯端末で検索結果を表示する方法及び装置
CN105553959B (zh) 动态生成智能设备操作界面的远程控制方法和系统
KR20110100622A (ko) 네트워크를 통해 자동으로 콘텐츠를 신디케이트하는 기술
CN104077162A (zh) 移动终端应用模板的更新、发布方法及装置
CN105142007A (zh) 多屏互动设备之间的控制方法、多屏互动设备及系统
CN105005500A (zh) 一种远程过程调用方法、服务端、客户端
CN104932910A (zh) 应用程序接口扩展的方法及系统
CN104317819A (zh) 基于浏览器页面间跨域通信的方法和系统
CN103237050B (zh) 智能语音交互方法和系统
RU2596588C2 (ru) Система и способ для активации мобильного устройства для инициирования связи
CN103024594A (zh) 数字电视终端区域管理的方法及数字电视终端
WO2018058895A1 (zh) 一种基于rcs消息的终端控制方法及装置
CN102378058B (zh) Iptv终端搜索结果更新的方法及iptv服务器
JP2011250411A (ja) リッチアプリケーションベースのマルチスクリーンiptvサービス提供システム、端末、サーバ及び方法
WO2020220272A1 (zh) 更改资源状态的方法、系统、终端及存储介质
CN120130059A (zh) 用于网络功能发现的方法和装置
CN104427373A (zh) 一种基于iptv的数据处理方法及终端
CN102082793A (zh) 一种音视频服务配置的方法
US20180198915A1 (en) Interactive processing method and device

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 11201805525R

Country of ref document: SG

Ref document number: 12018501379

Country of ref document: PH

ENP Entry into the national phase

Ref document number: 2018534042

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2016383336

Country of ref document: AU

Date of ref document: 20161215

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20187021867

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2016880959

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016880959

Country of ref document: EP

Effective date: 20180730