Method for providing WEB page data, WEB server and WEB application system

A WEB server and page data technology, applied in the network field, can solve the problems of wasting bandwidth resources and large data volume, and achieve the effect of reducing data volume and avoiding waste

Inactive Publication Date: 2010-06-30
KINGDEE SOFTWARE(CHINA) CO LTD
3 Cites 13 Cited by

AI-Extracted Technical Summary

Problems solved by technology

If the client sends the same interface element data to the client every time, the amount of data interacted ...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention provides a method for providing WEB page data, which is suitable for a WEB application system comprising a WEB server and a client terminal. The method comprises the following steps: the WEB server obtains a request for a WEB page, which is transmitted by the client terminal; the WEB server judges whether the interface element data of the WEB page is supplied to the client terminal before or not; and if so, the current business data of the WEB page is supplied to the client terminal. The invention also provides the WEB server and the WEB application system. The invention can reduce the interactive data quantity between the WEB server and the client terminal, thereby preventing the waste to bandwidth resources.

Application Domain

Technology Topic

Image

  • Method for providing WEB page data, WEB server and WEB application system
  • Method for providing WEB page data, WEB server and WEB application system
  • Method for providing WEB page data, WEB server and WEB application system

Examples

  • Experimental program(1)

Example Embodiment

[0013] In order to make it easier for those skilled in the art to understand the present invention, first introduce some professional knowledge involved in the present invention.
[0014] The interface element data of the WEB page: describe the controls that make up the WEB page, specifically, describe the position of the control on the WEB page, the front and back background color of the control, the font of the control, and the inclusion relationship between the controls.
[0015] WEB page business data: describe the specific content displayed on the WEB page, such as text information, pictures, videos and other content on the WEB page.
[0016] WEB page language information: Describe the language style used by the WEB page, for example, indicate whether the WEB page uses Chinese or other languages.
[0017] WEB page version information: describes the version information of the WEB page, such as the version number of the WEB page and other version identifiers.
[0018] A/C set of WEB page information: Describe the source of the WEB page, for example, indicate which database server the WEB page comes from.
[0019] The technical scheme of the present invention can be applied to figure 1 The WEB application system shown. Such as figure 1 As shown, the WEB application system includes a WEB server 101 and a client 102. The WEB server 101 can interact with the client 102. For example, the client 102 can request the WEB server 101 to provide a WEB page, and the WEB server 101 can provide the client 102 The interface element data and service data of the WEB page requested by the client 102.
[0020] It should be noted, figure 1 It is just a schematic diagram of a WEB application system. The number of WEB servers 101 and clients 102 is just an example. In actual applications, the number and deployment locations of WEB servers 101 and clients 102 can be set according to actual needs.
[0021] Firstly, a method for providing WEB page data of the present invention is introduced. Such as figure 2 As shown, this method includes:
[0022] S201: The WEB server obtains a request for a WEB page sent by the client.
[0023] If the user who uses the client needs to open a certain WEB page on the client, then the user needs to enter the address of the WEB page on the client, that is, enter the URL of the WEB page. After that, the client will send a Hyper Text Transfer Protocol (HTTP, Hyper Text Transfer Protocol) request message carrying the URL of the WEB page to the WEB server. In this way, the WEB server will obtain the HTTP carrying the URL of the WEB page sent by the client. Request message. The header of the HTTP request message may carry an If-None-Match extended attribute, where the header of the HTTP request message may be referred to as an HTTP request header (HTTP Request Head). If the client has obtained the WEB page provided by the WEB server before, then the If-None-Match extended attribute can carry the language information, version information, and set of accounts information of the WEB page, and the language information indicates the WEB page used The language, version information indicates the version number of the WEB page, and the set of books information indicates which database server the WEB page comes from. If the client has not obtained the WEB page provided by the WEB server before, or if the client requests the WEB page for the first time, then the If-None-Match extended attribute information can be empty.
[0024] After S201 is executed, S202 is executed: The WEB server judges whether the interface element data of the WEB page has been provided to the client before.
[0025] In practical applications, the WEB server can determine whether the interface element data of the WEB page requested by the client has been provided to the client in various ways. For example, the WEB server can compare the language information, version information, and set of accounts information of the WEB page carried in the request sent by the client with the current language information, current version information, and current set of accounts information of the WEB page. If the language information, version information, and set of accounts information of the WEB page carried in the above request correspond to the current language information, current version information, and current set of accounts information of the WEB page, the WEB server can determine that the request has been provided to the client before The interface element data of the WEB page, otherwise, the WEB server determines that the interface element data of the requested WEB page has not been provided to the client before.
[0026] It should be noted that the language information, version information, and set of accounts information of the WEB page carried in the request sent by the client correspond to the current language information, current version information, and current set of accounts information of the WEB page. This means that the client sends The language information of the WEB page carried in the request is the same as the current language information of the WEB page. The version information of the WEB page carried in the request sent by the client is the same as the current version information of the WEB page. The WEB page carried in the request sent by the client The set of books information is the same as the current set of books information on the WEB page.
[0027] It should be noted that if the request sent by the client does not carry the language information, version information, and set of accounts information of the WEB page, the WEB server can determine that the language information, version information, and set of accounts information will not correspond to the same when comparing. Thereby, it can be determined that the interface element data of the requested WEB page has not been provided to the client before.
[0028] It should also be noted that the WEB server can also determine whether the interface element data of the WEB page requested by the client has been provided to the client in other ways before. For example, the client can carry the HTTP request message to the WEB server An identifier, which is used to indicate that the client has previously obtained the interface element data of the requested WEB page, and the WEB server can determine that it has provided the client with the interface element data of the WEB page requested by the client before. Of course, the WEB server can also determine whether the interface element data of the WEB page requested by the client has been provided to the client in other ways before, which will not be described one by one here.
[0029] After S202 is executed, S203 is executed: if the WEB server determines that the interface element data of the WEB page has been provided to the client before, it only provides the current service data of the WEB page to the client.
[0030] In general, the interface element data of a WEB page will not change, but the business data of this WEB page may change frequently. Therefore, if the WEB server determines that the interface element data of the WEB page requested by the client has been provided to the client before, the WEB server can no longer provide the client with the interface element data of the WEB page requested by the client, but only Provide the client with the current business data of the WEB page requested by the client.
[0031] Optionally, the client may send a request to the WEB server to provide current service data of the WEB page, and the WEB server may provide the current service data of the WEB page to the client according to this request. In other words, the WEB server can provide the current service data of the WEB page to the client after obtaining the request sent by the client to provide the current service data of the WEB page. In this case, the WEB server can only determine whether to provide the current interface element data of the WEB page for the request sent by the client for the WEB page, and the request sent by the client for the WEB page may not serve as the WEB server to provide the WEB to the client The trigger of the current business data of the page. Specifically, the client can send a request message to the WEB server, the request message can carry the URL of the WEB page, and the request message can carry an identifier to indicate that only the service data of the WEB page is requested.
[0032] Optionally, after the WEB server determines whether the interface element data of the WEB page has been provided to the client before, it may return a message to the client to indicate whether the WEB page requested by the client is a previously provided WEB page or Will the client be provided with the interface element data of the WEB page requested by the client again, so that the client can know whether the previously saved interface element data of the WEB page has changed or whether the WEB server will provide the interface element data of the WEB page again.
[0033] Optionally, if the WEB server determines that the interface element data of the WEB page has been provided to the client before, the WEB server may return to the client an indication that the interface element data of the WEB page has been provided before or will no longer be provided to the client The information of the interface element data of the WEB page is provided. After obtaining such information, the client can send a request message to the WEB server to request the service data of the WEB page.
[0034] It should be noted that if the WEB server determines that it has not provided the interface element data of the WEB page to the client before, then the WEB server can provide the interface element data of the WEB page to the client, and the current language information and current version of the WEB page Information and current set of books information are provided to the client. Specifically, the WEB server can carry the current language information, current version information, and current account information of the WEB page in the Entity TAG (ETAG) extended attributes carried in the HTTP response message and provide the client with the ETAG extended attributes. In the header of the HTTP response message, the header of the HTTP response message may be referred to as an HTTP response header (HTTP RESPONSEHEAD). It should be noted that the ETAG extended attribute carried in the HTTP response header corresponds to the If-None-Match extended attribute carried in the HTTP request header. For example, if the ETAG extended attribute carried in the HTTP response message previously sent by the WEB server to the client is The value includes the language information, version information, and account set information of the WEB page. Then when the client needs to request the same WEB page again, the value of the If-None-Match extended attribute carried in the HTTP request message sent by the client to the WEB server can be It is the value of the ETAG extended attribute carried in the HTTP response message, that is, it includes the language information, version information, and account set information of the WEB page.
[0035] Corresponds to figure 2 In the method shown, the present invention also provides a WEB server. Such as image 3 As shown, this kind of WEB server includes: an obtaining unit 301, a judging unit 302, and a providing unit 303; the obtaining unit 301 is used to obtain a request for a WEB page sent by the client; and the judging unit 302 is used to judge the previous Whether the interface element data of the WEB page has been provided to the client; the providing unit 303 is used for if the determining unit 302 determines that the providing unit 303 has provided the interface element data of the WEB page to the client before, Then only the current service data of the WEB page is provided to the client.
[0036] In practical applications, the request for the above-mentioned WEB page sent by the client may carry the language information, version information, and set of account information of the above-mentioned WEB page.
[0037] Optionally, the judging unit 302 may include: a comparison subunit for comparing the language information, version information, and account set information of the WEB page carried in the request with the current language information, current version information, and current account set of the WEB page. Information is compared; the determining subunit is used to determine if the language information, version information, and set of account information of the WEB page carried in the above request correspond to the same corresponding to the current language information, current version information, and current set of account information of the WEB page The interface element data of the above WEB page has been provided to the client before; otherwise, it is determined that the interface element data of the above WEB page has not been provided to the client before.
[0038] In actual applications, the request sent by the client to the above WEB page is an HTTP request message. The HTTP request message can carry the If-None-Match extended attribute, and the If-None-Match extended attribute can carry the language information of the above WEB page. , Version information and set of accounts information.
[0039] After the obtaining unit 301 obtains a request for a web page from the client, if the judging unit 302 determines that the providing unit 303 has not previously provided the client with the interface element data of the above WEB page, the providing unit 303 converts the interface of the above WEB page The element data is provided to the client, and the current language information, current version information and current account information of the WEB page are provided to the client.
[0040] The providing unit 303 may carry the current language information, current version information, and current account set information of the aforementioned WEB page in the ETAG extended attribute carried in the HTTP response message and provide it to the client.
[0041] Before the providing unit 303 provides the current service data of the WEB page to the client, the obtaining unit 301 can obtain a request from the client to provide the current service data of the WEB page.
[0042] It should be noted that due to the above WEB server and figure 2 The method shown is the corresponding WEB server. Therefore, the functions of each unit in the above WEB server and the coordination relationship between each unit can be referred to figure 2 The related description in the shown method will not be repeated here.
[0043] As mentioned above, the technical solution provided by the present invention can be applied to the WEB application system. Therefore, the present invention also provides a WEB application system, such as figure 1 As shown, this WEB application system includes: a WEB server 101 and a client 102; the WEB server 101 is used to obtain a request for a WEB page from the client 102, and to determine whether the client 102 has provided the above For the interface element data of the WEB page, if the WEB server 101 determines that the interface element data of the WEB page has been provided to the client 102 before, it only provides the current service data of the WEB page to the client 102.
[0044] The functions and mutual cooperation of the WEB server 101 and the client 102 of the above WEB application system can be referred to figure 2 The method shown and image 3 The related description in the shown WEB server will not be repeated here.
[0045] To enable those skilled in the art to understand the technical solution of the present invention more clearly, an application scenario is used as an example below to illustrate the technical solution of the present invention.
[0046] Assume that the client 1 has already obtained the interface element data and service data of the WEB page 1 from the WEB server 1, and then the client 1 requests the WEB page 1 from the WEB server 1 again. Suppose again that when the WEB server 1 obtains the request, the interface element data of the WEB page 1 has not changed, but the business data of the WEB page 1 has changed.
[0047] Based on the above application scenario, the processing method of client 1, the processing method of WEB server 1, and the interaction process between client 1 and WEB server 1 are as follows:
[0048] 1. Client 1 sends an HTTP request message to WEB server 1. The HTTP request message carries the URL of WEB page 1, and carries the If-None-Match extended attribute in the HTTP request header, and the If-None-Match extended attribute carries Language information, version information and set of accounts information on WEB page 1;
[0049] 2. WEB server 1 parses the HTTP request message, and uses the URL of WEB page 1 to determine the database server that stores the interface element data and business data of WEB page 1;
[0050] 3. The WEB server 1 obtains the current language information and current version information of the WEB page 1 from the database server determined above;
[0051] 4. WEB server 1 compares the language information of WEB page 1 carried in the HTTP request message with the current language information of WEB page 1, and determines that the language information of WEB page 1 carried in the HTTP request message is the same as the current language information of WEB page 1. Compare the version information of WEB page 1 carried in the HTTP request message with the current version information of WEB page 1, determine that the version information of WEB page 1 carried in the HTTP request message is the same as the current version information of WEB page 1, and determine the HTTP request The set of account information carried in the message is the information of the database server determined above, that is, the language information, version information and set of account information of WEB page 1 have not changed;
[0052] 5. WEB server 1 obtains the current business data of WEB page 1 from the database server determined above;
[0053] 6. WEB server 1 provides the current business data of WEB page 1 to client 1;
[0054] 7. Client 1 generates WEB page 1 according to the interface element data of WEB page 1 obtained before and the current business data obtained in step 6, and displays WEB page 1.
[0055] To sum up, in the present invention, after the WEB server obtains the request for a WEB page from the client, if the WEB server determines that the client has previously provided the interface element data of the WEB page, then Only the current service data of the WEB page is provided to the client. That is to say, the WEB server does not need to provide the same interface element data to the client every time, which reduces the amount of data interacted between the WEB server and the client, thereby avoiding the waste of bandwidth resources.
[0056] In addition, the WEB server can determine whether the WEB page requested by the client has been provided to the client before using the language information, version information, and account set information of the WEB page. This shows that the technical solution of the present invention can be applied to multiple languages, Application environment with multiple sets of accounts.
[0057] The above are only the preferred embodiments of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be made. It is regarded as the protection scope of the present invention.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Webpage uniform resource locator (URL) classification and identification method and device

ActiveCN104750704AGuaranteed accuracy and depthReduce data volumeSpecial data processing applicationsWeb pageDomain name
Owner:XINYANG BRANCH HENAN CO LTD OF CHINA MOBILE COMM CORP

Network data compression method and network data compression system

ActiveCN103023796ADoes not reduce deduplicationReduce data volumeData switching networksTraffic volumeFingerprint
Owner:SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI

Classification and recommendation of technical efficacy words

  • Avoid wasting
  • Reduce data volume

Scan Test Application Through High-Speed Serial Input/Outputs

ActiveUS20100313089A1Reduce data volumeMinimize application timeElectronic circuit testingLogical operation testingData bufferData conversion
Owner:SIEMENS PROD LIFECYCLE MANAGEMENT SOFTWARE INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products