CN104714791B - A kind of method and apparatus that Web applications are split and reset - Google Patents

A kind of method and apparatus that Web applications are split and reset Download PDF

Info

Publication number
CN104714791B
CN104714791B CN201310693284.2A CN201310693284A CN104714791B CN 104714791 B CN104714791 B CN 104714791B CN 201310693284 A CN201310693284 A CN 201310693284A CN 104714791 B CN104714791 B CN 104714791B
Authority
CN
China
Prior art keywords
split
web
web applications
result
reset
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.)
Active
Application number
CN201310693284.2A
Other languages
Chinese (zh)
Other versions
CN104714791A (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

Abstract

The present invention relates to a kind of method split to Web applications, including:The step of explaining execution to a certain code snippets of Web application source codes, which includes:Control point label, autonomous working space and independent caching are established for the code snippet;And the step of generation split result, which includes:Using the data preserved in obtained control point label and the independent caching as the code snippet obtained result is split from Web applications;Wherein, the control point label is used to describe to explain in implementation procedure and the operation to be completed of control point corresponding to the code snippet;The autonomous working space is used to complete to explain implementation procedure;The independent caching is used to preserve intermediateness, intermediate parameters, the intermediate result explained in implementation procedure.

Description

A kind of method and apparatus that Web applications are split and reset
Technical field
The present invention relates to network communication field, more particularly to a kind of method that Web applications are split and reset and dress Put.
Background technology
In recent years, developing rapidly with internet, network gradually substitute broadcast, newspaper, TV, become people and obtain The most important means of breath of winning the confidence.In addition, network also functioned in the daily study and work of people, amusement and recreation it is more and more important Effect.
Web application be it is a kind of can be by the application program of web access.One clear superiority of Web applications is user Browser is needed with regard to accessibility application, without installing other software, this brings great convenience to user.
One Web applies the various Web components by completion particular task(Web components) form, and pass through Web Service is showed into the external world.In practical applications, web application is by multiple Servlet, JSP page, html file and figure As the composition such as file.All these components are mutually coordinated to be provided one group to the user and completely services.Counter, message board, login System, chatroom, forum BBS etc. be common Web applications, continuous lifting and computer technology with user demand Continue to develop, the function of Web applications is stronger and stronger, and at the same time, its structure also becomes to become increasingly complex.
The information being required in the fields such as internet public feelings monitoring, network data retrieval in collection Web applications.Due to Substantial amounts of information is contained in Web applications, user may be only interested in some information therein, it is therefore desirable to which Web is applied Analyzed, therefrom extract user's information interested.In addition, current Web applications are all created by web developers, Web Also all set using possessed function by web developers, but the function set by web developers may not meet the need of user Will.For example, user wishes to show current weather conditions and the current traffic flow conditions in somewhere on the consolidated network page, but It can only be applied before this two category information from different Web(As a Web on weather conditions is applied with one on traffic flow The Web applications of amount situation)Obtain.In order to meet such demand of user, it is necessary to existing Web application disassemble with again Dress.
To disassembling including splitting and parsing for Web applications, the fractionation involved by the application refers to apply a certain Web Code splits into multiple executable code fragments, in the application involved parsing refer to obtained executable code after fractionation Fragment is explained, performed.
The method split to Webpage exists in the prior art, as in bibliography 1 " based on Rhino JavaScript dynamic pages analysis research is with realizing;Jin Xiaoou, Zhong Baoyan, Li Xiang;《Computer technology and development》Volume 18 2nd phase ", all relates in bibliography 2 " the server end JavaScript scripts Vessel Design based on Rhino engines is with realizing " And to the explanation for how splitting Webpage.Although Web is using one or more Webpages are included, in the prior art to net The method for splitting of the network page is usually unable to be directly applied for Web applications.This is because Web exists greatly using included webpage The user mutual of amount, subpage frame such as call at the operation, and this requires splitting the process company that must assure that Web applications during Web applications Coherence and data integrity, this is a stern challenge to those skilled in the art.
The parsing to Web applications is a process closed in the prior art, and user can not be to the resolving of Web applications Interfered, this aspect advantageously ensures that the security of network access, also limit what user applied Web but then Deep exploitation.
After Web applications are disassembled, also need to be chosen from disassembling in result according to the demand of user in some cases Partial code fragment is reassembled into new Web applications(As noted above the day before on the heterogeneous networks page is vaporous Condition and traffic flow conditions are integrated on a Webpage and show), the also referred to as refitting of this process.Refitting can be according to Some desired new Web applications of Webpage generation user, there is extensive prospect in practical applications.
The content of the invention
It is an object of the invention to overcome user in the prior art can not to interfere the Web parsings applied, so as to carry For a kind of method that Web applications can be split, be reset.
To achieve these goals, the present invention provides a kind of method split to Web applications, including:
The step of explaining execution to a certain code snippets of Web application source codes, which includes:For the code piece Duan Jianli control points label, autonomous working space and independent caching;And
The step of generating split result, which includes:By in obtained control point label and the independent caching The data preserved split obtained result as the code snippet from Web applications;Wherein,
The control point label is used to describe to explain complete with the control point corresponding to the code snippet in implementation procedure Into operation;
The autonomous working space is used to complete to explain implementation procedure;
The independent caching is used to preserve intermediateness, intermediate parameters, the intermediate result explained in implementation procedure.
In above-mentioned technical proposal, further included before execution step is explained:Obtain the fractionation object letter of Web applications to be split The step of breath.
In above-mentioned technical proposal, step is performed with explaining obtain the fractionation object information of Web to be split application the step of Between further include split object information matching step:Search whether to include with splitting object in the code snippet of execution to be explained The corresponding code snippet of information;
It is described to explain that perform step explains execution to the code snippet corresponding with splitting object information.
In above-mentioned technical proposal, the object information that splits is used to describe to need to split out from Web applications to be split One or more in which partial code fragment, including the title of such as code snippet, position, type, length information, or its He can determine the parameter of a certain code snippet.
In above-mentioned technical proposal, further included treating to split before Web applications are split:To needing user to do login authentication Web to be split application carry out simulation login authentication.
In above-mentioned technical proposal, the preserved code snippet of the independent caching is in caused in explaining implementation procedure Between state, intermediate parameters, intermediate result have it is of overall importance.
Present invention also offers a kind of method reset to Web applications, including:
The step of choosing split result, which includes:One or more is chosen to tear Web applications open based on described The obtained split result of method divided;And
Web applying steps are reset, which includes:By Web to be reset using required state, parameter, intermediate result Corresponding, the Web applications after being reset are carried out with the intermediateness in the split result, intermediate parameters and intermediate result.
In above-mentioned technical proposal, further include and determined in Web applications to be reset before the step of choosing split result Hold, the operation of layout.
In above-mentioned technical proposal, the refitting Web applying steps further include:Obtained by the step of split result will be chosen Split result to return to be the created independent caching of Web to be split applications, and applied for Web to be split created it is only Assembling is re-started with together with the explanation implementing result of other code snippets of the Web applications to be split in vertical working space, Obtained final result returns to Web to be split and applies affiliated Web Application Server.
In above-mentioned technical proposal, the layout of Web to be reset application is the layout redefined.
Present invention also offers a kind of device split to Web applications, including explain that execution module, generation split knot Fruit module;Wherein,
It is described to explain that execution module is used to explain execution to a certain code snippet of Web application source codes, including:For The code snippet establishes control point label, autonomous working space and independent caching;And
The generation split result module is used to be preserved in obtained control point label and the independent caching Data as the code snippet from the Web application in split obtained result;Wherein,
The control point label is used to describe to explain complete with the control point corresponding to the code snippet in implementation procedure Into operation;
The autonomous working space is used to complete to explain implementation procedure;
The independent caching is used to preserve intermediateness, intermediate parameters, the intermediate result explained in implementation procedure.
Invention further provides a kind of device reset to Web applications, including choose split result module and refitting Web application modules;Wherein,
The split result module of choosing is from the obtained split result of device split to Web applications Choose one or more;And
The refitting Web application modules tear Web to be reset using required state, parameter, intermediate result open with described Intermediateness, intermediate parameters and intermediate result in point result are corresponded to, the Web applications after being reset.
On the other hand, the embodiment of the present invention also provides a kind of program split to Web applications, which includes:
The instruction of execution is explained to a certain code snippet of Web application source codes, which includes:For the code piece Duan Jianli control points label, autonomous working space and independent caching;And
The instruction of split result is generated, which includes:By in obtained control point label and the independent caching The data preserved split obtained result as the code snippet from Web applications;Wherein,
The control point label is used to describe to explain complete with the control point corresponding to the code snippet in implementation procedure Into operation;
The autonomous working space is used to complete to explain implementation procedure;
The independent caching is used to preserve intermediateness, intermediate parameters, the intermediate result explained in implementation procedure.
Preferably, described program further includes:Obtain the instruction of the fractionation object information of Web applications to be split.
Preferably, described program, which further includes, splits object information matching instruction, which is used for the generation in execution to be explained Search whether to include code snippet corresponding with splitting object information in chip segment;
In the explanation execute instruction, execution is explained to the code snippet corresponding with splitting object information.
Preferably, the obtained fractionation object information of instruction of the fractionation object information for obtaining Web applications to be split For describing to need which partial code fragment split out from Web applications to be split, including the title of such as code snippet, One or more in position, type, length information, or other can determine the parameter of a certain code snippet.
Preferably, described program further includes:To needing user's login authentication Web applications to be split to carry out simulation login The instruction of certification.
Preferably, it is described it is independent cache preserved code snippet in implementation procedure is explained caused intermediateness, Intermediate parameters, intermediate result have of overall importance.
Another aspect, the embodiment of the present invention also provide a kind of program reset to Web applications, which includes:
The instruction of split result is chosen, which includes:One or more is chosen to tear Web applications open based on described The obtained split result of program divided;And
The instruction of Web applications is reset, which includes:By Web to be reset using required state, parameter, middle knot Fruit carries out corresponding with the intermediateness in the split result, intermediate parameters and intermediate result, and Web after being reset should With.
Preferably, described program further includes the instruction of the content, layout that determine Web applications to be reset.
Preferably, the refitting Web application instructions further include:It is obtained in the step of split result will be chosen to split knot Fruit returns to be cached for the created independence of Web to be split applications, and is being that the created autonomous working of Web to be split applications is empty Between in re-start assembling together with the explanation implementing result of other code snippets of Web the to be split application, it is obtained Final result returns to Web to be split and applies affiliated Web Application Server.
Preferably, the layout of Web to be reset application is the layout redefined.
Another further aspect, the embodiment of the present invention also provide a kind of computer-readable medium, and it is above-mentioned right that the medium is used to store The program that Web applications are split.
On the other hand, the embodiment of the present invention also provides a kind of computer-readable medium, and it is above-mentioned right that the medium is used to store The program that Web applications are reset.
The advantage of the invention is that:
1st, the fractionation to complicated Web applications can be realized by the method for splitting of the present invention, so as to according to user's Demand extracts the code snippet of specific function from Web applications.By the present invention method for splitting, after fractionation being made Arbitrary code fragment is properly executed.
2nd, the fractionation by the present invention and reloading method, the code that will can be split out from different existing Web applications Fragment is reconfigured, and obtains the Web applications of new function, and ensure can there is correct implementing result.
Brief description of the drawings
Fig. 1 is the flow chart of the method split to Web applications of the present invention;
Fig. 2 is the flow chart of the method reset to Web applications of the present invention;
Fig. 3 is how to apply the schematic diagram for being split and being reset to existing Web in an example.
Embodiment
In conjunction with attached drawing, the invention will be further described.
With reference to figure 1, the method for the invention split to Web applications includes:
Step 101), the source code that Web to be split applies obtained from Web Application Server according to the request of user.
In this step, the Web applications to be split can include one or more Webpages.
Step 102), obtain the fractionation object information of Web to be split application.
The fractionation object information of the Web applications to be split is used to describe to need to split out from Web applications to be split One or more in which partial code fragment, including the information such as the title of code snippet, position, type, length, can be with It is the parameter that other can determine a certain code snippet.Wherein, the type of the code snippet includes at least JavaScript pieces Section, HTML fragment and CSS fragments etc.;The position of the code snippet includes at least:The number of pages of place Webpage(Assuming that treat The Web of fractionation, which is applied, includes multiple Webpages), starting line number in a certain Webpage or terminate line number.Torn open described Divide in object information the content that can be included for multiple code snippets.
The fractionation object information can be set in real time by user, be stored after can also presetting, and be answered when needing fractionation Web Used time real-time calling again.
Step 103), judgment step 101)Whether the source code of obtained Web applications to be split all has been explained Perform, if so, terminating to treat the fractured operation for splitting Web applications, otherwise, from step 101)Obtained Web applications to be split Source code in extract one section of code for not yet explaining execution, then perform next step;
Step 104), search whether in the code snippet for not yet explaining execution extracted to include and step 102)Gained The corresponding code snippet of fractionation object information arrived, if in the presence of performing next step, otherwise re-execute step 103).
Step 105), not yet explaining of being extracted is performed do explanation with splitting the corresponding code snippet of object information and hold OK.Wherein, the explanation is performed and included:Control point label is created for the code snippet of execution to be explained;For execution to be explained Code snippet create autonomous working space and cached with independent, and preserve code snippet in the independent caching and held in explanation Caused intermediateness, intermediate parameters, intermediate result during row.
The control point label is used to describe to explain complete with the control point corresponding to the code snippet in implementation procedure Into operation.For example, in one embodiment, it is necessary to the component B in former Web applications A is splitted out, lay equal stress on mounted in another new Web applications C in.At this time, the control command for intercepting original Web applications A can be write in the label of control point(In this control command Control under, explanation is no longer done to the whole code of former Web applications A and is performed), and it is directed toward the order of a certain working directory, institute State and the order related with generating new Web applications C is stored in working directory.
In this application, an autonomous working space and the corresponding specific code snippet of independent caching.Described Autonomous working space in, by calling corresponding actuator to realize, the explanation to corresponding code snippet performs.For example, for JavaScript fragments can call JavaScript engine and perform the fragment to explain, HTML can be called to parse for HTML fragment Device performs the fragment to explain, can call CSS resolvers for CSS fragments to explain and perform the fragment.Certainly in some situations Under, the code snippet of execution to be explained includes the type of code of more than one, such as in the code snippet of an execution to be explained At the same time comprising HTML fragment and JavaScript fragments, due to itself having label between HTML code and JavaScript code Separate, therefore be easily discriminated these codes when explaining and performing and call corresponding actuator.Performed in above-mentioned explanation During, a series of intermediateness, intermediate parameters, intermediate result can be produced, these data can be all saved in and the code In the corresponding independent caching of fragment.The independent caching have it is of overall importance, wherein the data preserved can be other object institutes Access.
As it is known by the man skilled in the art that a Web application in different code fragment between there may be certain logic Structure, as in JavaScript fragments to the calling of another function, calling of the parent page to subpage frame.The independent caching pair Code snippet explains that the storage of intermediateness, intermediate parameters, intermediate result generated in performing can cause different code piece Intersegmental logical relation is retained, and the logical construction of whole Web applications is paid close attention to without spending substantial amounts of resource.
Step 106), will explain what is preserved in obtained control point label in implementation procedure and the independent caching Then intermediateness, intermediate parameters, intermediate result re-execute step 103 as split result).
Above is to the present invention to the Web applications methods that are split in one embodiment realize step substantially Description.In other embodiments, method of the invention may also include other steps.
In another embodiment, some Web to be split applications need user to do login authentication, such as a certain Mailing system, user need input account and password to enter the mailing system.Applied for such Web, side of the invention Method is when being split, it is necessary in step 101)Simulation login authentication is carried out according to the Web login authentication modes applied before.Net The login authentication mode of the network page generally has two kinds:How form login authentications and ntlm login authentications, recognize both logins Card mode simulate known to those skilled in the art, is not described in detail in the application.
In yet another embodiment, in step 101)The following steps are further included afterwards:Created for Web to be split applications independent Working space is cached with independent.The autonomous working space, which is used to explain, performs whole Web applications to be split or the Web to be split Code snippet in, the independent caching be used to preserving the intermediateness of a certain code snippet during Web to be split is applied, Intermediate parameters, intermediate result.In follow-up reloading method or other application occasion, if completing the explanation to the code snippet Perform, resulting corresponding intermediateness, intermediate parameters, intermediate result are also storable in the caching, and then can be returned to The Web to be split applies affiliated server.
The order of the operation of fractionation object information in the methods of the invention is searched in code snippet and is not limited to foregoing implementation Description in example, in another embodiment, can perform knot after explanation is done to code snippet and is performed in the explanation of code snippet Searched in fruit and split object information, and then obtain split result;In this embodiment, should be described in the fractionation object information The required code snippet that splits explains the information after performing.
JavaScript fragments hereinafter are a parts for a certain Web application source codes(The numeral of where each row beginning Represent line number of the line code in Web applications), by taking this JavaScript fragment as an example, mistake how to be extracted to the fragment Journey does exemplary illustration:
In one splits object information, include what the runSum functions in above-mentioned JavaScript fragments were split Content, as pointed out in the fractionation object information, the entitled runSum of code snippet to be split, type are JavaScript pieces Section.So during loading code fragment, when a certain section of code snippet of discovery is located at<script>With</script>Label Between and this section of code entitled runSum, it is possible to create the independent work of control point label, distribution for this section of code snippet Make space and independent caching, and then do explanation and perform, split this section of code snippet from original Web applications so as to reach Purpose out.In the fractionation object information, code snippet to be split can also be described in other ways, such as originated and tied The row feature of beam code, or the row adjacent feature of starting and ending code.For example, in foregoing JavaScript fragments RunSum functions, can also be according to the text feature in initial code " in function runSum () { " and end code Text feature " } " position and split the code snippet of the function.
By aforesaid operations, method of the invention splits out one or more code snippets in being applied from a Web, Multiple code snippets can also be split out from different Web applications.The code snippet can be the code of a certain single type Fragment, after such as being split at one in obtained code snippet only comprising an independent JavaScript fragment or The combination of different types of code snippet, JavaScript pieces are not only included after such as being split at one in obtained code snippet Section, also comprising HTML fragment, can also include CSS fragments.
Elaborated code fragment during technical scheme can not only apply Web carries out complete, correctly fractionation, and And the code snippet after fractionation can be reset as needed, and ensure that the code snippet after splitting still can be with after refitting Correctly perform.The method reset to Web applications needs hereinbefore Web applications split obtained when realizing Split result.With reference to figure 2, the method for the invention reset to Web applications includes:
Step 201), determine content, the layout of Web applications to be reset;
In this step, how to determine that the content of Web applications to be reset, layout can be by corresponding control commands come real It is existing.The control command markup language treat refitting Web application page layout be described, by control point label with And the calling of data determines the content of Web applications to be reset in independent caching.
In this step, the layout of Web to be reset application can be the layout that user redefines.
Step 202), the corresponding code snippet of contents selection applied according to Web to be reset;
Step 203), load step 202)In selected code snippet, Web applications are split based on described The split result of Web applications, determines complete according to the control point label of the code snippet where method obtains the code snippet Into operation, read from the independent caching corresponding to the code snippet and the code snippet explained generated in implementation procedure A series of intermediatenesses, intermediate parameters and intermediate result;
Step 204), according to step 201)In the layout of Web applications to be reset that determines, Web to be reset is applied Required state, parameter, intermediate result and step 202)In the intermediateness of selected code snippet, intermediate parameters and in Between result corresponded, perform next step after corresponding to successfully;
Step 205), the designated position that is arranged into the explanation implementing result of each code snippet in Web to be reset application, Web applications after generation refitting.
Above is the retouching to basic steps of the Web using the method reset in one embodiment to the present invention State, these steps realize Web and apply refitting in client.
In another embodiment, further include and be used for realization Web and apply the step of being reset at Web Application Server end.Should Step is located at step 203)Afterwards, including:By it is read to selected code snippet explain implementation procedure generated in one Serial intermediateness, intermediate parameters and intermediate result return to the caching of Web to be split application, in working space with it is described The explanation implementing result of other code snippets of Web applications to be split re-starts assembling together, and obtained final result returns Affiliated Web Application Server is applied back to Web to be split.
In order to make it easy to understand, the refitting at Web Application Server end is applied to illustrate above-mentioned Web.Assuming that one Web can realize three functions in applying 10, these three functions are respectively labeled as 10A, 10B, 10C.Web is carried out using 10 Split, the code snippet corresponding to the function 10A, function 10B, function 10C is splitted out, is re-fitted to then and respectively Web is applied in 40 using 20, Web using 30, Web.At this time, user by client browser it can be seen that being respectively provided with function The Web of 10A applies 20, and the Web with functional 10B applies 40 using the 30 and Web with functional 10C, and can pass through these Web Using corresponding function is realized, as function 10A is:The calculating operation of data is realized by a calculator and is preserved in the database Result of calculation.But for Web Application Server, it, which only knows, has Web to apply 10, do not know to have Web using 20, Web using 30, Web applies 40.In order to keep data synchronous with the accuracy of implementing result, it is necessary to will be realized in new Web applies 20,30,40 The result of function return to the function originally affiliated Web be using the Web Application Server where 10, if desired for by function 10A The implementing result in 20,30,40 is applied to return to Web using the Web Application Server belonging to 10 in Web.Therefore need Foregoing repacking operation is done at Web Application Server end.
Above is the description of the execution step of the method that Web applications are split and reset of the present invention, for the ease of Understand, this process is described further with reference to a specific example.
In examples as shown in figure 3, existing two Web applications, be respectively labeled as the helloworldA pages with The helloworldB pages.The helloworldA pages therein have three row labels, are expressed as A1 rows, A2 rows and A3 rows, this Three row labels are respectively used to perform add operation;The helloworldB pages also have three row labels, are expressed as B1 rows, B2 rows With B3 rows, this three row label is also respectively used to perform add operation.In this example, user is required the helloworldA pages In A2 rows and the helloworldB pages in B3 rows be aggregated on a new page helloworldAB.
In order to meet the above-mentioned requirements of user, it is necessary first to respectively to the helloworldA pages, the helloworldB pages Split.
By taking the fractionation to the helloworldA pages as an example.The source code of the page is obtained from server first;Then basis The needs of user extract the function of entitled ABSum2, the function of the function from the Script scripts of the source code of the page It is to be added the value of first element in A2 rows with the value of second element, and the HTML fragment of the source code from the page In extract A2 row label HTML informations.Fractionation to the helloworldB pages is similar therewith.
, it is necessary to reset generation new page helloworldAB after above-mentioned fractured operation is completed.The new page according to known to Fig. 3 The content and layout that should be included in helloworldAB, therefore during refitting, first by calling JavaScript to draw Hold up and perform the ABSum2 functions, and explain and perform A2 row label HTML informations;Then by calling JavaScript engine Perform the ABSumB3 functions(The function is to be used in the Script scripts of helloworldB page source codes by B3 rows The function that the value of first element is added with the value of second element), and explain and perform B3 row label HTML informations, finally may be used Refitting generation new page helloworldAB.
Example from the above can be seen that the present invention method can by splitting one or more former Webpages, Then the new Web that the content refitting in one or more original Web applications is needed into user is applied according to user intention.This is favourable In the further utilization for having information to network, preferably meet the needs of users.
In addition, the present invention method by split, parse with refitting etc. sequence of operations to the generating process that Web is applied into Gone interference, compared with original closed process, by the method for the present invention, user can allow the generating process that Web is applied by Realized according to the desired route of user, so as to reach the result that user is expected.
It should be noted last that the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted.Although ginseng The present invention is described in detail according to embodiment, it will be understood by those of ordinary skill in the art that, to the technical side of the present invention Case technical scheme is modified or replaced equivalently, without departure from the spirit and scope of technical solution of the present invention, it should all cover in the present invention Right among.

