CN104714791A - Methods and devices for splitting and reloading Web application - Google Patents

Methods and devices for splitting and reloading Web application Download PDF

Info

Publication number
CN104714791A
CN104714791A CN201310693284.2A CN201310693284A CN104714791A CN 104714791 A CN104714791 A CN 104714791A CN 201310693284 A CN201310693284 A CN 201310693284A CN 104714791 A CN104714791 A CN 104714791A
Authority
CN
China
Prior art keywords
web
split
web application
result
code snippet
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.)
Granted
Application number
CN201310693284.2A
Other languages
Chinese (zh)
Other versions
CN104714791B (en
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.)
BEIJING HANDSCAPE TECHNOLOGY Co Ltd
Original Assignee
BEIJING HANDSCAPE TECHNOLOGY 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 BEIJING HANDSCAPE TECHNOLOGY Co Ltd filed Critical BEIJING HANDSCAPE TECHNOLOGY Co Ltd
Priority to CN201310693284.2A priority Critical patent/CN104714791B/en
Publication of CN104714791A publication Critical patent/CN104714791A/en
Application granted granted Critical
Publication of CN104714791B publication Critical patent/CN104714791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for splitting a Web application. The method includes the steps of performing interpretive execution on one code section of a Web application source code and generating a splitting result. According to the step of performing interpretive execution on one code section of the Web application source code, a control point label, an independent working space and an independent buffer are established for the code section; according to the step of generating the splitting result, data stored in the obtained control point label and the obtained independent buffer serve as the obtained result obtained by splitting the code section from the Web application, wherein the control point label is used for describing operation, needing to be completed, of a control point corresponding to the code section in the interpretive execution process, the independent working space is used for completing the interpretive execution process, and the independent buffer is used for storing an intermediate state, intermediate parameters and an intermediate result in the process of interpretive execution.

Description

