CN110008424A - Electric system WEB class application data restoration method - Google Patents
Electric system WEB class application data restoration method Download PDFInfo
- Publication number
- CN110008424A CN110008424A CN201910068441.8A CN201910068441A CN110008424A CN 110008424 A CN110008424 A CN 110008424A CN 201910068441 A CN201910068441 A CN 201910068441A CN 110008424 A CN110008424 A CN 110008424A
- Authority
- CN
- China
- Prior art keywords
- template
- data
- parsed
- web class
- http
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 239000000126 substance Substances 0.000 claims description 4
- 230000007423 decrease Effects 0.000 abstract description 6
- 230000009467 reduction Effects 0.000 abstract description 4
- 230000007547 defect Effects 0.000 abstract description 3
- 230000009471 action Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to electric power system data reduction technique field, especially a kind of electric system WEB class application data restoration method includes the following steps, step S101: being write as template file according to WEB class description language grammer;Step S102: system reads each WEB class template and parses, and forms chained list in memory;Step S103: the http protocol head in the application of WEB class is parsed;Step S104: template lookup is carried out in template chained list in conjunction with character string multimode matching algorithm;Step S105: HTTP data portion is according to fixed format parsed;Step S106: the corresponding content of keyword is extracted;Step S107: the key content decoded is formatted, is then exported.After adopting the above method, the present invention is not only applicable to simple power system network environment, and overcomes increase, the decline for increasing stability of power system with source code, the defect for increasing the linear decline of Power System Performance with number of protocols linearly of the increase protocal analysis personnel burden with the application of WEB class.
Description
Technical field
The present invention relates to electric power system data reduction technique field, especially a kind of electric system WEB class application data are also
Original method.
Background technique
The tool that browser is commonly used as routine office work is increasingly becoming what electric power dispatching system picture was had access to now
Convenient entrance.Show electric power dispatching system plant stand figure on a web browser and generally use SVG technology, SVG is a kind of polar plot description
Technology is very suitable to for describing equipment and prospect in electric system plant stand figure.Simultaneously as more and more browsers are opened
Begin to support the rendering of SVG figure, therefore has access to electric system picture on a web browser also and become a kind of inevitable choice.Mobile terminal
One of the trend that power automatic system application continues to develop, it can enable duty room extension extend, whenever and wherever possible for
Family provides information, but compared with PC: first is that mobile terminal device using touch operation instead of mouse action, screen size is not yet
Together, traditional web interface is difficult to obtain good user experience on the mobile apparatus, second is that mobile terminal device hardware configuration compared with
Low, when being loaded directly into big SVG figure, there is operation slowly in browser, or even situations such as collapse.
103713874 A of Chinese invention patent application CN discloses a kind of electric system real-time pictures web interface side of showing
Method specifically includes that the status data that power equipment is monitored and acquired by back-end server;Real-time pictures publisher server should
Status data renders an entire interface layer;It detects after inputting real-time pictures publisher server network address by terminal device, it is real
When picture publisher server send boundary's control script and obtain the size of terminal, resolution information, and believed according to the size and resolution ratio
Breath draws out virtual screen identical with terminal device size, and the virtual interface is sent to terminal device;Terminal device connects
Above-mentioned virtual screen is received, and the virtual screen is rendered using the painting canvas function of browser kernel.
Reduction WEB class application log in and content, to understand electric system networking security, power supply whether safety and stability has
Very important effect.Traditional protocol assembly method is to analyze each HTTP data packet in order based on data search packet,
To analyze corresponding application protocol, and logon information is analyzed in HTTP content field, the contents such as information of posting.In network
Flow is small, and in the few network environment of WEB application type, the method based on data search packet is also feasible, but electricity of today
Force system network flow is increasing, and WEB class applies shared ratio in all electric system application higher and higher, and is based on
The efficiency of the method for data search packet is also lower and lower, while the workload for being engaged in protocol assembly personnel is also all the more heavy, so
The method of legacy protocol reduction is no longer satisfied network environment of today.A kind of new method is needed to restore WEB class application
Content.
Summary of the invention
Efficiently express delivery the application of electric system Web class can be restored the technical problem to be solved by the invention is to provide a kind of
Method.
In order to solve the above technical problems, electric system WEB class application data restoration method of the invention, including following step
Suddenly,
Step S101: referring to the characteristic of WEB application, write as template file according to WEB class description language grammer.
Step S102: system reads each WEB class template and parses, and forms chained list in memory;
Step S103: the http protocol head in the application of WEB class is parsed, and obtains the interior of URL, HOST, POST/GET
Hold.
Step S104: using URL, HOST, the POST/GET parsed, in conjunction with character string multimode matching algorithm in template strand
Template lookup is carried out in table;It is first compared with the HOST field that parses, url field is then subjected to precise alignment again, found out
The template matched.
Step S105: according to the template found, HTTP data portion according to fixed format (such as MIME format) is solved
Analysis, finds out keyword name and keyword content, and composed structure body, then forms chained list.
Step S106: the keyword defined in the template of successful match and the keyword parsed are compared, and extract
The corresponding content of keyword out.
Step S107: the key content decoded is formatted, is then exported.
Preferably, the step S103 specifically includes following steps,
Take out the data segment of HTTP data packet;
Judge that data segment is POST data or GET data;If it is POST data, then the HTTP of POST data packet is parsed
Header fields;If it is GET data, then the HTTP header field of GET data packet is parsed;
Corresponding template is searched according to the HTTP header field parsed;
Judge whether to find template;If it is found, then according to template type, successively according to specific format search data packet,
Useful HTTP data segment is extracted, and forms chained list;If do not found, it is determined that be unknown applications, export the information of HTTP;
The HTTP data segment chained list analytically gone out finds out the content field of template definition;
Export the WEB application name and content substance information parsed.
Preferably, template is divided into three parts by WEB class description language in the step S101, and first part is template identification
Part, second part are key content description section, and Part III is data type.
Preferably, the key content description section includes keyword, and the initial position of key content in the packet is closed
Key content-length.
Preferably, it is first compared, is then again carried out url field accurate with the HOST field parsed in the step S104
It compares, finds out matched template.
After adopting the above method, the present invention is not only applicable to simple power system network environment, and overcomes with WEB
Class application increase protocal analysis personnel burden increase, with source code increase stability of power system decline, with association
Discuss the linear defect for increasing the linear decline of Power System Performance of quantity.
Detailed description of the invention
The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
Fig. 1 is the flow chart of electric system WEB class application data restoration method of the present invention.
Fig. 2 is the content flow schematic diagram of present invention parsing POST/GET.
Specific embodiment
As shown in Figure 1, electric system WEB class application data restoration method of the invention, includes the following steps, step
S101: referring to the characteristic of WEB application, write as template file according to WEB class description language grammer.WEB class description language is by template
File is divided into three parts, and first part is template identification division, the i.e. content of URL, HOST, POST/GET, by analyzing certain class WEB
Using obtained by data packet HTTP header;Second part is key content description section, including keyword, and key content is in data packet
In initial position, key content length, by analyzing obtained by certain class WEB application data packet;Part III is data type, is such as stepped on
Land posts, replies to the topic, exiting, and is defined by protocol development person.
Step S102: system reads each WEB class template and parses, and forms chained list in memory.
Step S103: the http protocol head in the application of WEB class is parsed, and obtains the interior of URL, HOST, POST/GET
Hold.
As shown in Fig. 2, this step is specifically further comprising the steps of,
The data segment for first taking out HTTP data packet, then judges that data segment is POST data or GET data.If it is
POST data then parses the HTTP header field of POST data packet;If it is GET data, then the HTTP head of GET data packet is parsed
Portion's field.Corresponding template is searched then according to the HTTP header field parsed;Judge whether to find template;If looked for
It arrives, then useful HTTP data segment successively according to specific format search data packet is extracted, and organize chaining according to template type
Table;If do not found, it is determined that be unknown applications, export the information of HTTP.Finally, the HTTP data segment chained list analytically gone out is looked into
Find out the content field of template definition;Export the WEB application name and content substance information parsed.
Step S104: using URL, HOST, the POST/GET parsed, in conjunction with character string multimode matching algorithm in template strand
Template lookup is carried out in table;It is first compared with the HOST field that parses, url field is then subjected to precise alignment again, found out
The template matched.
Step S105: according to the template found, HTTP data portion according to fixed format (such as MIME format) is solved
Analysis, finds out keyword name and keyword content, and composed structure body, then forms chained list.
Step S106: the keyword defined in the template of successful match and the keyword parsed are compared, and extract
The corresponding content of keyword out.
Step S107: the key content decoded is formatted, is then exported.
The present invention is not only applicable to simple power system network environment, and overcomes the increase association with the application of WEB class
Discuss analysis personnel burden increase, with source code increase stability of power system decline, with the linear increasing of number of protocols
It is powered on the defect of the decline of Force system performance linear.Using invention, WEB class can satisfy using more and more electric system nets
The demand of protocol assembly under network environment.
Although specific embodiments of the present invention have been described above, those skilled in the art should be appreciated that this
It is merely illustrative of, various changes or modifications can be made to present embodiment, without departing from the principle and substance of the present invention,
Protection scope of the present invention is only limited by the claims that follow.
Claims (5)
1. a kind of electric system WEB class application data restoration method, which is characterized in that include the following steps,
Step S101: referring to the characteristic of WEB application, write as template file according to WEB class description language grammer;
Step S102: system reads each WEB class template and parses, and forms chained list in memory;
Step S103: the http protocol head in the application of WEB class is parsed, and obtains the content of URL, HOST, POST/GET;
Step S104: using URL, HOST, the POST/GET parsed, in conjunction with character string multimode matching algorithm in template chained list
Carry out template lookup;
Step S105: according to the template found, HTTP data portion according to fixed format being parsed, finds out keyword name,
With keyword content, then and composed structure body forms chained list;
Step S106: the keyword defined in the template of successful match and the keyword parsed are compared, and extract pass
The corresponding content of key word;
Step S107: the key content decoded is formatted, is then exported.
2. electric system WEB class application data restoration method described in accordance with the claim 1, which is characterized in that the step
S103 specifically includes following steps,
Take out the data segment of HTTP data packet;
Judge that data segment is POST data or GET data;If it is POST data, then the HTTP header of POST data packet is parsed
Field;If it is GET data, then the HTTP header field of GET data packet is parsed;
Corresponding template is searched according to the HTTP header field parsed;
Judge whether to find template;If it is found, then successively according to specific format search data packet being extracted according to template type
Useful HTTP data segment out, and form chained list;If do not found, it is determined that be unknown applications, export the information of HTTP;
The HTTP data segment chained list analytically gone out finds out the content field of template definition;
Export the WEB application name and content substance information parsed.
3. electric system WEB class application data restoration method described in accordance with the claim 1, it is characterised in that: the step
Template is divided into three parts by WEB class description language in S101, and first part is template identification division, and second part is key content
Description section, Part III are data type.
4. electric system WEB class application data restoration method described in accordance with the claim 3, it is characterised in that: the key
Contents describing portion includes keyword, the initial position of key content in the packet, key content length.
5. electric system WEB class application data restoration method described in accordance with the claim 1, it is characterised in that: the step
It is first compared with the HOST field parsed in S104, url field is then subjected to precise alignment again, finds out matched template.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910068441.8A CN110008424A (en) | 2019-01-24 | 2019-01-24 | Electric system WEB class application data restoration method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910068441.8A CN110008424A (en) | 2019-01-24 | 2019-01-24 | Electric system WEB class application data restoration method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110008424A true CN110008424A (en) | 2019-07-12 |
Family
ID=67165476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910068441.8A Pending CN110008424A (en) | 2019-01-24 | 2019-01-24 | Electric system WEB class application data restoration method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110008424A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098331A (en) * | 2010-12-29 | 2011-06-15 | 北京锐安科技有限公司 | Method and system for reducing WEB type application contents |
US9552439B1 (en) * | 2014-05-02 | 2017-01-24 | Tribune Publishing Company, Llc | Online information system with continuous scrolling and advertisements |
CN107239849A (en) * | 2017-04-17 | 2017-10-10 | 西安电子科技大学 | One kind is based on improved exponential smoothing gray model Methods of electric load forecasting |
-
2019
- 2019-01-24 CN CN201910068441.8A patent/CN110008424A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098331A (en) * | 2010-12-29 | 2011-06-15 | 北京锐安科技有限公司 | Method and system for reducing WEB type application contents |
US9552439B1 (en) * | 2014-05-02 | 2017-01-24 | Tribune Publishing Company, Llc | Online information system with continuous scrolling and advertisements |
CN107239849A (en) * | 2017-04-17 | 2017-10-10 | 西安电子科技大学 | One kind is based on improved exponential smoothing gray model Methods of electric load forecasting |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102098331B (en) | Method and system for reducing WEB type application contents | |
US7392348B2 (en) | Method for validating remotely cached dynamic content web pages | |
KR100461019B1 (en) | web contents transcoding system and method for small display devices | |
US7721262B2 (en) | System, methods and apparatus for markup language debugging | |
CN110808868B (en) | Test data acquisition method and device, computer equipment and storage medium | |
CN106960030A (en) | Pushed information method and device based on artificial intelligence | |
KR100967337B1 (en) | A web browser system using proxy server of a mobile communication terminal | |
CN109104456A (en) | A kind of user tracking based on browser fingerprint and propagating statistics analysis method | |
CN110798445B (en) | Public gateway interface testing method and device, computer equipment and storage medium | |
KR20080052097A (en) | Harmful web site filtering method and apparatus using web structural information | |
CN107958078A (en) | Information generating method and device | |
CN112733057A (en) | Network content security detection method, electronic device and storage medium | |
CN109446042A (en) | A kind of blog management method and system for intelligent power equipment | |
CN108364022A (en) | The browser-cross device identification method of fingerprint similarity is analyzed based on machine learning | |
CN103825772A (en) | Method for identifying user click behavior and gateway equipment | |
CN110008424A (en) | Electric system WEB class application data restoration method | |
CN104573040A (en) | Method and system for capturing webpage data | |
KR101184809B1 (en) | Method and server for providing web page | |
CN104484414B (en) | A kind for the treatment of method and apparatus of collection information | |
Gupta et al. | Mobile web: web manipulation for small displays using multi-level hierarchy page segmentation | |
CN114722385A (en) | Flow information analysis method, system and related components | |
CN104125105A (en) | Method and device for classifying internet application places | |
CN112162801A (en) | General Web online flow chart display method, system medium and terminal for air compressor equipment | |
CN108282486B (en) | File system and file display method | |
CN109992331A (en) | The common function portal assembly dynamic adjusting method and system of Behavior-based control analysis |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190712 |