Claims (13)

1. a kind of method split to Web applications, including:
The step of explaining execution to a certain code snippets of Web application source codes, which includes:Built for the code snippet Vertical control point label, autonomous working space and independent caching;And
The step of generating split result, which includes:It will be protected in obtained control point label and the independent caching The data deposited split obtained result as the code snippet from Web applications;Wherein,
The control point label is used to describe to explain what is completed with the control point corresponding to the code snippet in implementation procedure Operation;
The autonomous working space is used to complete to explain implementation procedure;
The independent caching is used to preserve intermediateness, intermediate parameters, the intermediate result explained in implementation procedure.
It is 2. according to claim 1 to the method that is split of Web applications, it is characterised in that explain perform step it Before further include:The step of obtaining the fractionation object information of Web applications to be split.
3. the method according to claim 2 split to Web applications, it is characterised in that should obtaining Web to be split The step of fractionation object information and explanation further include fractionation object information matching step between performing step:Held to be explained Search whether to include code snippet corresponding with splitting object information in capable code snippet;
It is described to explain that perform step explains execution to the code snippet corresponding with splitting object information.
4. the method split to Web applications according to Claims 2 or 3, it is characterised in that the fractionation object letter Breath is used to describe to need which partial code fragment split out from Web applications to be split, and includes the name of such as code snippet One or more in title, position, type, length information, or other can determine the parameter of a certain code snippet.
5. the method split to Web applications according to claim 1 or 2 or 3, it is characterised in that split treating Web applications further include before being split:To needing user's login authentication Web applications to be split to carry out simulation login authentication.
6. the method split to Web applications according to claim 1 or 2 or 3, it is characterised in that described independently to delay Depositing preserved code snippet caused intermediateness, intermediate parameters, intermediate result in implementation procedure is explained has the overall situation Property.
7. a kind of method reset to Web applications, including:
The step of choosing split result, which includes:Choose one or more pairs described in based on one of claim 1-6 The obtained split result of method that Web applications are split;And
Web applying steps are reset, which includes:Web to be reset is applied into required state, parameter, intermediate result and institute State the intermediateness in split result, intermediate parameters and intermediate result to be corresponded to, the Web applications after being reset.
8. the method according to claim 7 reset to Web applications, it is characterised in that choosing split result The operation of the content, layout that determine Web applications to be reset is further included before step.
9. the method according to claim 7 reset to Web applications, it is characterised in that the refitting Web applications step Suddenly further include:Obtained split result in the step of selection split result is returned to Web applications to be split to be created Independent caching, and other generations in for the created autonomous working space of Web to be split applications with the Web applications to be split The explanation implementing result of chip segment re-starts assembling together, and obtained final result is returned to belonging to Web applications to be split Web Application Server.
10. the method according to claim 8 reset to Web applications, it is characterised in that the refitting Web applications Step further includes:Obtained split result in the step of selection split result is returned to and is created by Web to be split applications Independent caching, and applied in for the created autonomous working space of Web to be split applications with the Web to be split other The explanation implementing result of code snippet re-starts assembling together, and obtained final result returns to Web to be split and applies institute The Web Application Server of category.
11. the method according to claim 8 reset to Web applications, it is characterised in that Web applications to be reset Layout be the layout that redefines.
12. a kind of device split to Web applications, it is characterised in that including explaining execution module, generation split result mould Block;Wherein,
It is described to explain that execution module is used to explain execution to a certain code snippet of Web application source codes, including:For the generation Chip segment establishes control point label, autonomous working space and independent caching;And
The generation split result module is used for the number that will be preserved in obtained control point label and the independent caching According to as the code snippet obtained result is split from Web applications;Wherein,
The control point label is used to describe to explain what is completed with the control point corresponding to the code snippet in implementation procedure Operation;
The autonomous working space is used to complete to explain implementation procedure;
The independent caching is used to preserve intermediateness, intermediate parameters, the intermediate result explained in implementation procedure.
13. a kind of device reset to Web applications, it is characterised in that should including choosing split result module and refitting Web Use module;Wherein,
The split result module of choosing is from the obtained fractionation of device split to Web applications described in claim 11 As a result it is middle to choose one or more;And
The refitting Web application modules tie Web to be reset using required state, parameter, intermediate result and described split Intermediateness, intermediate parameters and intermediate result in fruit are corresponded to, the Web applications after being reset.
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 CN104714791A (en) 2015-06-17
CN104714791B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343963B (en) * 2018-10-30 2021-12-07 杭州数梦工场科技有限公司 Application access method and device for container cluster and related equipment