A kind of method and apparatus Web application being carried out to split Yu reset
Technical field
The present invention relates to network communication field, particularly a kind of method and apparatus Web application being carried out to split Yu reset.
Background technology
In recent years, along with developing rapidly of internet, network replaces broadcast, newspaper, TV gradually, becomes the topmost means of people's obtaining information.In addition, network also plays more and more important effect in the daily study and work of people, amusement and recreation.
Web application be a kind of can by the application program of web access.A clear superiority of Web application is that user only needs browser with regard to accessibility application, and without the need to installing other software, this brings great convenience to user.
A Web application is made up of the various Web assemblies (web components) completing particular task, and by Web, service is showed the external world.In actual applications, web application is made up of multiple Servlet, JSP, html file and image file etc.All these assemblies are coordinated mutually as user provides one group of complete service.Counter, message board, login system, chatroom, forum BBS etc. are all common Web application, along with the continuous lifting of user's request and the development of computer technology, from strength to strength, meanwhile, its structure also becomes and becomes increasingly complex the function of Web application.
All need to gather the information in Web application in the fields such as internet public feelings monitoring, network data retrieval.Owing to containing a large amount of information in Web application, user may be only interested in some information wherein, therefore needs to analyze Web application, therefrom extracts the interested information of user.In addition, current Web application is all created by web developers, and Web applies the function had and also set by web developers, but the function set by web developers may not meet the needs of user.Such as, user wishes to show the current traffic flow conditions of current weather conditions and somewhere on the consolidated network page, but can only apply (apply as a Web about weather conditions and a Web about traffic flow conditions applies) acquisition before this two category information from different Web.In order to meet this type of demand of user, need to disassemble and refitting existing Web application.
Disassembling of Web application is comprised fractionation and resolved, fractionation involved in the application refers to and the code that a certain Web applies is splitted into multiple executable code fragment, and parsing involved in the application refers to and makes an explanation splitting the rear executable code fragment obtained, perform.
There is the method that Webpage is split in prior art, as at list of references 1 " based on the JavaScript interpret dynamic Web page research and implementation of Rhino; Jin Xiaoou, Zhong Baoyan, Li Xiang; " computer technology and development " the 18th volume the 2nd phase ", in list of references 2 " server end JavaScript script Vessel Design and realization based on Rhino engine ", all relate to the explanation how splitting Webpage.Although Web application comprises one or more Webpage, in prior art, Web application usually can not be directly applied for the method for splitting of Webpage.This is because Web applies the operations such as the webpage comprised exists a large amount of user interactions, subpage frame calls, this just requires must ensure the process continuity that Web applies and data integrity when splitting Web application, and this is a stern challenge to those skilled in the art.
The parsing of applying Web in prior art is a closed process, and user cannot interfere the resolving of Web application, and this is conducive to the security ensureing network access on the one hand, also limit the deep exploitation that user applies Web but then.
After Web application is disassembled, also need in some cases to be reassembled into new Web application (weather conditions on the heterogeneous networks page before and traffic flow conditions are integrated into a Webpage show as what mention in above) according to the demand of user from disassembling selected part code snippet result, this process is also referred to as refitting.The new Web that refitting can generate desired by user according to existing Webpage applies, and has prospect widely in actual applications.
Summary of the invention
The object of the invention is to overcome user in prior art to interfere the parsing of Web application, thus provide a kind of and can apply to Web the method being split, reset.
To achieve these goals, the invention provides and a kind ofly Web is applied to the method split, comprising:
To a certain code snippet of Web application source code make an explanation perform step, this step comprises: for this code snippet set up reference mark label, work alone space and independent buffer memory; And
Generate the step of split result, this step comprises: the data of preserving in obtained reference mark label and described independent buffer memory are split the result obtained as this code snippet from described Web application; Wherein,
Described reference mark label is for describing the operation explained and will complete with the reference mark corresponding to this code snippet in implementation;
The described space that works alone is for completing explanation implementation;
Described independent buffer memory is for preserving intermediateness, intermediate parameters, the intermediate result explained in implementation.
In technique scheme, also comprised before explaining execution step: obtain the step waiting the fractionation object information splitting Web application.
In technique scheme, split object information and mate step obtaining the step of waiting the fractionation object information splitting Web application and explain to perform also to comprise between step: search in the code snippet of execution to be explained and whether comprise the code snippet corresponding with fractionation object information;
Described explanation execution step makes an explanation to the described code snippet corresponding with splitting object information and performs.
In technique scheme, described fractionation object information needs to split out which partial code fragment from Web to be split applies for describing, comprise in the title of such as code snippet, position, type, length information one or more, or other can determine the parameter of a certain code snippet.
In technique scheme, also comprise before treating fractionation Web application and splitting: wait that to needing user's login authentication splitting Web application carries out simulation login authentication.
In technique scheme, the intermediateness that the code snippet that described independent buffer memory is preserved produces in explanation implementation, intermediate parameters, intermediate result have of overall importance.
Present invention also offers and a kind ofly Web is applied to the method for resetting, comprising:
Choose the step of split result, this step comprises: choose and one or morely apply to Web the split result that the method that splits obtains based on described; And
Refitting Web applying step, this step comprises: the state needed for being applied Web to be reset, parameter, intermediate result are carried out corresponding with the intermediateness in described split result, intermediate parameters and intermediate result, obtains the Web application after resetting.
In technique scheme, also comprised before choosing the step of split result and determine the content of Web application to be reset, the operation of layout.
In technique scheme, described refitting Web applying step also comprises: return to as waiting that splitting Web applies the independent buffer memory created by choosing the split result obtained in the step of split result, and re-starting assembling for treating that fractionation Web applies in the space that works alone created together with the described explanation execution result waiting to split other code snippets that Web applies, the net result obtained returns to be waited to split the Web Application Server belonging to Web application.
In technique scheme, the layout of Web application to be reset is the layout redefined.
Present invention also offers and a kind ofly Web is applied to the device split, comprise and explain execution module, generate split result module; Wherein,
Described explanation execution module is used for making an explanation execution to a certain code snippet of Web application source code, comprising: for this code snippet set up reference mark label, work alone space and independent buffer memory; And
Described generation split result module is used for the data of preserving in obtained reference mark label and described independent buffer memory from described Web application, to split the result obtained as this code snippet; Wherein,
Described reference mark label is for describing the operation explained and will complete with the reference mark corresponding to this code snippet in implementation;
The described space that works alone is for completing explanation implementation;
Described independent buffer memory is for preserving intermediateness, intermediate parameters, the intermediate result explained in implementation.
Invention further provides and a kind ofly Web is applied to the device of resetting, comprise and choose split result module and refitting Web application module; Wherein,
Described choose split result module from described to Web apply choose the split result that the device that splits obtains one or more; And
State needed for Web to be reset application, parameter, intermediate result are carried out corresponding with the intermediateness in described split result, intermediate parameters and intermediate result by described refitting Web application module, obtain the Web application after resetting.
On the other hand, the embodiment of the present invention also provides a kind of and Web is applied to the program split, and this program comprises:
To a certain code snippet of Web application source code make an explanation perform instruction, this instruction comprises: for this code snippet set up reference mark label, work alone space and independent buffer memory; And
Generate the instruction of split result, this instruction comprises: the data of preserving in obtained reference mark label and described independent buffer memory are split the result obtained as this code snippet from described Web application; Wherein,
Described reference mark label is for describing the operation explained and will complete with the reference mark corresponding to this code snippet in implementation;
The described space that works alone is for completing explanation implementation;
Described independent buffer memory is for preserving intermediateness, intermediate parameters, the intermediate result explained in implementation.
Preferably, described program also comprises: obtain the instruction waiting the fractionation object information splitting Web application.
Preferably, described program also comprises fractionation object information matching instruction, and this instruction is used for searching in the code snippet of execution to be explained whether comprise the code snippet corresponding with splitting object information;
Perform in instruction in described explanation, making an explanation to the described code snippet corresponding with splitting object information performs.
Preferably, described acquisition waits the fractionation object information that the instruction of the fractionation object information splitting Web application obtains needs to split out which partial code fragment from Web to be split applies for describing, comprise in the title of such as code snippet, position, type, length information one or more, or other can determine the parameter of a certain code snippet.
Preferably, described program also comprises: wait needing user's login authentication to split the instruction that Web application carries out simulating login authentication.
Preferably, the intermediateness that the code snippet that described independent buffer memory is preserved produces in explanation implementation, intermediate parameters, intermediate result have of overall importance.
Another aspect, the embodiment of the present invention also provides a kind of and Web is applied to the program of resetting, and this program comprises:
Choose the instruction of split result, this instruction comprises: choose and one or morely apply to Web the split result that the program that splits obtains based on described; And
The instruction of refitting Web application, this instruction comprises: the state needed for being applied Web to be reset, parameter, intermediate result are carried out corresponding with the intermediateness in described split result, intermediate parameters and intermediate result, obtains the Web application after resetting.
Preferably, described program also comprises and determines the content of Web to be reset application, the instruction of layout.
Preferably, described refitting Web application instruction also comprises: return to as waiting that splitting Web applies the independent buffer memory created by choosing the split result obtained in the step of split result, and re-starting assembling for treating that fractionation Web applies in the space that works alone created together with the described explanation execution result waiting to split other code snippets that Web applies, the net result obtained returns to be waited to split the Web Application Server belonging to Web application.
Preferably, the layout of Web application to be reset is the layout redefined.
Again on the one hand, the embodiment of the present invention also provides a kind of computer-readable medium, and described medium above-mentionedly applies the program split for storing to Web.
On the other hand, the embodiment of the present invention also provides a kind of computer-readable medium, and described medium above-mentionedly applies the program of resetting for storing to Web.
The invention has the advantages that:
1, the fractionation that complicated Web is applied can be realized by method for splitting of the present invention, thus the code snippet of specific function can be extracted according to the demand of user from Web application.By method for splitting of the present invention, the arbitrary code fragment after fractionation can be made correctly to be performed.
2, by fractionation of the present invention and reloading method, the code snippet split out can be reconfigured, obtain the Web application of new function, and ensure to have correct execution result from different existing Web application.
Accompanying drawing explanation
Fig. 1 is process flow diagram Web being applied to the method split of the present invention;
Fig. 2 is process flow diagram Web being applied to the method for resetting of the present invention;
How Fig. 3 applies to existing Web the schematic diagram carrying out splitting Yu resetting in an example.
Embodiment
Now the invention will be further described by reference to the accompanying drawings.
With reference to figure 1, of the present inventionly the method split applied to Web comprise:
Step 101), obtain the source code waiting to split Web application from Web Application Server according to the request of user.
In this step, described in wait split Web application can comprise one or more Webpage.
Step 102), obtain wait split Web application fractionation object information.
The described fractionation object information treating that fractionation Web applies needs to split out which partial code fragment from Web to be split applies for describing, comprise in the information such as the title of code snippet, position, type, length one or more, can also be that other can determine the parameter of a certain code snippet.Wherein, the type of described code snippet at least comprises JavaScript fragment, HTML fragment and CSS fragment etc.; The position of described code snippet at least comprises: the number of pages (supposing that Web application to be split comprises multiple Webpage) of place Webpage, the initial line number in a certain Webpage or termination line number.The content for multiple code snippet can be comprised in described fractionation object information.
Described fractionation object information can be set in real time by user, also can preset rear storage, the real-time calling again when needs split Web application.
Step 103), determining step 101) obtain wait split Web application source code whether all obtained explain perform, if, terminate to treat the fractured operation splitting Web application, otherwise, from step 101) obtain wait to split the source code of Web application and extract one section of code not yet explaining execution, then perform next step;
Step 104), not yet explain in the code snippet of execution to search whether comprise and step 102 extracted) code snippet corresponding to the fractionation object information that obtains, if exist, perform next step, otherwise re-execute step 103).
Step 105), not yet explain that the code snippet corresponding with splitting object information performed does and explain to extracted and perform.Wherein, described explanation performs and comprises: for the code snippet of execution to be explained creates reference mark label; Code snippet for execution to be explained creates and to work alone space and independent buffer memory, and in described independent buffer memory, preserve intermediateness, intermediate parameters, intermediate result that code snippet produces in explanation implementation.
Described reference mark label is for describing the operation explained and will complete with the reference mark corresponding to this code snippet in implementation.Such as, in one embodiment, need the assembly B in former Web application A to split out, lay equal stress on and be contained in another new Web application C.Now, can write in the label of reference mark tackle former Web application A control command (under the control of this control command, no longer the whole code of former Web application A is done and explain execution), and point to the order of a certain working directory, store the order relevant with generating new Web application C in described working directory.
In this application, work alone space and the corresponding specific code snippet of independent buffer memory.Working alone in space described, realizing performing the explanation of corresponding code snippet by calling corresponding actuator.Such as, JavaScript engine can be called explain this fragment of execution for JavaScript fragment, html parser can be called explain this fragment of execution for HTML fragment, CSS resolver can be called explain this fragment of execution for CSS fragment.Certainly in some cases, the code snippet of execution to be explained includes incessantly a kind of type of code, as comprised HTML fragment and JavaScript fragment in the code snippet of an execution to be explained simultaneously, owing to itself there being label to separate between HTML code and JavaScript code, being therefore easy to distinguish these codes when explaining and performing and calling corresponding actuator.In the process that above-mentioned explanation performs, can produce a series of intermediateness, intermediate parameters, intermediate result, these data all can be stored in the independent buffer memory corresponding with this code snippet.Described independent buffer memory has of overall importance, and wherein preserved data can be accessed by other objects.
Those skilled in the art know, may there is certain logical organization between the different code fragment in a Web application, as calling another function in JavaScript fragment, and a parent page calling subpage frame.The storage of the intermediateness that described independent buffer memory generates in performing code snippet explanation, intermediate parameters, intermediate result can make the intersegmental logical relation of different code sheet be retained, and need not spend the logical organization that a large amount of resources is applied to pay close attention to whole Web.
Step 106), using explain in implementation preserve in the reference mark label and described independent buffer memory that obtain intermediateness, intermediate parameters, intermediate result as split result, then re-execute step 103).
More than to description of Web being applied to the method basic performing step in one embodiment split of the present invention.In other embodiments, method of the present invention also can comprise other steps.
In another embodiment, some Web application that split needs user to do login authentication, and such as a certain mailing system, user needs input account and password just can enter this mailing system.Apply for this type of Web, method of the present invention, when splitting, needs in step 101) carry out simulation login authentication according to the login authentication mode of Web application before.The login authentication mode of Webpage generally has two kinds: form login authentication and ntlm login authentication, how to be modeled as conventionally known to one of skill in the art to these two kinds of login authentication modes, to be not described in detail in the application.
In yet another embodiment, in step 101) after also comprise the following steps: to work alone space and independent buffer memory for waiting to split Web application establishment.The described space that works alone wholely is waited to split Web application for explaining to perform maybe this is waited to split the code snippet in Web application, and described independent buffer memory is waited to split intermediateness, intermediate parameters, the intermediate result of a certain code snippet in Web application for preserving.In follow-up reloading method or other application scenarios, if complete, the explanation of this code snippet is performed, obtain corresponding intermediateness, intermediate parameters, intermediate result also can be stored in this buffer memory, and then wait described in can returning to split the server belonging to Web application.
The description splitting the operation order in the methods of the invention of object information and be not limited in previous embodiment is searched in code snippet, in another embodiment, after can performing doing code snippet explanation, in the explanation execution result of code snippet, search fractionation object information, and then obtain split result; In this embodiment, the required code snippet that splits should be described in described fractionation object information and explain the information after performing.
JavaScript fragment is hereinafter a part (wherein the line number of this line code of numeral in Web application of every line start) for a certain Web application source code, for this JavaScript fragment, exemplary illustration is done to the process how this fragment is extracted:
Split in object information one, include the content split the runSum function in above-mentioned JavaScript fragment, as pointed out in this fractionation object information, the name of code snippet to be split is called that runSum, type are JavaScript fragment.So in the process of loading code fragment, when discovery a certain section of code snippet is between <script> and </script> label and the name of this section of code is called runSum, just can create reference mark label, distribute independently work space and independently buffer memory for this section of code snippet, and then do explanation execution, thus reach the object splitting out by this section of code snippet from original Web application.In described fractionation object information, by other modes, code snippet to be split can also be described, as the row feature of starting and ending code, or the row adjacent feature of starting and ending code.Such as, for the runSum function in aforementioned JavaScript fragment, also can locate according to the text feature " text feature " } in function runSum () { " and end code " in initial code and split the code snippet of this function.
By aforesaid operations, method of the present invention can split out one or more code snippet from a Web application, also can split out multiple code snippet from different Web application.Described code snippet can be the code snippet of a certain single type, as after splitting at one only comprise an independently JavaScript fragment in the code snippet that obtains, also can be the combination of dissimilar code snippet, as after splitting at one not only comprise JavaScript fragment in the code snippet that obtains, also comprise HTML fragment, also can comprise CSS fragment.
Elaborated code fragment in Web application not only can be carried out complete, correct fractionation by technical scheme of the present invention, and the code snippet after fractionation can be reset as required, and ensures the execution that the code snippet after splitting still can be correct after refitting.Apply the method for resetting to Web to need when realizing to split obtained split result to Web application above.With reference to figure 2, of the present inventionly the method for resetting applied to Web comprise:
Step 201), determine content, the layout of Web to be reset application;
In this step, how to determine the content of Web to be reset application, layout realizes by corresponding control command.The page layout that described control command markup language treats the Web application of refitting is described, by calling to data in reference mark label and independent buffer memory the content determining Web to be reset application.
In this step, the layout of Web application to be reset can be the layout that user redefines.
Step 202), according to the corresponding code snippet of contents selection of Web application to be reset;
Step 203), load step 202) in selected code snippet, based on described, the split result that the method split obtains this code snippet place Web application is applied to Web, determine the operation that will complete according to the reference mark label of this code snippet, read from the independent buffer memory corresponding to this code snippet and a series of intermediatenesses, intermediate parameters and the intermediate result that generate in implementation are explained to this code snippet;
Step 204), according to step 201) in the layout of Web application to be reset determined, state, parameter, intermediate result and step 202 needed for Web to be reset is applied) in the intermediateness of selected code snippet, intermediate parameters and intermediate result carry out one_to_one corresponding, after correspondence success execution next step;
Step 205), the explanation execution result of each code snippet is arranged into the assigned address waiting to reset in Web application, generate the Web application after refitting.
More than that these steps achieve the refitting that Web is applied in client to description of Web being applied to the method basic step in one embodiment of resetting of the present invention.
In another embodiment, the step being applied in the refitting of Web Application Server end for realizing Web is also comprised.This step is positioned at step 203) after, comprise: to selected code snippet, read is explained that a series of intermediatenesses, intermediate parameters and the intermediate result generated in implementation returns to the buffer memory waiting to split Web application, in work space, re-start assembling together with the described explanation execution result waiting to split other code snippets that Web applies, the net result obtained returns to be waited to split the Web Application Server belonging to Web application.
For the ease of understanding, the refitting above-mentioned Web being applied in Web Application Server end illustrates.Suppose can realize three functions in a Web application 10, these three functions are labeled as 10A, 10B, 10C respectively.Web application 10 is split, the code snippet corresponding to described function 10A, function 10B, function 10C is split out, be then re-fitted to respectively again in Web application 20, Web application 30, Web application 40.Now, user can see respectively with the Web application 20 of function 10A by client browser, Web application 30 with function 10B and the Web application 40 with function 10C, and realize corresponding function, as function 10A is by these Web application: realize the calculating operation of data by a counter and preserve result of calculation in a database.But for Web Application Server, it is only known has Web to apply 10, do not know have Web application 20, Web application 30, Web application 40.In order to keep the accuracy of data syn-chronization and execution result, needs will in new Web application 20,30, the result of the function realized in 40 returns to the Web Application Server that the original affiliated Web of this function applies 10 places, as function 10A is applied 20 at Web by needs, 30, the execution result in 40 returns to the Web Application Server belonging to Web application 10.Therefore need to do aforesaid repacking operation at Web Application Server end.
Be more than of the present invention Web application is carried out splitting the description with the execution step of method of resetting, for the ease of understanding, below in conjunction with a concrete example, this process be described further.
In examples as shown in figure 3, existing two Web application, is labeled as the helloworldA page and the helloworldB page respectively.The helloworldA page wherein has three rower label, is expressed as that A1 is capable, A2 is capable and A3 is capable, and these three rowers label are respectively used to perform add operation; The helloworldB page also has three rower label, is expressed as that B1 is capable, B2 is capable and B3 is capable, and these three rowers label are also respectively used to perform add operation.In this example, user requires to be aggregated on a new page helloworldAB with the B3 in the helloworldB page is capable capable for the A2 in the helloworldA page.
In order to meet the above-mentioned requirements of user, first need to split the helloworldA page, the helloworldB page respectively.
To be split as example to the helloworldA page.First the source code of this page is obtained from server; Then from the Script script of the source code of this page, extract according to the needs of user the function that name is called ABSum2, the function of this function be A2 is capable in the value of first element be added with the value of second element, and from the HTML fragment of the source code of this page, extract A2 rower label HTML information.Similar with it to the fractionation of the helloworldB page.
After completing above-mentioned fractured operation, refitting is needed to generate new page helloworldAB.According to the content that should comprise in the known new page helloworldAB of Fig. 3 and layout, therefore in refitting process, first perform described ABSum2 function by calling JavaScript engine, and explain execution A2 rower label HTML information; Then described ABSumB3 function (this function is for function that the value of first element during B3 is capable is added with the value of second element in the Script script of helloworldB page source code) is performed by calling JavaScript engine, and explain and perform B3 rower label HTML information, finally can reset and generate new page helloworldAB.
Example from the above can be found out, method of the present invention can by splitting one or more former Webpage, then according to user intention, the content in one or more former Web application is reset into the new Web application that user needs.This is conducive to further utilization network being had to information, meets the demand of user better.
In addition, method of the present invention is interfered the generative process that Web applies by sequence of operations such as fractionation, parsing and refittings, compared with original closed process, by method of the present invention, the route that the generative process that user can allow Web apply is expected according to user realizes, thus reaches the result that user expects.
It should be noted last that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted.Although with reference to embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, modify to technical scheme of the present invention or equivalent replacement, do not depart from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.

