CN111639275B - Routing information processing method, device, electronic equipment and computer storage medium - Google Patents

Routing information processing method, device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111639275B
CN111639275B CN201910154596.3A CN201910154596A CN111639275B CN 111639275 B CN111639275 B CN 111639275B CN 201910154596 A CN201910154596 A CN 201910154596A CN 111639275 B CN111639275 B CN 111639275B
Authority
CN
China
Prior art keywords
page
information
type
target
routing information
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.)
Active
Application number
CN201910154596.3A
Other languages
Chinese (zh)
Other versions
CN111639275A (en
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 CN201910154596.3A priority Critical patent/CN111639275B/en
Publication of CN111639275A publication Critical patent/CN111639275A/en
Application granted granted Critical
Publication of CN111639275B publication Critical patent/CN111639275B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

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

Abstract

The embodiment of the invention provides a routing information processing method, a device, electronic equipment and a computer storage medium, wherein the routing information processing method comprises the following steps: acquiring URL routing information of a target page to be accessed, wherein the URL routing information carries information of a page type and information of a page identifier of the target page, which are set according to a preset path rule; acquiring the information of the page type and the information of the page identification of the target page from the URL routing information; and according to the information of the page type, calling a page display control matched with the page type to analyze and display the content of the target page identified by the information of the page identification. By the embodiment of the invention, the problem of how to quickly determine the type of the target page to be accessed so as to realize normal access to the target page is effectively solved.

Description

Routing information processing method, device, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a routing information processing method, a device, electronic equipment and a computer storage medium.
Background
With the rise of various cross-platform application development frameworks in the internet technology, the use of various different types of pages developed through these frameworks is becoming more and more widespread. Although the types of pages are increasing, when the pages are accessed, the information of the target pages still needs to be transferred through the routing information of the URLs (Uniform Resource Location, uniform resource locators) so as to realize the access to the target pages.
Currently, for many different types of pages, such as Weex pages, fluter pages, RN (ReactNative) pages, native pages, web pages, etc., the type of target page that is ultimately to be accessed may not be determined by the existing URL routing information. For example:
“url:’http://dotwe.org/raw/dist/519962541fcf6acd911986357ad9c2ed.js’”
the URL routing information specifies that the final object to be accessed is "519962541fcf6acd 911986357add 9c2ed. Js", but cannot determine from the information what type of target page the corresponding target page is. Therefore, the target page corresponding to the URL routing information can not be accurately analyzed, and the target page can not be normally accessed.
Therefore, how to quickly determine the type of the target page to be accessed to achieve normal access to the target page becomes a problem to be solved.
Disclosure of Invention
In view of the above, an embodiment of the present invention provides a routing information processing scheme to solve the above-mentioned problems.
According to a first aspect of an embodiment of the present invention, there is provided a routing information processing method, including: acquiring URL routing information of a target page to be accessed, wherein the URL routing information carries information of a page type and information of a page identifier of the target page, which are set according to a preset path rule; acquiring the information of the page type and the information of the page identification of the target page from the URL routing information; and according to the information of the page type, calling a page display control matched with the page type to analyze and display the content of the target page identified by the information of the page identification.
According to a second aspect of the embodiment of the present invention, there is also provided another routing information processing method, including: determining the page type and page identification of a target page; generating partial or all path information for performing page access on the target page according to the page type and the page identification and a preset path rule; and acquiring URL routing information of the target page according to the path information.
According to a third aspect of the embodiments of the present invention, there is provided a routing information processing apparatus including: the first acquisition module is used for acquiring URL routing information of a target page to be accessed, wherein the URL routing information carries information of a page type and information of a page identifier of the target page, which are set according to a preset path rule; the second acquisition module is used for acquiring the information of the page type and the information of the page identification of the target page from the URL routing information; and the calling module is used for calling a page display control matched with the page type according to the information of the page type to analyze and display the content of the target page identified by the information of the page identification.
According to a fourth aspect of the embodiments of the present invention, there is also provided another routing information processing apparatus including: the determining module is used for determining the page type and the page identification of the target page; the first generation module is used for generating partial or all path information for carrying out page access on the target page according to the page type and the page identification and a preset path rule; and the third acquisition module is used for acquiring the URL routing information of the target page according to the path information.
According to a fifth aspect of an embodiment of the present invention, there is provided an electronic apparatus including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform operations corresponding to the routing information processing method according to the first aspect or the second aspect.
According to a sixth aspect of embodiments of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the routing information processing method according to the first or second aspect.
According to the route information processing scheme provided by the embodiment of the invention, the URL route information of the target page carries the information of the page type and the information of the page identification of the target page, and the matched page display control can be called according to the information of the page type so as to analyze and display the page content identified by the information of the page identification. On the one hand, the page display control is matched with the page type, so that normal analysis and display of page contents can be realized, and the problem that the page contents of a target page cannot be normally analyzed and displayed by using a default page display control due to the fact that the page type cannot be determined is avoided; on the other hand, the URL routing information definitely carries the information of the page type, so that the page type of the target page is determined without additionally analyzing the page content of the target page, the realization cost of the page type determination is greatly reduced, and the resource loss caused by analyzing the page content is avoided.
Therefore, the method and the device effectively solve the problem of how to quickly determine the type of the target page to be accessed so as to realize normal access to the target page.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
Fig. 1 is a flowchart illustrating steps of a routing information processing method according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating a routing information processing method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a routing information processing method according to a third embodiment of the present invention;
fig. 4 is a flowchart showing steps of a routing information processing method according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a routing information processing apparatus according to a fifth embodiment of the present invention;
fig. 6 is a block diagram of a routing information processing apparatus according to a sixth embodiment of the present invention;
Fig. 7 is a block diagram of a routing information processing apparatus according to a seventh embodiment of the present invention;
fig. 8 is a block diagram of a route information processing apparatus according to an eighth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to a tenth embodiment of the present invention.
Detailed Description
In order to better understand the technical solutions in the embodiments of the present invention, the following description will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the present invention, shall fall within the scope of protection of the embodiments of the present invention.
The implementation of the embodiments of the present invention will be further described below with reference to the accompanying drawings.
In order to clearly describe the route information processing scheme provided by the embodiment of the present invention, the following method embodiments are described in order of first generating the URL route information of the target page and then analyzing the URL route information of the target page.
Example 1
Referring to fig. 1, a flowchart of steps of a routing information processing method according to a first embodiment of the present invention is shown.
The method for processing the route information according to the embodiment of the present invention is described in the present embodiment from the URL route information generation side of the target page, for example, the server side or the publishing client side of the target page.
The route information processing method of the present embodiment includes the steps of:
step S102: and determining the page type and page identification of the target page.
In the embodiment of the invention, the page type can be used for indicating the development framework type of the target page, including but not limited to: a Weex page developed using a Weex development framework, a Flutter page developed using a Flutter development framework, an RN page developed using a real Native development framework, a Native page developed using an Android system, a Web page developed using a hypertext markup language (e.g., HTML language or H5 language, etc.), and so forth.
The page identifier may be used to identify the page for identification and access to the page, and in embodiments of the present invention, the page identifier may take any suitable form, including but not limited to: page name, page identification symbol, etc. Unlike the filename in the conventional URL routing information, in the embodiment of the present invention, a page identifier is used to explicitly identify a certain page, so as to explicitly identify the page type of the page, instead of the file indicated by the filename in the URL routing information.
The specific implementation manner of determining the page type and the page identifier of the target page in this step may be implemented in any suitable manner by those skilled in the art according to actual requirements, which is not limited in this embodiment of the present invention.
Step S104: and generating partial or all path information for performing page access on the target page according to a preset path rule according to the page type and page identification of the target page.
After the page type and the page identifier of the target page are obtained, corresponding path information, such as information of parameter parts in the path, or information of a relative path for performing page access on the target page, and the like, can be generated. The possible forms of the specific path information generated may be set by a predetermined path rule.
Wherein, the predetermined path rule is used for indicating a specific mode of generating the path information of the target page, including but not limited to: the manner in which the information required to generate the path information is obtained, the format of the generated path information, the location in the path of the various information in the path information (e.g., page type and page identification), and so forth. In practical applications, the predetermined path rules may be implemented in a suitable manner by those skilled in the art according to actual requirements.
Generally, URL routing information includes: protocol part, domain name part, port part, virtual directory part, file name part, parameter part and anchor part, wherein the parts may not exist in one URL route information at the same time, i.e. one URL route information need not include the content of all the parts at the same time.
Taking "http:// www.aspxfans.com:8080/news/index. Aspboard id=5 & id=24618 & page=1#name" as an example, wherein "http:" is a protocol part, indicating that the HTTP protocol is used; "http:" post "//" is separator; "www.aspxfans.com" is a domain name part, "8080" is a port part, which can be omitted, default ports are adopted when omitted, and the terms "between www.aspxfans.com" and "8080": "is a separator; starting from the first "/" to the last "/" after the domain name, is the virtual directory portion, in this example "/news/"; starting from the last "/" to "? "until, or in the absence of"? "when starting from the last"/"after the domain name to" # ", or when there is no"? "and" # ", starting from the last"/"after the domain name to the end, is the file name part, in this example" index. Asp "; beginning with "#" and ending with the anchor portion, in this example "name"; from "? The part between "start and" # "is a parameter part, and the parameter may allow a plurality of parameters, and" & "is used as a separator between the parameters, and the parameter part in this example is" board id=5 & id=24618 & page=1 ". Wherein the relative path from the virtual directory portion to the last may constitute the aforementioned target page.
As described above, after the page type and the page identification of the target page are obtained, part or all of the path information for accessing the target page may be generated. Wherein, the total path information may be: the complete URL routing information; the partial path information may be at least information including the page type and the page identifier, such as information of a parameter portion, or may be information that may characterize a target page access path, such as information from a domain name portion to a path before the last or "#", or may be information of a relative path of the target page relative to a device in which the target page is located, such as information from a virtual directory portion to a path before the last or "#", and so on.
Step S106: and acquiring URL routing information of the target page according to the path information.
Whether partial path information or full path information for accessing the target page is generated, since it already contains a portion for indicating the page type and page identification of the target page, accordingly, complete URL routing information for accessing the target page may be further generated in any suitable manner according to the structure of URL routing information, so as to achieve access to the target page according to the URL routing information.
For example, if the generated path information is a parameter part corresponding to the target page, according to the structure of the URL routing information, the file name of the target page, the relative path of the target page relative to the device where the target page is located, the domain name of the device, the protocol used for accessing the device, and other related information can be further obtained, so as to generate complete URL routing information conforming to the URL routing information structure.
Through the embodiment, the URL routing information of the target page carries the information of the page type and the information of the page identification of the target page, so that the target page access terminal can accurately call the matched page display control according to the information of the page type to analyze and display the page content identified by the information of the page identification. The method not only improves the display and access efficiency of page content, but also reduces the realization cost of correctly analyzing and accessing the target page, and reduces the resource loss.
The routing information processing method of the present embodiment may be performed by any suitable electronic device having data processing capabilities, including, but not limited to: mobile terminals (e.g., cell phones, PADs, etc.), servers, PCs, etc.
Example two
Referring to fig. 2, a flowchart of steps of a routing information processing method according to a second embodiment of the present invention is shown.
The method for processing the route information according to the embodiment of the present invention is still described from the URL route information generation side of the target page, for example, the server side or the publishing client side of the target page.
The route information processing method of the present embodiment includes the steps of:
step S202: and determining the page type and page identification of the target page.
As previously described, the page type may be used to indicate the development framework type of the target page, and the page identification may be used to identify the page for identification and access. In this embodiment, the page identifier is used to indicate the page name of the target page, and the page identifier is in the form of the page name, so that on one hand, the page identifier is easier to obtain, and the implementation cost is reduced, and on the other hand, the page identifier is also compatible with the structure of the existing URL routing information to the greatest extent.
Optionally, in this step, in addition to determining the page type and the page identifier of the target page, information such as the rendering parameters of the target page may also be determined.
Step S204: and generating partial or all path information for performing page access on the target page according to a preset path rule according to the page type and page identification of the target page.
In one possible way, this step may be implemented as: acquiring information of a preset path rule; acquiring first position information of a page type field and second position information of a page identification field from the information of the path rule; taking the page type of the target page as the value of the page type field, and taking the page identification of the target page as the value of the page identification field; and generating part or all path information for performing page access on the target page according to the first position information, the second position information, the value of the page type field and the value of the page identification field. The position of the page type and the page identification in the generated path can be clearly known through the first position information and the second position information, and then corresponding path information can be generated according to the page type and the page identification of the target page. Thus, the efficiency of generating path information can be effectively improved.
Wherein optionally, the predetermined path rule includes: and setting the page type and page identification of the target page in the parameter part of the path information. In this way, it is possible to maximally conform to the structure of the existing URL routing information. However, in practical applications, those skilled in the art may set the page type and page identifier of the target page at other positions in the path information, such as the position of the file name part, so long as the target page can be correctly parsed and processed.
In this embodiment, the page type field is used to indicate the type of the development framework of the target page, and the page identification field is used to indicate the page name of the target page.
For example, a page type field represented by "_type_" and a page identification field represented by "_page_" may be used, for example, "? And generating path information comprising the page type and the page identifier of the target page in the form of_type = [ page type ] & _page = [ page name ] "so as to realize the purpose of carrying the page type and the page identifier of the target page in the URL routing information. Where [ page type ] is the value of the page type field, representing the specific type of the target page, including, but not limited to, weex page, fluter page, RN page, native page, web page, etc. The page name is a value of the page identification field, and represents the page name of the target page. The generated path information may be "? Type_ = weex? Type_ = weex? Type_ = weex? The_type_=weex &_page_jjj_a123″ may be other path information including "_type_=weex &_page_jj_a123″.
In addition, optionally, the generated path information may also carry the rendering parameters of the target page, the anchor information of the target page, and the like.
The rendering parameters of the target page can be realized by adopting conventional rendering parameters according to actual requirements, so that rapid and efficient rendering of the target page can be realized, and the anchor information of the target page can also be conventionally set. In this case, the present step may be implemented as: and generating partial or all path information for performing page access on the target page according to the predetermined path rule according to at least one of rendering parameters and anchor information of the target page, and page type and page identification of the target page.
For example, a page type field represented by "_type_", a page identification field represented by "_page_", and a rendering parameters field represented by "key" (in particular applications, the particular form of the key matches the rendering requirements), then the information can be passed through, for example "? And generating path information comprising the page type, page identification and rendering parameters of the target page in the form of_type = [ page type ] & _page = [ page name ] & key=value ", thereby realizing the purpose of carrying the page type, page identification and rendering parameters of the target page in the URL routing information. The value is a value of a rendering parameter, and represents a parameter used for rendering the target page, and other parameters and fields have the meanings described above. Generated path information such as "? Type_ = weex & _ page_ = a123& board id=5 "(in this path information," key "appears as" board id "whose corresponding" value "is equal to 5), etc.
Step S206: and acquiring URL routing information of the target page according to the path information.
After generating part or all of the path information for the page access to the target page, the complete URL routing information for accessing the target page may be further generated in any suitable manner according to the structure of the URL routing information.
For example, if the path information of the generated target page is "/news/index. Asp? The_type_=weex &_page_jj_a123″ can further acquire domain name information of the device where the target page is located, such as "www.aspxfans.com", and further, if it is determined that the access is performed using the HTTP protocol, URL routing information for accessing the target page can be generated, that is: "http:// www.aspxfans.com/news/index. Asp? Type_ = weex &_page_ = a123".
Step S208: and acquiring the information of the backup page of the target page, and generating URL routing information of the backup page according to the page type and the page identification of the backup page.
The information of the backup page comprises a page type and a page identification of the backup page, wherein the page type of the backup page is a preset type different from the page type of the target page, and URL routing information of the backup page is used for replacing URL routing information of the target page which fails to be displayed.
The backup page is a page for carrying out content backup on the target page, and the content of the backup page is the same as that of the target page but the page type of the backup page is different from that of the target page.
In this embodiment, the page type of the backup page is set to be a predetermined type different from the page type of the target page, alternatively, when the page type of the target page is not a Web page, the predetermined type may be a Web page developed using a hypertext markup language (such as HTML language or H5 language). However, the method is not limited thereto, and those skilled in the art may set the page type of the backup page appropriately according to the actual requirement, which is different from the page type of the target page.
Setting the backup page for the target page can enable an application accessing the target page, such as a browser, to acquire the content of the target page through the backup page when the target page fails to be displayed, namely, an alternative scheme is provided for accessing the target page. When the preset type of the backup page selects the type of the Web page, the access of the application to the backup page can be effectively ensured because the Web page can be supported by most applications, so as to obtain the content of the target page.
It should be noted that this step is an optional step. In practical applications, the backup page of the target page may not be used, and this step may be performed before or after any of the foregoing steps, or may be performed in parallel with any of the foregoing steps.
Through the process, the URL routing information can support pages with various different page types, and URL routing information switching among the pages with various different page types is realized; moreover, the URL routing information of the target page can be obtained, and the URL routing information of the backup page of the target page can be obtained, so that the normal access to the page content of the target page is effectively ensured.
Through the embodiment, the URL routing information of the target page carries the information of the page type and the information of the page identification of the target page, so that the target page access terminal can accurately call the matched page display control according to the information of the page type to analyze and display the page content identified by the information of the page identification. The method not only improves the display and access efficiency of page content, but also reduces the realization cost of correctly analyzing and accessing the target page, and reduces the resource loss.
The routing information processing method of the present embodiment may be performed by any suitable electronic device having data processing capabilities, including, but not limited to: mobile terminals (e.g., cell phones, PADs, etc.), servers, PCs, etc.
Example III
Referring to fig. 3, a flowchart of steps of a routing information processing method according to a third embodiment of the present invention is shown.
The present embodiment describes the routing information processing method according to the embodiment of the present invention from an analysis side of URL routing information of a target page, for example, a client side accessing the target page.
The route information processing method of the present embodiment includes the steps of:
step S302: and acquiring URL routing information of the target page to be accessed.
The URL routing information carries information of the page type and information of the page identification of the target page set according to a preset path rule.
The URL routing information received in this embodiment may be URL routing information generated using the scheme in the first or second embodiment. The predetermined path rule is the same as the path rule used by the URL route information generation side for generating the URL route information; the page type may be used to indicate a development framework type for the target page, including, but not limited to: a Weex page developed using a Weex development framework, a Flutter page developed using a Flutter development framework, an RN page developed using a real Native development framework, a Native page developed using an Android system, a Web page developed using a hypertext markup language (e.g., HTML language or H5 language, etc.), and so forth; the page identifier may be used to identify a page for identification and access to the page, and in embodiments of the present invention, the page identifier may take any suitable form, including but not limited to: page name, page identification symbol, etc.
When a user wants to access a target page, for example, when accessing the target page through a browser or other terminal application, the terminal application may first obtain URL routing information of the target page to be accessed through any suitable manner, for example, when clicking a link of a certain target page, obtain URL routing information corresponding to the link, and so on.
Step S304: and acquiring the information of the page type and the information of the page identification of the target page from the URL routing information.
Because the generation side and the analysis side of the URL routing information follow the preset path rules, the analysis side of the URL routing information can accurately analyze the information of the page type and the information of the page identification of the target page from the obtained URL routing information of the target page.
For example, if the predetermined path rule indicates that the information of the page type and the information of the page identifier are set in the parameter portion of the URL routing information and are marked with "_type_" and "_page_" respectively, the parsing side may determine the parameter portion of the URL routing information first, for example "? And (3) analyzing the content corresponding to the "_type_" and the "_page_" from the later part, and obtaining the information of the page type and the information of the page identification of the target page.
Step S306: and calling a page display control matched with the page type according to the information of the page type of the target page to analyze and display the content of the target page identified by the information of the page identification of the target page.
For example, the root node of the Weex page is a FrameLayout control, which needs to be parsed and exposed by calling the FrameLayout control; the root node of the Flutter page is also a FrameLayout control, and the FrameLayout control is also required to be analyzed and displayed by calling; the root node of the RN page is also a FrameLayout control, and the FrameLayout control is required to be analyzed and displayed by calling the FrameLayout control; the Native page can be analyzed and displayed by various ViewGroup controls and View controls; the Web page may be parsed and exposed by the WebView control.
Through the embodiment, the URL routing information of the target page carries the information of the page type and the information of the page identification of the target page, and the matched page display control can be called according to the information of the page type so as to analyze and display the page content identified by the information of the page identification. On the one hand, the page display control is matched with the page type, so that normal analysis and display of page contents can be realized, and the problem that the page contents of a target page cannot be normally analyzed and displayed by using a default page display control due to the fact that the page type cannot be determined is avoided; on the other hand, the URL routing information definitely carries the information of the page type, so that the page type of the target page is determined without additionally analyzing the page content of the target page, the realization cost of the page type determination is greatly reduced, and the resource loss caused by analyzing the page content is avoided.
Therefore, the problem of how to quickly determine the type of the target page to be accessed so as to realize normal access to the target page is effectively solved through the embodiment.
The routing information processing method of the present embodiment may be performed by any suitable electronic device having data processing capabilities, including, but not limited to: mobile terminals (e.g., cell phones, PADs, etc.), servers, PCs, etc.
Example IV
Referring to fig. 4, a flowchart of steps of a routing information processing method according to a fourth embodiment of the present invention is shown.
The embodiment still describes the routing information processing method according to the embodiment of the present invention from the analysis side of URL routing information of the target page, for example, the client side accessing the target page.
The route information processing method of the present embodiment includes the steps of:
step S402: and acquiring URL routing information of the target page to be accessed.
The URL routing information carries information of the page type and information of the page identification of the target page set according to a preset path rule.
Optionally, in this embodiment, the information of the page type of the target page is used to indicate the development framework type of the target page, and the information of the page identifier of the target page is used to indicate the page name of the target page. The page identifier adopts the form of page name, so that the page identifier is more easily obtained, the implementation cost is reduced, and the page identifier is compatible with the structure of the conventional URL routing information to the greatest extent.
For example, if the predetermined path rule indicates that the information of the page type and the information of the page identifier are set in the parameter portion of the URL routing information and are marked with "_type_" and "_page_" respectively, the parsing side may determine the parameter portion of the URL routing information first, for example "? And (3) analyzing the content corresponding to the "_type_" and the "_page_" from the later part, and obtaining the information of the page type and the information of the page identification of the target page.
In one example, if the URL routing information of the target page is "http:// www.aspxfans.com/news/index. Asp? The parameter part of the "_type_ = Weex &_page_ = a123& board id=5 & id=24618#name" is "_type_ = Weex &_page_ = a123& board id=5 & id= 24618", from which "_type_ = Weex &_page_ = a123" can be known, that is, the page type of the target page is a Weex page, and the page identifier is the page name "a123".
In addition, other information may be optionally carried in the URL routing information in the present embodiment, including, but not limited to, rendering parameters of the target page. The rendering parameters may be any suitable parameters for page rendering, which is not limited in this embodiment of the present invention.
Step S404: and acquiring the information of the page type and the information of the page identification of the target page from the URL routing information of the target page.
Because the generation side and the analysis side of the URL routing information both follow the same path rule, when the position of the corresponding information set in the path rule, this step may be implemented as follows: and acquiring the information of the page type and the information of the page identification of the target page from the preset position of the URL routing information of the target page according to a preset path rule. By adopting a mode of a preset position, the information of the page type and the information of the page identification can be rapidly and accurately positioned.
Optionally, the predetermined location is a location of a parameter portion in the URL routing information. The information of the page type and the information of the page identification of the target page are arranged at the position of the parameter part, so that the information can be adapted to the structure of the conventional URL routing information to the greatest extent, and the scheme implementation difficulty and the implementation cost are reduced. But not limited to, in practical application, the predetermined position may also be set according to practical requirements.
Step S406: and calling a page display control matched with the page type according to the information of the page type of the target page to analyze and display the content of the target page identified by the information of the page identification of the target page.
As previously described, pages of different page types may correspond to different page presentation controls. Therefore, after the information of the page type of the target page is obtained, the page display control matched with the page type can be called to analyze and display the content of the target page. For example, the Weex page, flutter page, and RN page call the FrameLayout control, the Native page call the ViewGroup control+View control, and the Web page call the WebView control.
When the URL routing information of the target page further carries the rendering parameter of the target page, the step may be implemented as follows: according to the information of the page type of the target page, calling a page display control matched with the page type to analyze the content of the target page identified by the information of the page identification of the target page, and rendering and displaying the content of the analyzed target page according to the rendering parameters.
Step S408: and receiving a page conversion instruction triggered by the display failure of the target page.
For example, if the execution of step S406 fails, a page conversion instruction is triggered, where the page conversion instruction is used to instruct to convert the target page into a backup page with a different type from the previous page. The backup page is a page for carrying out content backup on the target page, and the content of the backup page is the same as that of the target page but the page type of the backup page is different from that of the target page.
Step S410: and acquiring URL routing information of the backup page of the target page according to the page conversion instruction.
In this embodiment, the page type of the backup page is a predetermined type different from the page type of the target page.
As previously described, when the page type of the target page is not a Web page, then the page type of the backup page may be a Web page developed using a hypertext markup language (e.g., HTML language or H5 language, etc.). However, the method is not limited thereto, and those skilled in the art may set the page type of the backup page appropriately according to the actual requirement, which is different from the page type of the target page.
The URL routing information of the backup page may carry information of the page type and information of the page identifier of the backup page, but may also be, as in conventional URL routing information, not carry information of the page type and information of the page identifier, and only the analysis side of the URL routing information may acquire the related information of the predetermined type.
It should be noted that, the page identifier of the target page may be the same as the page identifier of the backup page, for example, the name is the same, and in this case, the page to be analyzed and displayed specifically may be determined by means of the information of the page type, for example, under the page type indicated by the field value of "_type_", the page indicated by the field value of "_page_" is searched for analysis and display.
Step S412: and calling a page display control matched with the preset type or a page display control matched with the page type information of the backup page carried in the URL routing information of the backup page, and analyzing and displaying the content of the backup page according to the page identification information of the backup page carried in the URL routing information of the backup page.
If the URL routing information does not carry the information of the page type and the information of the page identification, the analysis side of the URL routing information can call a corresponding page display control to analyze and display the backup page according to the preset type; if the URL routing information carries the information of the page type and the information of the page identification, the analysis side of the URL routing information analyzes the information of the page type of the backup page from the URL routing information of the backup page, and then the corresponding page display control is called to analyze and display the backup page.
Through the steps S408-S412, when the application accessing the target page does not support the page type of the target page and fails to display the target page, the content of the target page can be obtained through the backup page, so that an alternative scheme is provided for accessing the target page. When the preset type of the backup page selects the type of the Web page, the access of the application to the backup page can be effectively ensured because the Web page can be supported by most applications, so as to obtain the content of the target page.
It should be noted that, the steps S408 to S412 are optional steps. In practical applications, the backup page and its related information may not be provided.
Through the embodiment, the URL routing information of the target page carries the information of the page type and the information of the page identification of the target page, and the matched page display control can be called according to the information of the page type so as to analyze and display the page content identified by the information of the page identification. On the one hand, the page display control is matched with the page type, so that normal analysis and display of page contents can be realized, and the problem that the page contents of a target page cannot be normally analyzed and displayed by using a default page display control due to the fact that the page type cannot be determined is avoided; on the other hand, the URL routing information definitely carries the information of the page type, so that the page type of the target page is determined without additionally analyzing the page content of the target page, the realization cost of the page type determination is greatly reduced, and the resource loss caused by analyzing the page content is avoided.
Therefore, the problem of how to quickly determine the type of the target page to be accessed so as to realize normal access to the target page is effectively solved through the embodiment.
The routing information processing method of the present embodiment may be performed by any suitable electronic device having data processing capabilities, including, but not limited to: mobile terminals (e.g., cell phones, PADs, etc.), servers, PCs, etc.
Example five
Referring to fig. 5, there is shown a block diagram of a routing information processing apparatus according to a fifth embodiment of the present invention.
The route information processing device of the present embodiment includes: a first obtaining module 502, configured to obtain URL routing information of a target page to be accessed, where the URL routing information carries information of a page type and information of a page identifier of the target page set according to a predetermined path rule; a second obtaining module 504, configured to obtain, from the URL routing information, information of a page type and information of a page identifier of the target page; and the calling module 506 is configured to call a page display control matched with the page type according to the information of the page type, so as to analyze and display the content of the target page identified by the information of the page identification.
The routing information processing device of the present embodiment is configured to implement the corresponding routing information processing method in the third or fourth method embodiment, and has the beneficial effects of the corresponding method embodiment, which is not described herein. In addition, the functional implementation of each module in the routing information processing apparatus of this embodiment may refer to the description of the corresponding portion in the foregoing method embodiment, which is not repeated herein.
Example six
Referring to fig. 6, there is shown a block diagram of a routing information processing apparatus according to a sixth embodiment of the present invention.
The route information processing device of the present embodiment includes: a first obtaining module 602, configured to obtain URL routing information of a target page to be accessed, where the URL routing information carries information of a page type and information of a page identifier of the target page set according to a predetermined path rule; a second obtaining module 604, configured to obtain, from the URL routing information, information of a page type and information of a page identifier of the target page; and a calling module 606, configured to call a page display control matched with the page type according to the information of the page type, so as to analyze and display the content of the target page identified by the information of the page identification.
Optionally, the second obtaining module 604 is configured to obtain, from a predetermined location of the URL routing information, information of a page type and information of a page identifier of the target page according to the predetermined path rule.
Optionally, the predetermined location is a location of a parameter portion in the URL routing information.
Optionally, the routing information processing apparatus of the present embodiment further includes: a conversion module 608, configured to receive a page conversion indication triggered by a presentation failure of the target page; acquiring URL routing information of a backup page of the target page according to the page conversion instruction, wherein the page type of the backup page is a preset type different from the page type of the target page; and calling a page display control matched with the preset type or a page display control matched with the page type information of the backup page carried in the URL routing information of the backup page, and analyzing and displaying the content of the backup page according to the page identification information of the backup page carried in the URL routing information of the backup page.
Optionally, the URL routing information further carries rendering parameters of the target page; the calling module 606 is configured to call a page display control that is matched with the page type according to the information of the page type, parse the content of the target page identified by the information of the page identification, and render and display the parsed content of the target page according to the rendering parameters.
Optionally, the information of the page type of the target page is used for indicating the development framework type of the target page, and the information of the page identification of the target page is used for indicating the page name of the target page.
The routing information processing device of the present embodiment is configured to implement the corresponding routing information processing method in the third or fourth method embodiment, and has the beneficial effects of the corresponding method embodiment, which is not described herein. In addition, the functional implementation of each module in the routing information processing apparatus of this embodiment may refer to the description of the corresponding portion in the foregoing method embodiment, which is not repeated herein.
Example seven
Referring to fig. 7, there is shown a block diagram of a routing information processing apparatus according to a seventh embodiment of the present invention.
The generation side of URL route information set by the route information processing apparatus of the present embodiment includes: a determining module 702, configured to determine a page type and a page identifier of a target page; a first generating module 704, configured to generate, according to the page type and the page identifier, part or all of path information for performing page access on the target page according to a predetermined path rule; and a third obtaining module 706, configured to obtain URL routing information of the target page according to the path information.
The routing information processing device of the present embodiment is configured to implement the corresponding routing information processing method in the first or second embodiment of the foregoing method, and has the beneficial effects of the corresponding method embodiment, which is not described herein again. In addition, the functional implementation of each module in the routing information processing apparatus of this embodiment may refer to the description of the corresponding portion in the foregoing method embodiment, which is not repeated herein.
Example eight
Referring to fig. 8, there is shown a block diagram of a routing information processing apparatus according to an eighth embodiment of the present invention.
The generation side of URL route information set by the route information processing apparatus of the present embodiment includes: a determining module 802, configured to determine a page type and a page identifier of a target page; a first generating module 804, configured to generate, according to the page type and the page identifier, part or all of path information for performing page access on the target page according to a predetermined path rule; and a third obtaining module 806, configured to obtain URL routing information of the target page according to the path information.
Optionally, the first generating module 804 is configured to obtain information of the predetermined path rule; acquiring first position information of a page type field and second position information of a page identification field from the information of the path rule; taking the page type of the target page as the value of the page type field, and taking the page identification of the target page as the value of the page identification field; and generating part or all path information for performing page access on the target page according to the first position information, the second position information, the value of the page type field and the value of the page identification field.
Optionally, the page type field is used for indicating the type of the development framework of the target page, and the page identification field is used for indicating the page name of the target page; correspondingly, the page type of the target page is used for indicating the development framework type of the target page, and the page identification of the target page is used for indicating the page name of the target page.
Optionally, the predetermined path rule includes: and setting the page type and the page identification to a rule of a parameter part in the path information.
Optionally, the routing information processing apparatus of the present embodiment further includes: a second generating module 808, configured to obtain information of a backup page of the target page, where the information of the backup page includes a page type and a page identifier of the backup page, and the page type of the backup page is a predetermined type different from the page type of the target page; and generating URL routing information of the backup page according to the page type and the page identification of the backup page, wherein the URL routing information of the backup page is used for replacing the URL routing information of the target page which fails to be displayed.
Optionally, the first generating module 804 is configured to generate, according to a predetermined path rule, part or all of path information for performing page access on the target page according to the page type, the page identifier, and the rendering parameter of the target page.
The routing information processing device of the present embodiment is configured to implement the corresponding routing information processing method in the first or second embodiment of the foregoing method, and has the beneficial effects of the corresponding method embodiment, which is not described herein again. In addition, the functional implementation of each module in the routing information processing apparatus of this embodiment may refer to the description of the corresponding portion in the foregoing method embodiment, which is not repeated herein.
Example nine
Referring to fig. 9, a schematic structural diagram of an electronic device according to a ninth embodiment of the present invention is shown, and the specific embodiment of the present invention is not limited to the specific implementation of the electronic device.
As shown in fig. 9, the electronic device may include: a processor 902, a communication interface (Communications Interface), a memory 906, and a communication bus 908.
Wherein:
processor 902, communication interface 904, and memory 906 communicate with each other via a communication bus 908.
A communication interface 904 for communicating with other electronic devices or servers.
The processor 902 is configured to execute the program 910, and may specifically perform the relevant steps in the third or fourth embodiment of the routing information processing method.
In particular, the program 910 may include program code including computer-operating instructions.
The processor 902 may be a central processing unit, CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors comprised by the smart device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A memory 906 for storing a program 910. Memory 906 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 910 may be used to cause the processor 902 to perform operations comprising: acquiring URL routing information of a target page to be accessed, wherein the URL routing information carries information of a page type and information of a page identifier of the target page, which are set according to a preset path rule; acquiring the information of the page type and the information of the page identification of the target page from the URL routing information; and according to the information of the page type, calling a page display control matched with the page type to analyze and display the content of the target page identified by the information of the page identification.
In an alternative embodiment, the program 910 is further configured to, when obtaining the information of the page type and the information of the page identifier of the target page from the URL routing information, cause the processor 902 to obtain the information of the page type and the information of the page identifier of the target page from a predetermined location of the URL routing information according to the predetermined path rule.
In an alternative embodiment, the predetermined location is a location of a parameter portion in the URL routing information.
In an alternative embodiment, the program 910 is further configured to cause the processor 902 to receive a page conversion indication triggered by a presentation failure of the target page; acquiring URL routing information of a backup page of the target page according to the page conversion instruction, wherein the page type of the backup page is a preset type different from the page type of the target page; and calling a page display control matched with the preset type or a page display control matched with the page type information of the backup page carried in the URL routing information of the backup page, and analyzing and displaying the content of the backup page according to the page identification information of the backup page carried in the URL routing information of the backup page.
In an optional implementation manner, the URL routing information further carries a rendering parameter of the target page; the program 910 is further configured to cause the processor 902 to, when calling, according to the information of the page type, a page display control that is matched with the page type to parse and display the content of the target page identified by the information of the page identifier, call, according to the information of the page type, the page display control that is matched with the page type to parse the content of the target page identified by the information of the page identifier, and render and display the parsed content of the target page according to the rendering parameter.
In an optional implementation manner, the information of the page type of the target page is used for indicating the development framework type of the target page, and the information of the page identification of the target page is used for indicating the page name of the target page.
The specific implementation of each step in the procedure 910 may refer to the corresponding step and corresponding description in the unit in the third or fourth embodiment of the routing information processing method, which is not described herein. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedure descriptions in the foregoing method embodiments, which are not repeated herein.
Through the electronic equipment of the embodiment, the URL routing information of the target page carries the information of the page type and the information of the page identification of the target page, so that the target page access terminal can accurately call the matched page display control according to the information of the page type to analyze and display the page content identified by the information of the page identification. The method not only improves the display and access efficiency of page content, but also reduces the realization cost of correctly analyzing and accessing the target page, and reduces the resource loss.
Examples ten
Referring to fig. 10, a schematic structural diagram of an electronic device according to a tenth embodiment of the present invention is shown, and the specific embodiment of the present invention is not limited to the specific implementation of the electronic device.
As shown in fig. 10, the electronic device may include: a processor 1002, a communication interface Communications Interface, a memory 1006, and a communication bus 1008.
Wherein:
the processor 1002, communication interface 1004, and memory 1006 communicate with each other via a communication bus 1008.
Communication interface 1004 is used to communicate with other electronic devices or servers.
The processor 1002 is configured to execute the program 1010, and may specifically perform the relevant steps in the first or second embodiment of the routing information processing method.
In particular, program 1010 may include program code including computer operating instructions.
The processor 1002 may be a Central Processing Unit (CPU) or a specific integrated circuit ASIC (Application Specific Integrated Circuit) or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors comprised by the smart device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 1006 for storing programs 1010. The memory 1006 may include high-speed RAM memory or may further include non-volatile memory (non-volatile memory), such as at least one magnetic disk memory.
The program 1010 may be specifically operable to cause the processor 1002 to: determining the page type and page identification of a target page; generating partial or all path information for performing page access on the target page according to the page type and the page identification and a preset path rule; and acquiring URL routing information of the target page according to the path information.
In an alternative embodiment, the program 1010 is further configured to cause the processor 1002 to obtain information of a predetermined path rule when generating part or all of path information for performing page access on the target page according to the page type and the page identifier and according to the predetermined path rule; acquiring first position information of a page type field and second position information of a page identification field from the information of the path rule; taking the page type of the target page as the value of the page type field, and taking the page identification of the target page as the value of the page identification field; and generating part or all path information for performing page access on the target page according to the first position information, the second position information, the value of the page type field and the value of the page identification field.
In an alternative embodiment, the page type field is used to indicate the type of development framework of the target page, and the page identification field is used to indicate the page name of the target page; correspondingly, the page type of the target page is used for indicating the development framework type of the target page, and the page identification of the target page is used for indicating the page name of the target page.
In an alternative embodiment, the predetermined path rule includes: and setting the page type and the page identification to a rule of a parameter part in the path information.
In an alternative embodiment, the program 1010 is further configured to cause the processor 1002 to obtain information of a backup page of the target page, where the information of the backup page includes a page type and a page identifier of the backup page, and the page type of the backup page is a predetermined type different from the page type of the target page; and generating URL routing information of the backup page according to the page type and the page identification of the backup page, wherein the URL routing information of the backup page is used for replacing the URL routing information of the target page which fails to be displayed.
In an alternative embodiment, the program 1010 is further configured to, when generating, according to the page type and the page identifier, part or all of the path information for performing page access on the target page according to a predetermined path rule, generate, according to the page type, the page identifier, and the rendering parameter of the target page, part or all of the path information for performing page access on the target page according to the predetermined path rule.
The specific implementation of each step in the program 1010 may refer to the corresponding step and corresponding description in the unit in the first or second embodiment of the routing information processing method, which is not described herein. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedure descriptions in the foregoing method embodiments, which are not repeated herein.
Through the electronic equipment of the embodiment, the URL routing information of the target page carries the information of the page type and the information of the page identification of the target page, and the matched page display control can be called according to the information of the page type so as to analyze and display the page content identified by the information of the page identification. On the one hand, the page display control is matched with the page type, so that normal analysis and display of page contents can be realized, and the problem that the page contents of a target page cannot be normally analyzed and displayed by using a default page display control due to the fact that the page type cannot be determined is avoided; on the other hand, the URL routing information definitely carries the information of the page type, so that the page type of the target page is determined without additionally analyzing the page content of the target page, the realization cost of the page type determination is greatly reduced, and the resource loss caused by analyzing the page content is avoided.
Therefore, the electronic device of the embodiment effectively solves the problem of how to quickly determine the type of the target page to be accessed so as to realize normal access to the target page.
It should be noted that, according to implementation requirements, each component/step described in the embodiments of the present invention may be split into more components/steps, or two or more components/steps or part of operations of the components/steps may be combined into new components/steps, so as to achieve the objects of the embodiments of the present invention.
The above-described methods according to embodiments of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and to be stored in a local recording medium downloaded through a network, so that the methods described herein may be stored on such software processes on a recording medium using a general purpose computer, special purpose processor, or programmable or special purpose hardware such as an ASIC or FPGA. It is understood that a computer, processor, microprocessor controller, or programmable hardware includes a memory component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the routing information processing methods described herein. Further, when the general-purpose computer accesses code for implementing the routing information processing method shown herein, execution of the code converts the general-purpose computer into a special-purpose computer for executing the routing information processing method shown herein.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present invention.
The above embodiments are only for illustrating the embodiments of the present invention, but not for limiting the embodiments of the present invention, and various changes and modifications may be made by one skilled in the relevant art without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also fall within the scope of the embodiments of the present invention, and the scope of the embodiments of the present invention should be defined by the claims.

Claims (22)

1. A routing information processing method, comprising:
acquiring URL routing information of a target page to be accessed, wherein the URL routing information carries information of a page type and information of a page identifier of the target page, which are set according to a preset path rule;
Acquiring the information of the page type and the information of the page identification of the target page from the URL routing information;
according to the information of the page type, calling a page display control matched with the page type to analyze and display the content of the target page identified by the information of the page identification;
receiving a page conversion instruction triggered by display failure of the target page;
acquiring URL routing information of a backup page of the target page according to the page conversion instruction, wherein the page type of the backup page is a preset type different from the page type of the target page;
and calling a page display control matched with the preset type or a page display control matched with the page type information of the backup page carried in the URL routing information of the backup page, and analyzing and displaying the content of the backup page according to the page identification information of the backup page carried in the URL routing information of the backup page.
2. The method of claim 1, wherein obtaining information of a page type and information of a page identification of the target page from the URL routing information comprises:
And acquiring the information of the page type and the information of the page identification of the target page from the preset position of the URL routing information according to the preset path rule.
3. The method of claim 2, wherein the predetermined location is a location of a parameter portion in the URL routing information.
4. The method of claim 1, wherein the URL routing information further carries rendering parameters of the target page;
and according to the information of the page type, calling a page display control matched with the page type to analyze and display the content of the target page identified by the information of the page identification, wherein the method comprises the following steps:
and according to the information of the page type, calling a page display control matched with the page type to analyze the content of the target page identified by the information of the page identification, and rendering and displaying the analyzed content of the target page according to the rendering parameters.
5. The method of any of claims 1-4, wherein the information of the page type of the target page is used to indicate a development framework type of the target page, and the information of the page identification of the target page is used to indicate a page name of the target page.
6. A routing information processing method, comprising:
determining the page type and page identification of a target page;
generating partial or all path information for performing page access on the target page according to the page type and the page identification and a preset path rule;
acquiring URL routing information of the target page according to the path information;
acquiring information of a backup page of the target page, wherein the information of the backup page comprises a page type and a page identification of the backup page, and the page type of the backup page is a preset type different from the page type of the target page;
and generating URL routing information of the backup page according to the page type and the page identification of the backup page, wherein the URL routing information of the backup page is used for replacing the URL routing information of the target page which fails to be displayed.
7. The method of claim 6, wherein generating, according to the page type and the page identifier, part or all of path information for performing page access to the target page according to a predetermined path rule, comprises:
acquiring information of the preset path rule;
Acquiring first position information of a page type field and second position information of a page identification field from the information of the path rule;
taking the page type of the target page as the value of the page type field, and taking the page identification of the target page as the value of the page identification field;
and generating part or all path information for performing page access on the target page according to the first position information, the second position information, the value of the page type field and the value of the page identification field.
8. The method of claim 7, wherein the page type field is to indicate a type of development framework of the target page, and the page identification field is to indicate a page name of the target page;
correspondingly, the page type of the target page is used for indicating the development framework type of the target page, and the page identification of the target page is used for indicating the page name of the target page.
9. The method of any of claims 6-8, wherein the predetermined path rules comprise: and setting the page type and the page identification to a rule of a parameter part in the path information.
10. The method according to any one of claims 6-8, wherein generating part or all of path information for performing page access to the target page according to a predetermined path rule according to the page type and the page identification, comprises:
and generating partial or all path information for performing page access on the target page according to a preset path rule according to the page type, the page identification and the rendering parameters of the target page.
11. A routing information processing apparatus comprising:
the first acquisition module is used for acquiring URL routing information of a target page to be accessed, wherein the URL routing information carries information of a page type and information of a page identifier of the target page, which are set according to a preset path rule;
the second acquisition module is used for acquiring the information of the page type and the information of the page identification of the target page from the URL routing information;
the calling module is used for calling a page display control matched with the page type according to the information of the page type to analyze and display the content of the target page identified by the information of the page identification;
The conversion module is used for receiving page conversion instructions triggered by display failure of the target page; acquiring URL routing information of a backup page of the target page according to the page conversion instruction, wherein the page type of the backup page is a preset type different from the page type of the target page; and calling a page display control matched with the preset type or a page display control matched with the page type information of the backup page carried in the URL routing information of the backup page, and analyzing and displaying the content of the backup page according to the page identification information of the backup page carried in the URL routing information of the backup page.
12. The apparatus of claim 11, wherein the second obtaining module is configured to obtain, from a predetermined location of the URL routing information, information of a page type and information of a page identifier of the target page according to the predetermined path rule.
13. The apparatus of claim 12, wherein the predetermined location is a location of a parameter portion in the URL routing information.
14. The apparatus of claim 11, wherein the URL routing information further carries rendering parameters of the target page;
And the calling module is used for calling a page display control matched with the page type according to the information of the page type, analyzing the content of the target page identified by the information of the page identification, and rendering and displaying the analyzed content of the target page according to the rendering parameters.
15. The apparatus of any of claims 11-14, wherein the information of the page type of the target page is to indicate a development framework type of the target page, and the information of the page identification of the target page is to indicate a page name of the target page.
16. A routing information processing apparatus comprising:
the determining module is used for determining the page type and the page identification of the target page;
the first generation module is used for generating partial or all path information for carrying out page access on the target page according to the page type and the page identification and a preset path rule;
the third acquisition module is used for acquiring URL routing information of the target page according to the path information;
the second generation module is used for acquiring the information of the backup page of the target page, wherein the information of the backup page comprises the page type and the page identification of the backup page, and the page type of the backup page is a preset type different from the page type of the target page; and generating URL routing information of the backup page according to the page type and the page identification of the backup page, wherein the URL routing information of the backup page is used for replacing the URL routing information of the target page which fails to be displayed.
17. The apparatus of claim 16, wherein the first generation module is configured to obtain information of the predetermined path rule; acquiring first position information of a page type field and second position information of a page identification field from the information of the path rule; taking the page type of the target page as the value of the page type field, and taking the page identification of the target page as the value of the page identification field; and generating part or all path information for performing page access on the target page according to the first position information, the second position information, the value of the page type field and the value of the page identification field.
18. The apparatus of claim 17, wherein the page type field is to indicate a type of development framework of the target page, and the page identification field is to indicate a page name of the target page;
correspondingly, the page type of the target page is used for indicating the development framework type of the target page, and the page identification of the target page is used for indicating the page name of the target page.
19. The apparatus of any of claims 16-18, wherein the predetermined path rule comprises: and setting the page type and the page identification to a rule of a parameter part in the path information.
20. The apparatus according to any one of claims 16-18, wherein the first generating module is configured to generate, according to a predetermined path rule, part or all of path information for performing page access to the target page according to the page type, the page identifier, and a rendering parameter of the target page.
21. An electronic device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform operations corresponding to the routing information processing method according to any one of claims 1 to 5; alternatively, the executable instructions cause the processor to perform operations corresponding to the routing information processing method according to any one of claims 6 to 10.
22. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the routing information processing method according to any one of claims 1 to 5; alternatively, a routing information processing method according to any one of claims 6 to 10 is implemented.
CN201910154596.3A 2019-03-01 2019-03-01 Routing information processing method, device, electronic equipment and computer storage medium Active CN111639275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910154596.3A CN111639275B (en) 2019-03-01 2019-03-01 Routing information processing method, device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910154596.3A CN111639275B (en) 2019-03-01 2019-03-01 Routing information processing method, device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111639275A CN111639275A (en) 2020-09-08
CN111639275B true CN111639275B (en) 2023-04-25

Family

ID=72330467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910154596.3A Active CN111639275B (en) 2019-03-01 2019-03-01 Routing information processing method, device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111639275B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765792B (en) * 2020-10-28 2023-05-30 北京沃东天骏信息技术有限公司 Method, device and storage medium for generating navigation information
CN112631482A (en) * 2021-01-07 2021-04-09 上海哔哩哔哩科技有限公司 Page processing method and device
CN112925586B (en) * 2021-03-10 2024-02-27 深圳市活力天汇科技股份有限公司 Applet routing method, device, computer equipment and storage medium
CN113094674B (en) * 2021-04-28 2024-04-02 深圳赛安特技术服务有限公司 Page display method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929948A (en) * 2012-09-29 2013-02-13 北京奇虎科技有限公司 List page identification system and method
CN103200231A (en) * 2013-03-04 2013-07-10 华为技术有限公司 Strategy control method and system
CN105095526A (en) * 2015-09-29 2015-11-25 中企动力科技股份有限公司 URL (uniform resource locator) structural processing method, device and system
CN105956182A (en) * 2016-05-31 2016-09-21 北京奇艺世纪科技有限公司 Resource loading method, apparatus and system
CN105989083A (en) * 2015-02-11 2016-10-05 阿里巴巴集团控股有限公司 Access environment switching method and apparatus
CN106412024A (en) * 2016-09-07 2017-02-15 网易无尾熊(杭州)科技有限公司 Page acquisition method and device
CN106815006A (en) * 2015-11-30 2017-06-09 五八同城信息技术有限公司 Page invocation method, device and page management server
CN107644075A (en) * 2017-09-19 2018-01-30 北京京东尚科信息技术有限公司 The method and apparatus for collecting page info
CN108121568A (en) * 2017-11-30 2018-06-05 五八有限公司 Arouse method and device, electronic equipment and the readable storage medium storing program for executing of APP
CN108846131A (en) * 2018-07-03 2018-11-20 深圳鼎盛电脑科技有限公司 Weex page rendering method, apparatus, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9268873B2 (en) * 2006-08-04 2016-02-23 Yahoo! Inc. Landing page identification, tagging and host matching for a mobile application
CN107451162B (en) * 2016-06-01 2020-12-18 阿里巴巴(中国)有限公司 Network resource access device, hybrid device and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929948A (en) * 2012-09-29 2013-02-13 北京奇虎科技有限公司 List page identification system and method
CN103200231A (en) * 2013-03-04 2013-07-10 华为技术有限公司 Strategy control method and system
CN105989083A (en) * 2015-02-11 2016-10-05 阿里巴巴集团控股有限公司 Access environment switching method and apparatus
CN105095526A (en) * 2015-09-29 2015-11-25 中企动力科技股份有限公司 URL (uniform resource locator) structural processing method, device and system
CN106815006A (en) * 2015-11-30 2017-06-09 五八同城信息技术有限公司 Page invocation method, device and page management server
CN105956182A (en) * 2016-05-31 2016-09-21 北京奇艺世纪科技有限公司 Resource loading method, apparatus and system
CN106412024A (en) * 2016-09-07 2017-02-15 网易无尾熊(杭州)科技有限公司 Page acquisition method and device
CN107644075A (en) * 2017-09-19 2018-01-30 北京京东尚科信息技术有限公司 The method and apparatus for collecting page info
CN108121568A (en) * 2017-11-30 2018-06-05 五八有限公司 Arouse method and device, electronic equipment and the readable storage medium storing program for executing of APP
CN108846131A (en) * 2018-07-03 2018-11-20 深圳鼎盛电脑科技有限公司 Weex page rendering method, apparatus, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈晓志 ; 董守斌 ; 张凌 ; 张元丰 ; .基于URL类型和网页链接变化的信息采集更新算法.郑州大学学报(理学版).2007,(02),全文. *

Also Published As

Publication number Publication date
CN111639275A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN111639275B (en) Routing information processing method, device, electronic equipment and computer storage medium
CN103095681B (en) A kind of method and device detecting leak
US7870482B2 (en) Web browser extension for simplified utilization of web services
CN102393857B (en) Method and system for local call based on web page
CN107635027B (en) Domain name resolution method, medium, device and computing equipment
CN107145784B (en) Vulnerability scanning method and device and computer readable medium
US20150169600A1 (en) Interface display method and system for home gateway applicable to various display types
CN110798445B (en) Public gateway interface testing method and device, computer equipment and storage medium
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
EP4198773A1 (en) Image processing method and apparatus, and computer readable storage medium
CN112685671A (en) Page display method, device, equipment and storage medium
KR20120025066A (en) Web browsing system and method for rendering dynamic resource uri of script
CN112416964A (en) Data processing method, device and system, computer equipment and computer readable storage medium
CN109067860B (en) Mobile terminal message processing method and related device
CN108536489B (en) Method, apparatus, and computer-readable storage medium for matching resource environments
CN112714365B (en) Video playing method and system
CN113467777A (en) Path identification method, device and system
CN115329170A (en) Webpage crawling method, device, equipment and storage medium
CN107888451B (en) Method and device for testing Web server
CN113535586A (en) Test environment switching method, device, equipment and readable storage medium
CN111124530B (en) Method and device for calculating first rendering time of browser, browser and storage medium
CN106776285B (en) Webpage front end debugging method and device
CN106686037B (en) Page detection method, device, equipment and system
CN111756916A (en) Application processing method and device, electronic equipment and computer storage medium
CN116781586A (en) gRPC flow analysis method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant