CN110493250A - A kind of WEB front-end ARCGIS resource request processing method and processing device - Google Patents

A kind of WEB front-end ARCGIS resource request processing method and processing device Download PDF

Info

Publication number
CN110493250A
CN110493250A CN201910821519.9A CN201910821519A CN110493250A CN 110493250 A CN110493250 A CN 110493250A CN 201910821519 A CN201910821519 A CN 201910821519A CN 110493250 A CN110493250 A CN 110493250A
Authority
CN
China
Prior art keywords
resource
resource file
request
packet
file
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.)
Pending
Application number
CN201910821519.9A
Other languages
Chinese (zh)
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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software Co 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201910821519.9A priority Critical patent/CN110493250A/en
Publication of CN110493250A publication Critical patent/CN110493250A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The present invention provides a kind of WEB front-end ARCGIS resource request processing method and processing devices, are related to computer application technology, comprising: receive the page resource request message that client is sent;The page resource request message is parsed, determines the requested specific object resource of the message;According to identified specific object resource, the corresponding resource file pre-saved is obtained;Object resource file obtained is merged, resource file is obtained and merges packet;The resource file is merged into packet and returns to the client.It is able to ascend the development efficiency of team's entirety, and the resource that can be stored to server end is more had effective maintenance and management the case where can effectively reducing the workload of developer, reduce development cost, multiple person cooperational is developed using the present invention program.

Description

A kind of WEB front-end ARCGIS resource request processing method and processing device
Technical field
The present invention relates to Computer Applied Technology more particularly to a kind of WEB front-end ARCGIS resource request processing method and Device.
Background technique
With the development of GIS (GIS-Geographic Information System) technology, GIS technology is in territory, water conservancy, traffic, agricultural and wisdom city The fields such as city are widely used.As GIS data amount is increasing, resource request is more and more, occurs to user The problem of speed of access website impacts.Therefore, how while more fully showing GIS data, guarantee net The access speed stood has become one of current main research direction.
There are many reason of influencing the accelerating website access with GIS business, such as the GIS that some business operations are more complicated Website, the slice resource of request, the file of the front ends such as Javascript script and CSS style resource, quantity is more and more, file Also more and more huger.These WEB resource files are the immediate causes for influencing accelerating website access, to accelerate accelerating website access, It can set about from these files.It is one of to consider that direction is: to reduce the number of requests of http.According to the principle of http agreement, Each http request is required to use up certain network inquiry and be shaken hands the time, and during user actual access website, Each resource file corresponds to a http request, these resource files include gis slice file, CSS file, Javascript File etc..In the prior art, in order to reduce http request, by the way of carrying out being packaged merging to multiple resource files, this When sample user accesses website, multiple resource files can be obtained by a http request.In addition, needing to reduce in network The data volume of upper transmission can also further compress the file after merging, to improve efficiency of transmission.
Summary of the invention
In order to solve the above technical problems, subtracting the invention proposes a kind of WEB front-end ARCGIS resource request processing method The workload of few developer is more had effective maintenance and management to the resource of server end storage.
The technical scheme is that
A kind of WEB front-end ARCGIS resource request processing method, comprising:
1) the arcgis resource request message that client is sent is received;
2) resource request message is parsed, determines the requested specific object resource of the message;
3) according to identified specific object resource, the corresponding resource file pre-saved is obtained;
4) object resource file obtained is merged, obtains resource file and merges packet;
5) affiliated resource file is merged into packet and returns to the client.
Further, after receiving the page resource request message that user terminal is sent, further includes:
Whether the request object for judging the message is WEB front-end resource, if it is, further executing subsequent step.
Further, the object resource specific according to determined by obtains the corresponding resource file pre-saved, packet It includes:
Using the mark of object resource, by searching for the corresponding resource file pre-saved.
It is further, described that object resource file obtained is merged, comprising:
According to the type of object resource file, different types of object resource file is merged respectively.
Further, after obtaining resource file and merging packet, further includes: merge packet to resource file and compress;
It is described that the resource file is merged into the packet return client, specifically:
Compressed resource file is merged into packet and returns to affiliated client.
In addition, the present invention also provides a kind of WEB front-end resource request processing units, comprising: request receiving module, request Parsing module, resource transfer module, request merging module, ask respond module;
Wherein,
Request receiving module, for receiving the arcgis resource request message of client transmission;
Request analysis module determines the requested tool of the message for parsing to the page resource request message Body object resource;
Resource transfer module, for obtaining the corresponding resource file pre-saved according to identified specific object resource;
Merging module is requested, for merging object resource file obtained, resource file is obtained and merges packet;
Ask respond module returns to the client for the resource file to be merged packet.
Further, the request analysis module, is also used to:
After receiving the page resource request message that user terminal is sent, judge whether the request object of the message is WEB Front end resource, if it is, further being parsed to the message.
Further, the resource transfer module, is specifically used for:
Using the mark of object resource, by searching for the corresponding resource file pre-saved.
Further, the resource merging module, is specifically used for:
According to the type of object resource file, different types of object resource file is merged respectively.
Further, the resource merging module is also used to merge packet to resource file and compress:
The ask respond module is specifically used for merging compressed resource file into the packet return client.
The beneficial effects of the invention are as follows
Resource file is not to merge and be statically stored in Website server in advance, but by server end according to visitor The resource request at family end, dynamically merges resource file, and developer is allowed not have to spend greatly in the merging of resource file The time and efforts of amount, effectively reduces development amount, does not also need to dispose resource merging tool at developer, reduce Development cost.On the other hand, the case where developing for multiple person cooperational, public resource used in different developers will not go out The case where merging now is repeated, had not only improved the development efficiency of team's entirety, but also can carry out more to the resource that server end stores For effective maintenance and management.
Detailed description of the invention
Fig. 1 is workflow schematic diagram of the invention;
Fig. 2 is structural block diagram of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, the invention mainly comprises the following steps:
1, the GIS resource request message that user terminal is sent is received;
2, the GIS resource request message is parsed, determines the requested specific object resource of the message;
3, according to identified specific object resource, the corresponding resource file pre-saved is obtained;
4, object resource file obtained is merged, obtains resource file and merges packet;
5, the resource file is merged and wraps and returns to the client.
After receiving the gis resource request that client is sent further include: whether the request object for judging the message is Web Front end resource, if it is, further executing subsequent step.
According to identified specific object resource, the corresponding resource file pre-saved is obtained, comprising: utilize object resource Mark, by searching for the corresponding resource file that is pre-saved.
The object object resource file obtained merges, comprising: according to the type of object resource file, to not The object resource file of same type merges respectively.A kind of specific embodiment according to the present invention, is obtaining resource file Merge packet and return to the client, specifically: compressed resource file is merged into packet and returns to the client.
As shown in Fig. 2, the inventive system comprises: request receiving module, for receiving the page resource of user terminal transmission Request message;Request analysis module determines the requested tool of the message for parsing to the page resource request message Body object resource;Resource transfer module obtains resource file merging for merging to object resource file obtained Packet;Ask respond module returns to the client for the resource file to be merged packet.
The request analysis module, is also used to, and after receiving the page resource request message that client is sent, judgement should Whether the request object of message is web front end resource, if it is, further parsing to the message.
The resource transfer module, is specifically used for: using the mark of object resource, by searching for pair pre-saved Answer resource file.
According to the type of object resource file, different types of object resource file is merged respectively.
The resource merging module is also used to merge packet to resource file and compress;
The ask respond module is specifically used for merging compressed resource file into client belonging to packet return.
The foregoing is merely presently preferred embodiments of the present invention, is only used to illustrate the technical scheme of the present invention, and is not intended to limit Determine protection scope of the present invention.Any modification, equivalent substitution, improvement and etc. done all within the spirits and principles of the present invention, It is included within the scope of protection of the present invention.

