IP Library Granted Patent US 11,157,254
Granted Patent B2
US 11,157,254 · App. 16/702,776 · Granted Oct 26, 2021

Method, apparatus, and device for processing web application package

Inventor: Zhi Luo (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
G06F8/61H04L67/02H04L67/34
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,157,254
App. No.
16/702,776
Granted
Oct 26, 2021
Kind
B2
Abstract

Implementations of the present specification disclose a method, an apparatus, and a device for processing a web application package. In the method, processing the web application package includes: determining a resource required by a web application; storing the resource; determining a resource address corresponding to a storage location of the resource; and generating a web application package that comprises the resource address, wherein the web application package excludes the resource corresponding to the resource address.

Claims (69)

1. A computer-implemented method comprising:

obtaining a web application package, the obtaining comprising:

determining a plurality of resources that will be required by a web application during runtime;

storing one or more resources of the plurality of the resources at different storage locations than the web application package;

determining one or more respective resource addresses corresponding to the storage locations of the one or more resources;

generating a resource reference file that comprises the one or more respective resource addresses; and

generating, according a predefined resource packaging rule, the web application package that comprises the resource reference file and excludes the one or more resources, wherein generating the web application package comprises:

determining class information in a JAR package that will be required by the web application package during runtime;

generating, from the class information, a configuration file for use in establishing a class loader when the web application package is loaded; and

generating the web application package that comprises the configuration file;

deploying the web application package on a web server; and

in response to a loading request, loading the web application package, comprising:

identifying, from data included in the web application package, the one or more respective resource addresses; and

obtaining the one or more resources based on the one or more respective resource addresses.

2. The computer-implemented method according to claim 1 , wherein determining the plurality of resources that will be required by the web application during runtime comprises:

determining at least one of a jar package, a page rendering control file, or a view resource that is required by the web application.

3. The computer-implemented method according to claim 2 , wherein storing the one or more resources and determining the one or more respective resource addresses corresponding to the storage locations of the one or more resources comprises:

storing the page rendering control file or the view resource;

obtaining a storage address of the page rendering control file or a storage address of the view resource; and

determining the storage address as the resource address.

4. The computer-implemented method according to claim 2 , wherein the view resource comprises a sound file, a picture, or a video that is used to display a web page.

5. The computer-implemented method according to claim 1 , further comprising:

compiling a source code into a class file; and

wherein the web application package comprises the class file but excludes the source code.

6. The computer-implemented method according to claim 1 ,

wherein the stored one or more resources comprise a source code file comprising uncompiled source code, and wherein the generated web application package excludes the source code file.

7. The computer-implemented method according to claim 6 , wherein the source code file comprising uncompiled source code is a JavaScript file.

8. The computer-implemented method according to claim 1 , wherein the predefined resource packaging rule specifies that when generating the web application package, including at least the resource reference file and the JAR package in the web application package, and excluding page rendering control files and view files from the web application package.

9. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:

obtaining a web application package, the obtaining comprising:

determining a plurality of resources that will be required by a web application during runtime;

storing one or more resources of the plurality of the resources at different storage locations than the web application package;

determining one or more respective resource addresses corresponding to the storage locations of the one or more resources;

generating a resource reference file that comprises the one or more respective resource addresses; and

generating, according a predefined resource packaging rule, the web application package that comprises the resource reference file and excludes the one or more resources, wherein generating the web application package comprises:

determining class information in a JAR package that will be required by the web application package during runtime;

generating, from the class information, a configuration file for use in establishing a class loader when the web application package is loaded; and

generating the web application package that comprises the configuration file;

deploying the web application package on a web server; and in response to a loading request, loading the web application package, comprising:

identifying, from data included in the web application package, the one or more respective resource addresses; and

obtaining the one or more resources based on the one or more respective resource addresses.

10. The non-transitory, computer-readable medium according to claim 9 , wherein determining the plurality of resources that will be required by the web application during runtime comprises:

determining at least one of a jar package, a page rendering control file, or a view resource that is required by the web application.

11. The non-transitory, computer-readable medium according to claim 10 , wherein storing the one or more resources and determining the one or more respective resource addresses corresponding to the storage locations of the one or more resources comprises:

storing the page rendering control file or the view resource;

obtaining a storage address of the page rendering control file or a storage address of the view resource; and

determining the storage address as the resource address.

12. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform operations comprising:

obtaining a web application package, the obtaining comprising:

determining a plurality of resources that will be required by a web application during runtime;

storing one or more resources of the plurality of the resources at different storage locations than the web application package;

determining one or more respective resource addresses corresponding to the storage locations of the one or more resources;

generating a resource reference file that comprises the one or more respective resource addresses; and

generating, according a predefined resource packaging rule, the web application package that comprises the resource reference file and excludes the one or more resources, wherein generating the web application package comprises:

determining class information in a JAR package that will be required by the web application package during runtime;

generating, from the class information, a configuration file for use in establishing a class loader when the web application package is loaded; and

generating the web application package that comprises the configuration file;

deploying the web application package on a web server; and

in response to a loading request, loading the web application package, comprising:

identifying, from data included in the web application package, the one or more respective resource addresses; and

obtaining the one or more resources based on the one or more respective resource addresses.

13. The computer-implemented system according to claim 12 , wherein determining the plurality of resources that will be required by the web application during runtime comprises:

determining at least one of a jar package, a page rendering control file, or a view resource that is required by the web application.

14. The computer-implemented system according to claim 13 , wherein storing the one or more resources and determining the one or more respective resource addresses corresponding to the storage locations of the one or more resources comprises:

storing the page rendering control file or the view resource;

obtaining a storage address of the page rendering control file or a storage address of the view resource; and

determining the storage address as the resource address.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 10, 2020
From: LUO, ZHI
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052072/0184 →