Citations (4)

* 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
CN101546260A (en) * 2008-03-28 2009-09-30 国际商业机器公司 Method and device thereof for reconstructing service-oriented 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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7266561B2 (en) * 2004-03-18 2007-09-04 International Business Machines Corporation Method and apparatus for splitting and merging request and response data at runtime
US7895431B2 (en) * 2004-09-10 2011-02-22 Cavium Networks, Inc. Packet queuing, scheduling and ordering
US9405555B2 (en) * 2008-05-23 2016-08-02 Microsoft Technology Licensing, Llc 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

Patent Citations (4)

* 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
CN101546260A (en) * 2008-03-28 2009-09-30 国际商业机器公司 Method and device thereof for reconstructing service-oriented 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

Also Published As

Publication number Publication date
CN104714791A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
CN104158836B (en) A kind of method by data render mobile application interface
CN101583072B (en) Middleware product for realizing Mobile Internet and method thereof
CN103502983B (en) Memoizing Web-browsing computation with DOM-based isomorphism
CN103268361B (en) Extracting method, the device and system of URL are hidden in webpage
CN109033115B (en) Dynamic webpage crawler system
CN102184266B (en) Method for automatically generating dynamic wireless application protocol (WAP) website for separation of page from data
US10296558B1 (en) Remote generation of composite content pages
CN105243159A (en) Visual script editor-based distributed web crawler system
CN106294372A (en) Application program page quick access method and apply its mobile terminal
CN104063401B (en) The method and apparatus that a kind of webpage pattern address merges
CN104156313A (en) Method for automatically generating Web service testing case
CN109144567B (en) Cross-platform webpage rendering method and device, server and storage medium
CN109428877B (en) Method and device for accessing service system through user equipment
US9971636B2 (en) Methods for implementing web services and devices thereof
CN108733499A (en) Browser page display data processing method and processing device
CN109840083A (en) Web pages component template construction method, device, computer equipment and storage medium
CN111880790A (en) Page rendering method, page rendering system, and computer-readable storage medium
CN104731606B (en) The system and method for Enterprise information integration management is realized based on identification crawl technology
CN105095220B (en) A kind of browser implementation method, terminal and virtualization agent device
CN103488735B (en) Method and terminal that terminal browser page furbishing is shown
Upadhyaya et al. Extracting restful services from web applications
CN104714791B (en) A kind of method and apparatus that Web applications are split and reset
CN109255063A (en) A kind of method and apparatus crawling web page contents
CN101533409B (en) Network browser system and control method
CN106303757A (en) A kind of view-based access control model feature and the network audio-video address resolution method of stream reduction

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