Claims (10)

1. a kind of WEB front-end ARCGIS resource request processing method, which is characterized in that
Include the following steps:
1) the arcgis resource request message that client is sent is received;
2) resource request message is parsed, determines the requested specific object resource of the message;
3) according to identified specific object resource, the corresponding resource file pre-saved is obtained;
4) object resource file obtained is merged, obtains resource file and merges packet;
5) affiliated resource file is merged into packet and returns to the client.
2. the method according to claim 1, wherein receive user terminal send page resource request message it Afterwards, further includes:
Whether the request object for judging the message is WEB front-end resource, if it is, further executing subsequent step.
3. the method according to claim 1, wherein
The step 3) further include:
Using the mark of object resource, by searching for the corresponding resource file pre-saved.
4. the method according to claim 1, wherein
Object resource file obtained is merged, comprising:
According to the type of object resource file, different types of object resource file is merged respectively.
5. according to the method described in claim 4, it is characterized in that,
After obtaining resource file and merging packet, further includes: packet is merged to resource file and is compressed,
Compressed resource file is merged into packet and returns to affiliated client.
6. a kind of WEB front-end resource request processing unit, which is characterized in that
It include: request receiving module, request analysis module, resource transfer module, request merging module, ask respond module;
Wherein,
Request receiving module, for receiving the arcgis resource request message of client transmission;
Request analysis module determines that the message is requested specific right for parsing to the page resource request message As resource;
Resource transfer module, for obtaining the corresponding resource file pre-saved according to identified specific object resource;
Merging module is requested, for merging object resource file obtained, resource file is obtained and merges packet;
Ask respond module returns to the client for the resource file to be merged packet.
7. device according to claim 6, which is characterized in that
The request analysis module, is also used to:
After receiving the page resource request message that user terminal is sent, judge whether the request object of the message is WEB front-end Resource, if it is, further being parsed to the message.
8. device according to claim 6, which is characterized in that
The resource transfer module, is specifically used for:
Using the mark of object resource, by searching for the corresponding resource file pre-saved.
9. device according to claim 6, which is characterized in that
The request merging module, is specifically used for:
According to the type of object resource file, different types of object resource file is merged respectively.
10. device according to claim 9, which is characterized in that
It is also used to merge packet to resource file and compress.
CN201910821519.9A 2019-09-02 2019-09-02 A kind of WEB front-end ARCGIS resource request processing method and processing device Pending CN110493250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910821519.9A CN110493250A (en) 2019-09-02 2019-09-02 A kind of WEB front-end ARCGIS resource request processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910821519.9A CN110493250A (en) 2019-09-02 2019-09-02 A kind of WEB front-end ARCGIS resource request processing method and processing device