Claims (12)

1. Web is applied to the method split, comprising:
To a certain code snippet of Web application source code make an explanation perform step, this step comprises: for this code snippet set up reference mark label, work alone space and independent buffer memory; And
Generate the step of split result, this step comprises: the data of preserving in obtained reference mark label and described independent buffer memory are split the result obtained as this code snippet from described Web application; Wherein,
Described reference mark label is for describing the operation explained and will complete with the reference mark corresponding to this code snippet in implementation;
The described space that works alone is for completing explanation implementation;
Described independent buffer memory is for preserving intermediateness, intermediate parameters, the intermediate result explained in implementation.
2. according to claim 1ly Web is applied to the method split, it is characterized in that, explain perform step before also comprise: obtain the step waiting the fractionation object information splitting Web application.
3. according to claim 2ly Web is applied to the method split, it is characterized in that, split object information and mate step obtaining the step of waiting the fractionation object information splitting Web application and explain to perform also to comprise between step: search in the code snippet of execution to be explained and whether comprise the code snippet corresponding with fractionation object information;
Described explanation execution step makes an explanation to the described code snippet corresponding with splitting object information and performs.
4. according to Claims 2 or 3, the method split is applied to Web, it is characterized in that, described fractionation object information needs to split out which partial code fragment from Web to be split applies for describing, comprise in the title of such as code snippet, position, type, length information one or more, or other can determine the parameter of a certain code snippet.
5. according to claim 1 or 2 or 3, the method split being applied to Web, it is characterized in that, also comprising treating to split before Web application splits: wait that to needing user's login authentication splitting Web application carries out simulation login authentication.
6. according to claim 1 or 2 or 3, apply the method split to Web, it is characterized in that, the code snippet preserved of described independent buffer memory is explaining that intermediateness, intermediate parameters, the intermediate result produced in implementation has of overall importance.
7. Web is applied to a method of resetting, comprising:
Choose the step of split result, this step comprises: choose one or more based on applying to Web the split result that the method that splits obtains one of claim 1-6 Suo Shu; And
Refitting Web applying step, this step comprises: the state needed for being applied Web to be reset, parameter, intermediate result are carried out corresponding with the intermediateness in described split result, intermediate parameters and intermediate result, obtains the Web application after resetting.
8. according to claim 7ly Web is applied to the method for resetting, it is characterized in that, also comprised before choosing the step of split result and determine the content of Web application to be reset, the operation of layout.
9. according to claim 7 or 8, the method for resetting is applied to Web, it is characterized in that, described refitting Web applying step also comprises: return to as waiting that splitting Web applies the independent buffer memory created by choosing the split result obtained in the step of split result, and re-starting assembling for treating that fractionation Web applies in the space that works alone created together with the described explanation execution result waiting to split other code snippets that Web applies, the net result obtained returns to be waited to split the Web Application Server belonging to Web application.
10. according to claim 8ly Web is applied to the method for resetting, it is characterized in that, the layout of Web application to be reset is the layout redefined.
Web is applied to the device split, it is characterized in that for 11. 1 kinds, comprise and explain execution module, generation split result module; Wherein,
Described explanation execution module is used for making an explanation execution to a certain code snippet of Web application source code, comprising: for this code snippet set up reference mark label, work alone space and independent buffer memory; And
Described generation split result module is used for the data of preserving in obtained reference mark label and described independent buffer memory from described Web application, to split the result obtained as this code snippet; Wherein,
Described reference mark label is for describing the operation explained and will complete with the reference mark corresponding to this code snippet in implementation;
The described space that works alone is for completing explanation implementation;
Described independent buffer memory is for preserving intermediateness, intermediate parameters, the intermediate result explained in implementation.
Web is applied to the device of resetting, it is characterized in that for 12. 1 kinds, comprise and choose split result module and refitting Web application module; Wherein,
Described choose split result module from according to claim 11 to Web apply choose the split result that the device that splits obtains one or more; And
State needed for Web to be reset application, parameter, intermediate result are carried out corresponding with the intermediateness in described split result, intermediate parameters and intermediate result by described refitting Web application module, obtain the Web application after resetting.
CN201310693284.2A 2013-12-17 2013-12-17 A kind of method and apparatus that Web applications are split and reset Active CN104714791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310693284.2A CN104714791B (en) 2013-12-17 2013-12-17 A kind of method and apparatus that Web applications are split and reset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310693284.2A CN104714791B (en) 2013-12-17 2013-12-17 A kind of method and apparatus that Web applications are split and reset

