Method for running applets, and electronic device

US11461111B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11461111-B2
Application numberUS-202017255045-A
CountryUS
Kind codeB2
Filing dateJul 14, 2020
Priority dateJan 9, 2020
Publication dateOct 4, 2022
Grant dateOct 4, 2022

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The embodiment of the present disclosure provides a method and an apparatus for running applets, an electronic device and a storage medium. The method includes obtaining uniform resource identifier (URI) information of the applet based on an opening request when the opening request of the applet is received, wherein a format of the URI comprises a protocol name of a target boot protocol and content corresponding to the protocol, and the target boot protocol is a universal boot protocol applied to a plurality of host applications when opening the applet; analyzing the URI information based on grammatical format description rules of the target boot protocol, to obtain a first parameter and a second parameter; obtaining an execution file package of the applet based on the first parameter; and rendering corresponding page resources in the execution file package based on the second parameter. Therefore, the opening of the applet across clients and servers may be unified with the pre-defined target boot protocol, which provides an important prerequisite for the multi-terminal operation of the applet and ensures that the applet has multi-terminal operation capabilities.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for running an applet, comprising: obtaining uniform resource identifier (URI) information of the applet based on an opening request when the opening request of the applet is received, wherein a format of the URI comprises a protocol name of a target boot protocol and content corresponding to the protocol, and the target boot protocol is a universal boot protocol applied to a plurality of host applications when opening the applet; analyzing the URI information based on grammatical format description rules of the target boot protocol, to obtain a first parameter and a second parameter; obtaining an execution file package of the applet based on the first parameter; and rendering corresponding page resources in the execution file package based on the second parameter; wherein the first parameter comprises an applet identifier and an applet version number; obtaining the execution file package of the applet based on the first parameter comprises: determining whether an execution file package corresponding to the applet is present in a cache based on the applet identifier in the first parameter; determining whether a version number of the execution file package corresponding to the applet is consistent with the applet version number in the first parameter in case that the execution file package corresponding to the applet is present in the cache; and obtaining the execution file package of the applet from the cache in case that the version number of the execution file package corresponding to the applet in the cache is consistent with the applet version number in the first parameter. 2. The method according to claim 1 wherein the first parameter further comprises a service identifier corresponding to the applet and a port number of the service; the method further comprises: generating a download request for the execution file package of the applet based on the applet identifier, the applet version number, the service identifier corresponding to the applet and the port number of the service in the first parameter, in case that the execution file package corresponding to the applet is not present in the cache and/or the version number of the execution file package corresponding to the applet in the cache is inconsistent with the applet version number in the first parameter; and obtaining the execution file package of the applet from a server corresponding to the service based on the download request. 3. The method according to claim 2 , wherein an appropriate transmission service for the download request is selected based on different business scenes; and wherein the transmission service comprises at least any one of a hypertext transfer protocol (http), a hypertext transfer secure protocol (https) and a full duplex communication protocol (websocket). 4. The method according to claim 1 , wherein the second parameter is configured to represent a parameter of a specific position in a specific page of the applet to be opened; rendering corresponding page resources in the execution file package based on the second parameter, comprises: determining a corresponding page to be displayed based on the parameter of the specific position in the specific page of the applet to be opened, and obtaining a business logic code file corresponding to the page to be displayed from the execution file package of the applet; and performing page rendering based on the corresponding business logic code file, to display the page to be displayed. 5. The method according to claim 4 , wherein performing page rendering based on the corresponding business logic code file, to display the page to be displayed, comprises: obtaining an applet framework code file corresponding to the page to be displayed from an applet front-end framework code packaging file; obtaining a first execution result file corresponding to the business logic code file from a cache, and obtaining a second execution result file corresponding to the applet framework code file; and displaying the page to be displayed based on the first execution result file and the second execution result file. 6. The method according to claim 5 , further comprising: compiling and executing the business logic code file to obtain a third execution result file corresponding to the business logic code file, in case that the first execution result file corresponding to the business logic code file from the cache is not obtained; and storing the third execution result file in the cache. 7. The method according to claim 1 , wherein the second parameter comprises a path of an applet page to be opened, a page parameter of the page to be opened and an anchor point of the page to be opened, wherein the page parameter of the page to be opened refers to a query term parameter used when a search query is requested in the page to be opened, and the anchor point of the page to be opened refers to a specific position in the page to be opened. 8. The method according to claim 1 , wherein obtaining uniform resource identifier (URI) information of the applet based on the opening request, comprises: identifying a fixed identification mark of the target boot protocol from the opening request; obtaining the URI information of the applet from a corresponding position in the opening request based on a position of the fixed identification mark. 9. An electronic device, comprising: at least one processor; and a memory communicatively connected with the at least one processor; wherein the memory is configured to store instructions executable by the at least one processor, when the instructions are executed by the at least one processor, the at least one processor is configured to execute a method for running an applet, the method comprising: obtaining uniform resource identifier (URI) information of the applet based on an opening request when the opening request of the applet is received, wherein a format of the URI comprises a protocol name of a target boot protocol and content corresponding to the protocol, and the target boot protocol is a universal boot protocol applied to a plurality of host applications when opening the applet; analyzing the URI information based on grammatical format description rules of the target boot protocol, to obtain a first parameter and a second parameter; obtaining an execution file package of the applet based on the first parameter; and rendering corresponding page resources in the execution file package based on the second parameter; wherein the first parameter comprises an applet identifier and an applet version number obtaining the execution file package of the applet based on the first parameter comprises: determining whether an execution file package corresponding to the applet is present in a cache based on the applet identifier in the first parameter; determining whether a version number of the execution file package corresponding to the applet is consistent with the applet version number in the first parameter in case that the execution file package corresponding to the applet is present in the cache; and obtaining the execution file package of the applet from the cache in case that the version number of the execution file package corresponding to the applet in the cache is consistent with the applet version number in the first parameter. 10. The electronic device according to claim 9 wherein the first parameter further comprises a service identifier corresponding to the applet and a port number of the service; the method further comprises: generating a download request for the execution file package of the applet based on the applet identifier, the applet version number, the service identifier corresponding to the a

Assignees

Inventors

Classifications

  • G06F8/76Primary

    Adapting program code to run in a different environment; Porting · CPC title

  • Remote procedure calls [RPC]; Web services · CPC title

  • Software deployment · CPC title

  • Bootstrapping (security arrangements therefor G06F21/57) · CPC title

  • G06F16/955Primary

    using information identifiers, e.g. uniform resource locators [URL] · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11461111B2 cover?
The embodiment of the present disclosure provides a method and an apparatus for running applets, an electronic device and a storage medium. The method includes obtaining uniform resource identifier (URI) information of the applet based on an opening request when the opening request of the applet is received, wherein a format of the URI comprises a protocol name of a target boot protocol and con…
Who is the assignee on this patent?
Baidu online network technology beijing co ltd
What technology area does this patent fall under?
Primary CPC classification G06F8/76. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Oct 04 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).