Publications (1)

Publication Number Publication Date
CN110493250A true CN110493250A (en) 2019-11-22

Family

ID=68556021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910821519.9A Pending CN110493250A (en) 2019-09-02 2019-09-02 A kind of WEB front-end ARCGIS resource request processing method and processing device

Country Status (1)

Country Link
CN (1) CN110493250A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235375A (en) * 2020-09-30 2021-01-15 浪潮云信息技术股份公司 Method and device for processing request of WEB front end using Axios resource
CN113703979A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Resource processing method and device, resource processing equipment and storage medium
CN115379011A (en) * 2022-04-25 2022-11-22 上海数慧系统技术有限公司 Data processing method and device applied to geographic information system service
CN115379011B (en) * 2022-04-25 2024-04-26 上海数慧系统技术有限公司 Data processing method and device applied to geographic information system service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020155A (en) * 2012-11-23 2013-04-03 中国电信股份有限公司云计算分公司 Web front end resource request processing method and device
CN103269377A (en) * 2013-05-31 2013-08-28 北京奇虎科技有限公司 Script file processing method, server, client and system
CN103392179A (en) * 2011-05-12 2013-11-13 广州市动景计算机科技有限公司 Method and device for acquiring page resources, browser and mobile terminal
US9083761B1 (en) * 2010-11-10 2015-07-14 Google Inc. Reduced latency for subresource transfer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9083761B1 (en) * 2010-11-10 2015-07-14 Google Inc. Reduced latency for subresource transfer
CN103392179A (en) * 2011-05-12 2013-11-13 广州市动景计算机科技有限公司 Method and device for acquiring page resources, browser and mobile terminal
CN103020155A (en) * 2012-11-23 2013-04-03 中国电信股份有限公司云计算分公司 Web front end resource request processing method and device
CN103269377A (en) * 2013-05-31 2013-08-28 北京奇虎科技有限公司 Script file processing method, server, client and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235375A (en) * 2020-09-30 2021-01-15 浪潮云信息技术股份公司 Method and device for processing request of WEB front end using Axios resource
CN113703979A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Resource processing method and device, resource processing equipment and storage medium
CN115379011A (en) * 2022-04-25 2022-11-22 上海数慧系统技术有限公司 Data processing method and device applied to geographic information system service
CN115379011B (en) * 2022-04-25 2024-04-26 上海数慧系统技术有限公司 Data processing method and device applied to geographic information system service

Similar Documents

Publication Publication Date Title
US8924457B2 (en) Client browser acceleration by having server removed and executed script embedded in web page
CN104424229B (en) A kind of calculation method and system that various dimensions are split
CN109857515B (en) Bridge communication method, device, equipment and computer readable storage medium
CN109033115B (en) Dynamic webpage crawler system
CN103020155A (en) Web front end resource request processing method and device
US9152411B2 (en) Edge computing platform for delivery of rich internet applications
US9336001B2 (en) Dynamic instrumentation
Shi et al. Modeling object characteristics of dynamic web content
CN103383687B (en) A kind of page processing method and device
CN104461513B (en) A kind of method and device for generating form interface
CN106815254B (en) Data processing method and device
CN110795697B (en) Method and device for acquiring logic expression, storage medium and electronic device
CN108334641B (en) Method, system, electronic equipment and storage medium for collecting user behavior data
CN103297291A (en) Method and system for monitoring website real-time statuses
CN104601408A (en) Website data statistics and analysis method and system used for non-open network environment
RU2638001C1 (en) System and method of antivirus server productivity reserve part isolation for anti-virus scanning of web-page
CN110493250A (en) A kind of WEB front-end ARCGIS resource request processing method and processing device
CN103257958A (en) Cloud storage based translating method and system
US20090094263A1 (en) Enhanced utilization of network bandwidth for transmission of structured data
CN112818201A (en) Network data acquisition method and device, computer equipment and storage medium
CN113900907B (en) Mapping construction method and system
CN105335408B (en) A kind of extended method and related system of search term white list
CN108287874B (en) DB2 database management method and device
CN101770511A (en) Browse system for accelerating backspace operation of mobile communication equipment terminal and application method thereof
WO2016155199A1 (en) Processing method and device for application function data, and non-volatile computer storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191122

RJ01 Rejection of invention patent application after publication