Publications (2)

Publication Number Publication Date
CN104714791A true CN104714791A (en) 2015-06-17
CN104714791B CN104714791B (en) 2018-05-04

Family

ID=53414170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310693284.2A Active CN104714791B (en) 2013-12-17 2013-12-17 A kind of method and apparatus that Web applications are split and reset

Country Status (1)

Country Link
CN (1) CN104714791B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343963A (en) * 2018-10-30 2019-02-15 杭州数梦工场科技有限公司 A kind of the application access method, apparatus and relevant device of container cluster

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1337808A (en) * 2001-09-24 2002-02-27 北京大学 Multimedia web site spliting and reconstructing method
US20050210053A1 (en) * 2004-03-18 2005-09-22 International Business Machines Corporation Method and apparatus for splitting and merging request and response data at runtime
US20060056406A1 (en) * 2004-09-10 2006-03-16 Cavium Networks Packet queuing, scheduling and ordering
CN101546260A (en) * 2008-03-28 2009-09-30 国际商业机器公司 Method and device thereof for reconstructing service-oriented applications
US20090292791A1 (en) * 2008-05-23 2009-11-26 Microsoft Corporation Automated code splitting and pre-fetching for improving responsiveness of browser-based applications
US20110161825A1 (en) * 2009-12-31 2011-06-30 Tierney Chris Systems and methods for testing multiple page versions across multiple applications
CN102135904A (en) * 2011-03-11 2011-07-27 华为技术有限公司 Multi-core target system oriented mapping method and device
CN102253979A (en) * 2011-06-23 2011-11-23 天津海量信息技术有限公司 Vision-based web page extracting method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1337808A (en) * 2001-09-24 2002-02-27 北京大学 Multimedia web site spliting and reconstructing method
US20050210053A1 (en) * 2004-03-18 2005-09-22 International Business Machines Corporation Method and apparatus for splitting and merging request and response data at runtime
US20060056406A1 (en) * 2004-09-10 2006-03-16 Cavium Networks Packet queuing, scheduling and ordering
CN101546260A (en) * 2008-03-28 2009-09-30 国际商业机器公司 Method and device thereof for reconstructing service-oriented applications
US20090292791A1 (en) * 2008-05-23 2009-11-26 Microsoft Corporation Automated code splitting and pre-fetching for improving responsiveness of browser-based applications
US20110161825A1 (en) * 2009-12-31 2011-06-30 Tierney Chris Systems and methods for testing multiple page versions across multiple applications
CN102135904A (en) * 2011-03-11 2011-07-27 华为技术有限公司 Multi-core target system oriented mapping method and device
CN102253979A (en) * 2011-06-23 2011-11-23 天津海量信息技术有限公司 Vision-based web page extracting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343963A (en) * 2018-10-30 2019-02-15 杭州数梦工场科技有限公司 A kind of the application access method, apparatus and relevant device of container cluster

