IP Library › Granted Patent US 10,263,910
Granted Patent B2
US 10,263,910 · App. 14/159,143 · Granted Apr 16, 2019

Resource calling for hybrid applications

Inventor: Zishen Qu (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
H04L47/781G06F9/541H04L43/10
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 10,263,910
App. No.
14/159,143
Granted
Apr 16, 2019
Kind
B2
Abstract

Invoking a resource is provided, comprising: sending a page request message to a server; receiving page data sent back by the server in response to the page request message; analyzing the page data to obtain an address of the resource; generating a resource-calling request using the address of the resource; acquiring native version information of the application client; using the native version information of the application client to modify the resource-calling request; and acquiring the resource according to the modified resource-calling request.

Claims (71)

1. A method for invoking a resource, comprising:

sending a page request message to a server;

receiving page data sent back by the server in response to the page request message, wherein the page data includes a path corresponding to an address of a resource to be called by an application client, the path including a resource name and a version placeholder of a version of the application client to be used to call the resource that is identified in the page data;

analyzing the page data to obtain the path corresponding to the address of the resource;

generating, using one or more computer processors, a resource-calling request using the path corresponding to the address of the resource;

acquiring native version information of the application client to be used to call the resource that is identified in the page data;

modifying the resource-calling request based at least in part on the native version information of the application client, wherein modifying the resource calling request includes replacing the version placeholder included in the page data with the native version information of the application client to be used to call the resource that is identified in the page data in response to determining that a current version of the application client is different from the version of the application client to be used to call the resource included in the page data received from the server; and

acquiring the resource according to the modified resource-calling request, wherein the acquiring the resource comprises acquiring the resource using the application client corresponding to native version information that is used in connection with replacing the version placeholder included in the page data.

2. The method of claim 1 , wherein the page data includes HyperText Markup Language (HTML) code, and the HTML code includes the address of the resource.

3. The method of claim 1 , wherein the version placeholder indicates that the resource is a restricted resource.

4. The method of claim 1 , wherein modifying the resource-calling request comprises:

monitoring the resource-calling request;

determining whether the resource-calling request includes the version placeholder; and

in response to determining that the resource-calling request includes the version placeholder, replacing the version placeholder with the native version information of the application client.

5. The method of claim 1 , wherein acquiring the resource according to the modified resource-calling request comprises using a resource name and the native version information included in the modified resource-calling request to acquire the resource.

6. The method of claim 1 , wherein acquiring the resource according to the modified resource-calling request comprises:

attempting to acquire a corresponding resource from the application client natively on a device executing the application client; and

in response to determining that the corresponding resource is not successfully acquired on the device, acquiring the corresponding resource from the server and saving the acquired corresponding resource natively on the device.

7. The method of claim 1 , wherein the application client is a first application client; and the method further comprises:

receiving registration information sent by a second application client;

saving current version information of the second application client, the current version information being included in the registration information; and

upon receiving a resource-calling request sent by the second application client:

modifying a version placeholder included in an address included in the resource-calling request sent by the second application client to a saved current version of the second application client;

using the address included in the modified resource-calling request sent by the second application client to acquire a corresponding resource; and

sending the acquired corresponding resource to the second application client.

8. The method of claim 1 , wherein the address includes a monitored port on a client device on which the application client executes.

9. The method of claim 1 , wherein the version placeholder is a field included in a Uniform Resource Locator (URL).

10. The method of claim 1 , wherein using the native version information of the application client to modify the resource calling request includes replacing the version placeholder with information for calling the application corresponding to the native version information.

11. The method of claim 1 , wherein:

the client terminal replaces the version placeholder included in the page data with the native version information of the application client to be used to call the resource that is identified in the page data, and

the client replaces the version placeholder included in the page data in a manner that is transparent to the server.

12. The method of claim 1 , further comprising:

determining whether the resource calling request comprises information pertaining to a restricted resource based at least in part on locally stored list of restricted resources,

wherein the resource calling request is modified in response to determining that the resource calling request comprises information pertaining to a restricted resource.

13. The method of claim 1 , wherein the modifying the resource-calling request based at least in part on the native version information of the application client modifies the resource calling request without modifying the page data received from the server.

14. A resource-calling system, comprising:

one or more processors configured to:

send a page request message to a server;

receive page data sent back by the server in response to the page request message, wherein the page data includes a path corresponding to an address of a resource to be called by an application client, the path including a resource name and a version placeholder of a version of the application client to be used to call the resource that is identified in the page data;

analyze the page data to obtain the path corresponding to the address of the resource;

generate a resource-calling request using the path corresponding to the address of the resource;

acquire native version information of the application client to be used to call the resource that is identified in the page data;

modify the resource-calling request based at least in part on native version information of the application client, wherein to modify the resource calling request includes to replace the version placeholder included in the page data with the native version information of the application client to be used to call the resource that is identified in the page data in response to determining that a current version of the application client is different from the version of the application client to be used to call the resource included in the page data received from the server; and

acquire the resource according to the modified resource-calling request, wherein the acquiring the resource comprises acquiring the resource using the application client corresponding to native version information that is used in connection with replacing the version placeholder included in the page data; and

one or more memories coupled to the one or more processors, configured to provide the one or more processors with instructions.

15. The system of claim 14 , wherein the page data includes HyperText Markup Language (HTML) code, and the HTML code includes the address of the resource.

16. The system of claim 14 , wherein the version placeholder indicates that the resource is a restricted resource.

17. The system of claim 14 , wherein to modify the resource-calling request comprises to:

monitor the resource-calling request;

determine whether the resource-calling request includes the version placeholder; and

in response to a determination that the resource-calling request includes the version placeholder, replace the version placeholder with the native version information of the application client.

18. The system of claim 14 , wherein to acquire the resource according to the modified resource-calling request comprises to use a resource name and the native version information included in the modified resource-calling request to acquire the resource.

19. The system of claim 14 , wherein to acquire the resource according to the modified resource-calling request comprises to:

attempt to acquire a corresponding resource from the application client natively on a device executing the application client; and

in response to determining that the corresponding resource is not successfully acquired on the device, acquire the corresponding resource from the server and save the acquired corresponding resource natively on the device.

20. The system of claim 14 , wherein the application client is a first application client; and the one or more processors are further configured to:

receive registration information sent by a second application client;

save current version information of the second application client, the current version information being included in the registration information; and

upon receiving a resource-calling request sent by the second application client:

modify a version placeholder included in an address included in the resource-calling request sent by the second application client to a saved current version of the second application client;

use the address included in the modified resource-calling request sent by the second application client to acquire a corresponding resource; and

send the acquired corresponding resource to the second application client.

21. The system of claim 14 , wherein the address includes a monitored port on a client device on which the application client executes.

22. A computer program product for invoking a resource, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:

sending a page request message to a server;

receiving page data sent back by the server in response to the page request message, wherein the page data includes a path corresponding to an address of a resource to be called by an application client, the path including a resource name and a version placeholder of a version of the application client to be used to call the resource that is identified in the page data;

analyzing the page data to obtain the path corresponding to the address of the resource;

generating a resource-calling request using the path corresponding to the address of the resource;

acquiring native version information of the application client to be used to call the resource that is identified in the page data;

modifying the resource-calling request based at least in part on the native version information of the application client, wherein modifying the resource calling request includes replacing the version placeholder included in the page data with the native version information of the application client to be used to call the resource that is identified in the page data in response to determining that a current version of the application client is different from the version of the application client to be used to call the resource included in the page data received from the server; and

acquiring the resource according to the modified resource-calling request, wherein the acquiring the resource comprises acquiring the resource using the application client corresponding to native version information that is used in connection with replacing the version placeholder included in the page data.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 27, 2014
From: QU, ZISHEN
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 032318/0402 →
Priority Claims (1)
CN 2013 1 0024460 · Jan 23, 2013 · national
Continuity (1)
Related Publication 20140207851A1 · Jul 24, 2014