Also Published As

Publication number Publication date
CN104714791B (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US11403364B2 (en) Method and terminal device for extracting web page content
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
JP4857349B2 (en) Method, system, and computer program for providing asynchronous portal pages within a portal system
CN102393857B (en) Method and system for local call based on web page
JP2019032883A (en) Method, apparatus, server and system for implementing web application
CN104158836A (en) Method for rendering mobile application interface through data
CN109901834A (en) Document file page generation method, device, computer equipment and storage medium
CN104063401B (en) The method and apparatus that a kind of webpage pattern address merges
CN105095280A (en) Caching method and apparatus for browser
KR20080053293A (en) Initial server-side content rendering for client-script web pages
CN109284454B (en) Page rendering method, device, computer equipment and storage medium
CN111880790A (en) Page rendering method, page rendering system, and computer-readable storage medium
CN104063407A (en) Browser architecture based on cloud computing and analysis method
CN105068802B (en) A kind of Web application software realization system and method for striding equipment operation
CN101963992A (en) Method and browser for increasing webpage display speed
CN105095220B (en) A kind of browser implementation method, terminal and virtualization agent device
CN110633219A (en) Page testing method and device, storage medium and electronic equipment
CN101860734A (en) Method for implementing incremental transmission and display of dynamic images through AJAX
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
US10165036B1 (en) Network resource remote process execution
CN111679828B (en) Data processing method and device, electronic equipment and storage medium
CN109255063A (en) A kind of method and apparatus crawling web page contents
CN111880789A (en) Page rendering method, device, server and computer-readable storage medium
WO2015183235A1 (en) Response based on browser engine
CN101533409A (en) Network browser system and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Methods and devices for splitting and reloading Web application

Effective date of registration: 20200701

Granted publication date: 20180504

Pledgee: Zhongguancun Beijing technology financing Company limited by guarantee

Pledgor: BEIJING HANDSCAPE TECHNOLOGY Co.,Ltd.

Registration number: Y2020980003707

PE01 Entry into force of the registration of the contract for pledge of patent right