CN104202331B - The generation method and device of client functionality - Google Patents

The generation method and device of client functionality Download PDF

Info

Publication number
CN104202331B
CN104202331B CN201410468399.6A CN201410468399A CN104202331B CN 104202331 B CN104202331 B CN 104202331B CN 201410468399 A CN201410468399 A CN 201410468399A CN 104202331 B CN104202331 B CN 104202331B
Authority
CN
China
Prior art keywords
data
component
user
function
interface
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
CN201410468399.6A
Other languages
Chinese (zh)
Other versions
CN104202331A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410468399.6A priority Critical patent/CN104202331B/en
Publication of CN104202331A publication Critical patent/CN104202331A/en
Application granted granted Critical
Publication of CN104202331B publication Critical patent/CN104202331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a kind of generation method of client functionality and device, this method includes:The function that analysis client will generate, some subfunctions are generated according to the operation of the function or step;The general utility functions component for being able to carry out some subfunctions is called from component server, wherein, each functional unit in the general utility functions component can realize a kind of subfunction, interactive interface be present between each functional unit, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction;After calling each self-corresponding functional unit of some subfunctions, multiple functional units of calling are polymerize using the interactive interface, generate the function of the client.The generation method of client functionality provided by the invention is versatile, it is possible to increase development efficiency, also allows for software maintenance.

Description

The generation method and device of client functionality
Technical field
The present invention relates to technical field of internet application, the generation method and device of particularly a kind of client functionality.
Background technology
Client (Client) or be user terminal, refers to corresponding with server, and the journey of local service is provided for client Sequence.In addition to some the only application program in local runtime, it is typically mounted in common client computer, it is necessary to mutual with service end It is engaged operation.After internet development, more common client includes the web browser used such as WWW, and receipts post electricity Email client during sub- mail, and client software of instant messaging etc..
In correlation technique, for multiple projects to be developed, if being required to realize certain of client in each project to be developed During individual function (such as register, log in function), software developer's needs write a whole set of realization in each project to be developed should The program of function, so there may be repeated labor, no versatility, and development efficiency is low.Therefore, for the project of such situation Exploitation, how to improve the technical problem that development efficiency turns into urgently to be resolved hurrily at present.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the generation method of the client functionality of problem and corresponding device.
According to one aspect of the present invention, there is provided a kind of generation method of client functionality, including:Analyzing client is By the function of generation, some subfunctions are generated according to the operation of the function or step;Being called from component server to hold The general utility functions component of row some subfunctions, wherein, each functional unit in the general utility functions component can be realized A kind of subfunction, interactive interface be present between each functional unit, multiple functional units are interacted by interactive interface, realize subfunction Polymerization;After calling each self-corresponding functional unit of some subfunctions, using the interactive interface by multiple work(of calling Energy component assembly, generate the function of the client.
Alternatively, the function includes at least one following:
Registration;
Log in.
Alternatively, when the function is registers or logged in, the general utility functions component, including:
Interface render component, suitable for the user interface for rendering registration or logging in;
Data reception component, the user inputted suitable for receiving the user interface rendered by the interface render component Data;
Data check component, the user data suitable for being received to the data reception component verify;
Data interaction component, suitable for sending registration or logging request to data server, and, receive the data, services The response registration or the response message logged in that device returns;
Logic controller, coupled from different components, control different components to realize its function.
Alternatively, the data reception component is further adapted for:Receive the user rendered by the interface render component Input frame, the user data of input of element in interface.
Alternatively, the element in the user interface includes at least one following:
User identifies;
Email address;
Login password;
Confirm password;
Identifying code.
Alternatively, when the function is registers,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, registration request is sent to the data server, wherein, carried in the registration request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Response message that device returns, representing the data server.
Alternatively, when the function is logs in,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, logging request is sent to the data server, wherein, carried in the logging request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Device returns, expression has logged on to the response message of the data server or has received the data server returns, table Show and be not logged in the response message of the data server.
Alternatively, the data server returns, expression is received to be not logged in the response message of the data server Afterwards, the data interaction component is further adapted for:Output prompting user by the input frame of the element in the user interface, again Input the prompt message of user data.
According to another aspect of the present invention, a kind of generating means of client functionality are additionally provided, including:
Generation module, the function that will be generated suitable for analysis client, if being generated according to the operation of the function or step Dry subfunction;
Calling module, the general utility functions component of some subfunctions is able to carry out suitable for being called from component server, Wherein, each functional unit in the general utility functions component can realize a kind of subfunction, exist between each functional unit and hand over Mutual interface, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction;
Aggregation module, after calling some each self-corresponding functional units of subfunction, utilize the interactive interface Multiple functional units of calling are polymerize, generate the function of the client.
Alternatively, the function includes at least one following:
Registration;
Log in.
Alternatively, when the function is registers or logged in, the general utility functions component, including:
Interface render component, suitable for the user interface for rendering registration or logging in;
Data reception component, the user inputted suitable for receiving the user interface rendered by the interface render component Data;
Data check component, the user data suitable for being received to the data reception component verify;
Data interaction component, suitable for sending registration or logging request to data server, and, receive the data, services The response registration or the response message logged in that device returns;
Logic controller, coupled from different components, control different components to realize its function.
Alternatively, the data reception component is further adapted for:Receive the user rendered by the interface render component Input frame, the user data of input of element in interface.
Alternatively, the element in the user interface includes at least one following:
User identifies;
Email address;
Login password;
Confirm password;
Identifying code.
Alternatively, when the function is registers,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, registration request is sent to the data server, wherein, carried in the registration request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Response message that device returns, representing the data server.
Alternatively, when the function is logs in,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, logging request is sent to the data server, wherein, carried in the logging request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Device returns, expression has logged on to the response message of the data server or has received the data server returns, table Show and be not logged in the response message of the data server.
Alternatively, the data server returns, expression is received to be not logged in the response message of the data server Afterwards, the data interaction component is further adapted for:Output prompting user by the input frame of the element in the user interface, again Input the prompt message of user data.
According to technical scheme, the function that will be generated by analyzing client, and then according to the behaviour of the function Make or step generates some subfunctions, the general utility functions for being able to carry out these some subfunctions is then called from component server Component, because each functional unit in the general utility functions component of calling can realize a kind of subfunction, between each functional unit Interactive interface be present, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction, thus are calling some sub- work( After each self-corresponding functional unit of energy, multiple functional units of calling are polymerize using interactive interface, you can generate client Function.As can be seen here, the present invention can be by multiple functional units of general utility functions component in invocation component server, and utilize Multiple functional units of calling polymerize to generate the function of client by interactive interface, so as to solve needed in correlation technique it is soft Part developer writes complete set of programs to realize the function of client, the problem of causing development efficiency low.Also, treated for multiple Exploration project, if be required to realize some function of client in each project to be developed, it is only necessary to invocation component clothes respectively Multiple functional units of general utility functions component in business device, multiple functional units of calling are polymerize to generate this using interactive interface Function, a whole set of program for realizing the function is write in each project to be developed without software developer, so as to subtract Few repeated labor, improves development efficiency, shortens the construction cycle.To sum up, the generation method of client functionality provided by the invention It is versatile, it is possible to increase development efficiency, to also allow for software maintenance.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings will be brighter to the detailed description of the specific embodiment of the invention, those skilled in the art Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical component is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the flow chart of the generation method of client functionality according to an embodiment of the invention;
Fig. 2 shows a kind of user interface for registration that interface render component renders;
Fig. 3 shows a kind of user interface for login that interface render component renders;
Fig. 4 shows the generation method flow chart of client registers function according to an embodiment of the invention;
Fig. 5 shows the generation method flow chart of client login feature according to an embodiment of the invention;And
Fig. 6 shows the generating means structural representation of client functionality according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
In order to solve the above technical problems, the embodiments of the invention provide a kind of generation method of client functionality, Fig. 1 is shown The generation method flow chart of client functionality according to an embodiment of the invention.As shown in figure 1, this method comprise at least with Lower step S102 to step S106.
Step S102, the function that analysis client will generate, some sub- work(are generated according to the operation of the function or step Energy.
Step S104, the general utility functions for some subfunctions for being able to carry out step S102 generations is called from component server Component, wherein, each functional unit in general utility functions component can realize a kind of subfunction, exist between each functional unit and hand over Mutual interface, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction.
Step S106, after calling some each self-corresponding functional units of subfunction, using interactive interface by the multiple of calling Functional unit polymerize, and generates the function of client.
According to technical scheme, the function that will be generated by analyzing client, and then according to the behaviour of the function Make or step generates some subfunctions, the general utility functions for being able to carry out these some subfunctions is then called from component server Component, because each functional unit in the general utility functions component of calling can realize a kind of subfunction, between each functional unit Interactive interface be present, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction, thus are calling some sub- work( After each self-corresponding functional unit of energy, multiple functional units of calling are polymerize using interactive interface, you can generate client Function.As can be seen here, the present invention can be by multiple functional units of general utility functions component in invocation component server, and utilize Multiple functional units of calling polymerize to generate the function of client by interactive interface, so as to solve needed in correlation technique it is soft Part developer writes complete set of programs to realize the function of client, the problem of causing development efficiency low.Also, treated for multiple Exploration project, if be required to realize some function of client in each project to be developed, it is only necessary to invocation component clothes respectively Multiple functional units of general utility functions component in business device, multiple functional units of calling are polymerize to generate this using interactive interface Function, a whole set of program for realizing the function is write in each project to be developed without software developer, so as to subtract Few repeated labor, improves development efficiency, shortens the construction cycle.To sum up, the generation method of client functionality provided by the invention It is versatile, it is possible to increase development efficiency, to also allow for software maintenance.
The function that client will generate in above step S102 can include registration or login feature, can also include page The functions such as iso-surface patch, style change, skin generation, the invention is not restricted to this.For example, for multiple projects to be developed, if It is required to realize some function of client in each project to be developed, the work(can be generated using the design of the present invention Can, it is possible to reduce repeated labor, improve development efficiency.For example, it is directed to multiple game items leaved for development, each game item In be required to realize registration or the login feature of client.
If the function that client will generate in step S102 is when registering or logging in, the general work(that step S104 is referred to Energy component can include following five functional units, i.e. interface render component, data reception component, data check component, data Interactive component and logic controller.The function declaration that each functional unit is realized is as follows:Interface render component, suitable for rendering note Volume or the user interface logged in;Data reception component, suitable for receiving the user interface input rendered by interface render component User data;Data check component, suitable for being verified to the user data that data reception component receives;Data interaction component, Suitable for data server send registration or logging request, and, receive data server return response registration or log in Response message;Logic controller, coupled from different components, control different components to realize its function.It can be seen that general utility functions group Each functional unit in part can realize a kind of subfunction of registration or login feature, and interaction be present between each functional unit connects Mouthful, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction.It is it should be noted that general in the present invention Functional unit is not limited to the coupling of above-mentioned five functional units or the functional unit of other forms.For example, it can incite somebody to action Data reception component and data check component cohesion are that a data receiver verifies component, and now, general utility functions component can wrap Include following four functional unit, i.e. interface render component, data receiver verification component, data interaction component and logic control Device, wherein, interface render component, suitable for the user interface for rendering registration or logging in;Data receiver verifies component, logical suitable for receiving The user data for the user interface input that interface render component renders is crossed, and the user data of reception is verified;Data Interactive component, suitable for sending registration or logging request to data server, and, receive the response registration that data server returns Or the response message logged in;Logic controller, coupled from different components, control different components to realize its function.Certainly, also It can be the coupling of the functional unit of other forms, a seed work(of registration or login feature is realized by each functional unit Can, no longer enumerate herein.Above-mentioned each functional unit can be script JavaScript components, can also be other The component that compiler language is write.
In addition, the data reception component in general utility functions component can be adapted to:Reception is rendered by interface render component User interface in element input frame, input user data.Here, the element in user interface can include user's mark Knowledge, email address, login password, confirmation password, identifying code etc..A kind of as shown in Fig. 2 registration rendered for interface render component User interface, include in the user interface user's mark, login password, confirm password, identifying code and virtual registration by Button.As shown in figure 3, a kind of user interface of the login rendered for interface render component, user's mark is included in the user interface Knowledge, login password and virtual login button.
Further, when the function that client will generate is registration or login feature, the data in general utility functions component It is different to verify the processing mode of component and data interaction component, will be directed to two kinds of functions respectively below is carried out specifically It is bright.
First, when the function that client will generate is registering functional, the data check component in general utility functions component can It is suitable for:According to default verification rule, the user data received to data reception component verifies.For example, verification user Whether the form of data is correct, or verification user mark, whether email address has been registered uses.Now, data interaction Component may be adapted to:After verification of the user data that data reception component receives by data check component, taken to data Business device sends registration request, wherein, carry and received by data reception component and by data check component in registration request The user data of verification;And receive data server returns, the registered response message to data server of expression.
Secondly, when the function that client will generate is login feature, the data check component in general utility functions component can It is suitable for:According to default verification rule, the user data received to data reception component verifies.For example, verification user Whether the form of data is correct etc..Now, data interaction component may be adapted to:Lead in the user data that data reception component receives Cross after the verification of data check component, logging request is sent to data server, wherein, carried in logging request by data Receiving unit reception and the user data of the verification by data check component;And receive data server returns, table Show the response message for having logged on to data server or receive data server returns, expression and be not logged in data server Response message.Further, receive data server return, represent be not logged in data server response message it Afterwards, data interaction component can be adapted to:Output prompting user by the input frame of the element in user interface, re-enter use The prompt message of user data, to remind user data that user just inputted not by the authentication of data server, it is necessary to Re-enter.
A variety of implementations of each link in the embodiment shown in Fig. 1 are described above, below by specific preferred real Example is applied to be described further the generation method of client functionality provided in an embodiment of the present invention.
Embodiment one
Fig. 4 shows the generation method flow chart of client registers function according to an embodiment of the invention.Such as Fig. 4 institutes Show, this method comprises the following steps S402 to step S406.
Step S402, the registering functional that analysis client will generate, is generated according to the operation of the registering functional or step Some subfunctions.
Step S404, the general utility functions for some subfunctions for being able to carry out step S402 generations is called from component server Component, wherein, each functional unit in general utility functions component can realize a kind of subfunction, exist between each functional unit and hand over Mutual interface, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction.
Here, general utility functions component can include following five functional units, i.e. interface render component, data receiver group Part, data check component, data interaction component and logic controller, wherein, interface render component, suitable for rendering registration or stepping on The user interface of record;Data reception component, the number of users inputted suitable for receiving the user interface rendered by interface render component According to;Data check component, suitable for being verified to the user data that data reception component receives;Data interaction component, suitable for Data server sends registration or logging request, and, receive the data server response registration returned or the response letter logged in Breath;Logic controller, coupled from different components, control different components to realize its function.It is, of course, also possible to it is other forms Functional unit coupling, a kind of subfunction of registering functional is realized by each functional unit.
General utility functions component can be placed on the group of CDN (Content Delivery Network, content distributing network) On part server, CDN can avoid being possible to the bottleneck and ring for influenceing data transmission bauds and stability on internet as far as possible Section, make content transmission faster, it is more stable.Client can utilize the registration interface ucpass.reg that general utility functions component provides (options), realize the calling to general utility functions component, wherein, options parameter value and implication referring to shown in table 1, It is customized web page from parameter tag to parameter width, parameter callback and parameter backward are general utility functions components to client The functional interface provided is held, client can be extended according to the demand of itself, for example, client can be with arrange parameter The self-defined css of custstyle, if being not provided with parameter custstyle, the parameter of acquiescence can be used.It is as an example it is assumed that objective Registering functional is only called at family end, and other specification uses the parameter given tacit consent to, then the code for calling registration interface is $ (" #reg ") .click(function(e){ucpass.reg({'tag':'reg','reg':true});}).As can be seen here, the present invention is real The calling to general utility functions component can be realized by the registration interface for calling general utility functions component to provide by applying client in example, And then the registering functional of client is generated, write a whole set of in each project to be developed without software developer and realize registration The program of function, so as to reduce repeated labor, development efficiency is improved, shortens the construction cycle.
Table 1
Parameter Parameter value and implication
tag Login//login, reg//registration
head True, false//whether need public head
login True, false//whether need login module
reg True, false//whether need Registering modules
third True, false//whether need third party to log in
width Pop-up width
callback Successful call back function
errcallback Unsuccessful call back function
wrapper Page level logs in the parameter for needing to transmit
captcha Self-defined identifying code chained address
custstyle Self-defined css (cascading style sheets, CSS)
captchatype Acquiescence does not add identifying code service, after error three times, it may appear that identifying code
src The src values of client application
…… ……
Step S406, after calling some each self-corresponding functional units of subfunction, using interactive interface by the multiple of calling Functional unit polymerize, and generates the registering functional of client.
Call interface render component to render the user interface of registration first, user interface can be shown in the form of pop-up, User interface can also be shown in the form of the page, then calls data reception component to receive what is rendered by interface render component The user data of user interface input, then calls data check component to carry out school to the user data that data reception component receives Test, after verification of the user data by data check component that data reception component receives, call data interaction component to Data server sends registration request, wherein, carried in registration request and received by data reception component and passed through data check The user data of the verification of component;And receive data server returns, the registered response to data server of expression and believe Breath, and control each functional unit to realize its function by logic controller.Preferably, data reception component can be adapted to:Connect Receive input frame, the user data of input of the element in the user interface rendered by interface render component.Here, user interface In element can include user's mark, email address, login password, confirmation password, identifying code etc..
In embodiment one, by multiple functional units of general utility functions component in invocation component server, and interaction is utilized Multiple functional units of calling polymerize to generate the registering functional of client by interface, and the generation method of client registers function is led to It is strong with property, it is possible to reduce repeated labor, to improve development efficiency, also allow for software maintenance.
Embodiment two
Fig. 5 shows the generation method flow chart of client login feature according to an embodiment of the invention.Such as Fig. 5 institutes Show, this method comprises the following steps S502 to step S506.
Step S502, the login feature that analysis client will generate, is generated according to the operation of the login feature or step Some subfunctions.
Step S504, the general utility functions for some subfunctions for being able to carry out step S502 generations is called from component server Component, wherein, each functional unit in general utility functions component can realize a kind of subfunction, exist between each functional unit and hand over Mutual interface, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction.
Here, general utility functions component can include following five functional units, i.e. interface render component, data receiver group Part, data check component, data interaction component and logic controller, wherein, interface render component, suitable for rendering registration or stepping on The user interface of record;Data reception component, the number of users inputted suitable for receiving the user interface rendered by interface render component According to;Data check component, suitable for being verified to the user data that data reception component receives;Data interaction component, suitable for Data server sends registration or logging request, and, receive the data server response registration returned or the response letter logged in Breath;Logic controller, coupled from different components, control different components to realize its function.It is, of course, also possible to it is other forms Functional unit coupling, a kind of subfunction of registering functional is realized by each functional unit.
As previously mentioned, client can utilize the registration interface ucpass.reg that general utility functions component provides (options) calling to general utility functions component, is realized, and then generates the registering functional of client.In addition, client can be with The login interface ucpass.login (options) provided using general utility functions component, realizes the calling to general utility functions component, And then the login feature of client is generated, wherein, options parameter value and implication may refer to shown in table 1 above.Lift For example, it is assumed that client only calls login feature, and other specification uses the parameter given tacit consent to, then calls the code of login interface Can be $ (" #login ") .click (function (e) ucpass.login (' tag':'login','login': true});}).In another example client needs to call login feature, and it is css1 to need custom layers stacking style table, then is set Parameter custstyle is css1, and other specification uses default parameters, and now, the code for calling login interface is $ (" # login").click(function(e){ucpass.login({'tag':'login','login':true,' custstyle':cs s1});}).As can be seen here, client can be by calling general utility functions component to carry in the embodiment of the present invention The login interface of confession, the calling to general utility functions component is realized, and then generate the login feature of client, without software development Personnel write a whole set of program for realizing login feature in each project to be developed, so as to reduce repeated labor, improve Development efficiency, shorten the construction cycle.
Step S506, after calling some each self-corresponding functional units of subfunction, using interactive interface by the multiple of calling Functional unit polymerize, and generates the login feature of client.
Call interface render component to render the user interface of login first, user interface can be shown in the form of pop-up, User interface can also be shown in the form of the page, then calls data reception component to receive what is rendered by interface render component The user data of user interface input, then calls data check component to carry out school to the user data that data reception component receives Test, after verification of the user data by data check component that data reception component receives, call data interaction component to Data server sends logging request, wherein, carried in logging request and received by data reception component and passed through data check The user data of the verification of component;And receive response that data server returns, representing to have logged on to data server and believe Breath or reception data server return, expression is not logged in the response message of data server.Further, data are received Server returns, expression is not logged in the response message of data server, and data interaction component can be adapted to:Output Prompting user by the input frame of the element in user interface, re-enter the prompt message of user data, to remind user firm The user data just inputted is not by the authentication of data server, it is necessary to re-enter.Preferably, data reception component is also It may be adapted to:Receive input frame, the user data of input of the element in the user interface rendered by interface render component.This In, the element in user interface can include user's mark, email address, login password etc..
In embodiment two, by multiple functional units of general utility functions component in invocation component server, and interaction is utilized Multiple functional units of calling polymerize to generate the login feature of client by interface, and the generation method of client login feature is led to It is strong with property, it is possible to reduce repeated labor, to improve development efficiency, also allow for software maintenance.
It should be noted that in practical application, above-mentioned all optional embodiments can be any group by the way of combining Close, form the alternative embodiment of the present invention, this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of generating means of client functionality, to realize The generation method of above-mentioned client functionality.
Fig. 6 shows the generating means structural representation of client functionality according to an embodiment of the invention.Referring to figure 6, the device comprises at least:Generation module 610, calling module 620 and aggregation module 630.
Now introduce the function of each composition or device of the generating means of the client functionality of the embodiment of the present invention and each portion Annexation between point:
Generation module 610, the function that will be generated suitable for analysis client are some according to the operation of function or step generation Subfunction;
Calling module 620, it is coupled with generation module 610, some sons is able to carry out suitable for being called from component server The general utility functions component of function, wherein, each functional unit in general utility functions component can realize a kind of subfunction, Mei Gegong There is interactive interface in energy inter-module, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction;
Aggregation module 630, it is coupled with calling module 620, suitable for calling some each self-corresponding functional units of subfunction Afterwards, multiple functional units of calling are polymerize using interactive interface, generates the function of client.
In one embodiment, function includes at least one following:
Registration;
Log in.
In one embodiment, when function is registers or logged in, general utility functions component, including:
Interface render component, suitable for the user interface for rendering registration or logging in;
Data reception component, the user data inputted suitable for receiving the user interface rendered by interface render component;
Data check component, suitable for being verified to the user data that data reception component receives;
Data interaction component, suitable for sending registration or logging request to data server, and, receive data server and return The response registration returned or the response message logged in;
Logic controller, coupled from different components, control different components to realize its function.
In one embodiment, data reception component can be adapted to:Receive the user rendered by interface render component Input frame, the user data of input of element in interface.
In one embodiment, the element in user interface includes at least one following:
User identifies;
Email address;
Login password;
Confirm password;
Identifying code.
In one embodiment, when function is registers,
Data check component can be adapted to:According to default verification rule, the number of users received to data reception component According to being verified;
Data interaction component can be adapted to:Pass through data check component in the user data that data reception component receives After verification, to data server send registration request, wherein, carried in registration request received by data reception component and Pass through the user data of the verification of data check component;And receive data server return, represent it is registered to data take The response message of business device.
In one embodiment, when function is logs in,
Data check component can be adapted to:According to default verification rule, the number of users received to data reception component According to being verified;
Data interaction component can be adapted to:Pass through data check component in the user data that data reception component receives After verification, to data server send logging request, wherein, carried in logging request received by data reception component and Pass through the user data of the verification of data check component;And receive data server returns, expression and logged on to data clothes The response message of device of being engaged in or reception data server return, expression is not logged in the response message of data server.
In one embodiment, data server returns, expression is received to be not logged in the response message of data server Afterwards, data interaction component can be adapted to:Output prompting user by the input frame of the element in user interface, re-enter The prompt message of user data.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach Following beneficial effect:
According to technical scheme, the function that will be generated by analyzing client, and then according to the behaviour of the function Make or step generates some subfunctions, the general utility functions for being able to carry out these some subfunctions is then called from component server Component, because each functional unit in the general utility functions component of calling can realize a kind of subfunction, between each functional unit Interactive interface be present, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction, thus are calling some sub- work( After each self-corresponding functional unit of energy, multiple functional units of calling are polymerize using interactive interface, you can generate client Function.As can be seen here, the present invention can be by multiple functional units of general utility functions component in invocation component server, and utilize Multiple functional units of calling polymerize to generate the function of client by interactive interface, so as to solve needed in correlation technique it is soft Part developer writes complete set of programs to realize the function of client, the problem of causing development efficiency low.Also, treated for multiple Exploration project, if be required to realize some function of client in each project to be developed, it is only necessary to invocation component clothes respectively Multiple functional units of general utility functions component in business device, multiple functional units of calling are polymerize to generate this using interactive interface Function, a whole set of program for realizing the function is write in each project to be developed without software developer, so as to subtract Few repeated labor, improves development efficiency, shortens the construction cycle.To sum up, the generation method of client functionality provided by the invention It is versatile, it is possible to increase development efficiency, to also allow for software maintenance.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Mode it can use in any combination.
Each Assemblies Example of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are realized in the generating means of client functionality according to embodiments of the present invention Some or all components some or all functions.The present invention is also implemented as being used to perform side as described herein The some or all equipment or program of device (for example, computer program and computer program product) of method.It is such Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention It is determined that or derive many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized It is set to and covers other all these variations or modifications.
The invention also discloses A1, a kind of generation method of client functionality, including:
The function that analysis client will generate, some subfunctions are generated according to the operation of the function or step;
The general utility functions component for being able to carry out some subfunctions is called from component server, wherein, it is described general Each functional unit in functional unit can realize a kind of subfunction, interactive interface, Duo Gegong between each functional unit be present Energy component is interacted by interactive interface, realizes the polymerization of subfunction;
After calling each self-corresponding functional unit of some subfunctions, using the interactive interface by multiple work(of calling Energy component assembly, generate the function of the client.
A2, the method according to A1, wherein, the function includes at least one following:
Registration;
Log in.
A3, the method according to A2, wherein, when the function is registers or logged in, the general utility functions component, bag Include:
Interface render component, suitable for the user interface for rendering registration or logging in;
Data reception component, the user inputted suitable for receiving the user interface rendered by the interface render component Data;
Data check component, the user data suitable for being received to the data reception component verify;
Data interaction component, suitable for sending registration or logging request to data server, and, receive the data, services The response registration or the response message logged in that device returns;
Logic controller, coupled from different components, control different components to realize its function.
A4, the method according to A3, wherein, the data reception component is further adapted for:Reception is rendered by the interface Input frame, the user data of input of element in the user interface that component renders.
A5, the method according to A4, wherein, the element in the user interface includes at least one following:
User identifies;
Email address;
Login password;
Confirm password;
Identifying code.
A6, the method according to A3 to any one of A5, wherein, when the function is registers,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, registration request is sent to the data server, wherein, carried in the registration request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Response message that device returns, representing the data server.
A7, the method according to A3 to any one of A5, wherein, when the function is logs in,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, logging request is sent to the data server, wherein, carried in the logging request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Device returns, expression has logged on to the response message of the data server or has received the data server returns, table Show and be not logged in the response message of the data server.
A8, the method according to A7, wherein, receive the data server returns, expression and be not logged in the number After the response message of server, the data interaction component is further adapted for:
Output prompting user is believed by the input frame of the element in the user interface, the prompting for re-entering user data Breath.
B9, a kind of generating means of client functionality, including:
Generation module, the function that will be generated suitable for analysis client, if being generated according to the operation of the function or step Dry subfunction;
Calling module, the general utility functions component of some subfunctions is able to carry out suitable for being called from component server, Wherein, each functional unit in the general utility functions component can realize a kind of subfunction, exist between each functional unit and hand over Mutual interface, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction;
Aggregation module, after calling some each self-corresponding functional units of subfunction, utilize the interactive interface Multiple functional units of calling are polymerize, generate the function of the client.
B10, the device according to B9, wherein, the function includes at least one following:
Registration;
Log in.
B11, the device according to B10, wherein, when the function is registers or logged in, the general utility functions component, bag Include:
Interface render component, suitable for the user interface for rendering registration or logging in;
Data reception component, the user inputted suitable for receiving the user interface rendered by the interface render component Data;
Data check component, the user data suitable for being received to the data reception component verify;
Data interaction component, suitable for sending registration or logging request to data server, and, receive the data, services The response registration or the response message logged in that device returns;
Logic controller, coupled from different components, control different components to realize its function.
B12, the device according to B11, wherein, the data reception component is further adapted for:Reception passes through the interface wash with watercolours Input frame, the user data of input of element in the user interface that dye component renders.
B13, the device according to B12, wherein, the element in the user interface includes at least one following:
User identifies;
Email address;
Login password;
Confirm password;
Identifying code.
B14, the device according to B11 to any one of B13, wherein, when the function is registers,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, registration request is sent to the data server, wherein, carried in the registration request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Response message that device returns, representing the data server.
B15, the device according to B11 to any one of B13, wherein, when the function is logs in,
The data check component is further adapted for:According to default verification rule, the use received to the data reception component User data is verified;
The data interaction component is further adapted for:Pass through the data school in the user data that the data reception component receives Test after the verification of component, logging request is sent to the data server, wherein, carried in the logging request by described Data reception component reception and the user data of the verification by the data check component;And receive the data, services Device returns, expression has logged on to the response message of the data server or has received the data server returns, table Show and be not logged in the response message of the data server.
B16, the device according to B15, receive the data server returns, expression and be not logged in the data taking It is engaged in after the response message of device, the data interaction component is further adapted for:
Output prompting user is believed by the input frame of the element in the user interface, the prompting for re-entering user data Breath.

Claims (16)

1. a kind of generation method of client functionality, including:
The function that analysis client will generate, some subfunctions are generated according to the operation of the function or step;
The functional interface provided using general utility functions component, parameter setting by functional interface is from being deployed in content distributing network The general utility functions component for being able to carry out some subfunctions is called in CDN component server, wherein, the general utility functions group Each functional unit in part can realize a kind of subfunction, interactive interface, multiple functional units between each functional unit be present Interacted by interactive interface, realize the polymerization of subfunction;
After calling each self-corresponding functional unit of some subfunctions, using the interactive interface by multiple function groups of calling Part polymerize, and generates the function of the client.
2. according to the method for claim 1, wherein, the function includes at least one following:
Registration;
Log in.
3. according to the method for claim 2, wherein, when the function is registers or logged in, the general utility functions component, wrap Include:
Interface render component, suitable for the user interface for rendering registration or logging in;
Data reception component, the number of users inputted suitable for receiving the user interface rendered by the interface render component According to;
Data check component, the user data suitable for being received to the data reception component verify;
Data interaction component, suitable for sending registration or logging request to data server, and, receive the data server and return The response registration returned or the response message logged in;
Logic controller, coupled from different components, control different components to realize its function.
4. according to the method for claim 3, wherein, the data reception component is further adapted for:Reception passes through the interface wash with watercolours Input frame, the user data of input of element in the user interface that dye component renders.
5. according to the method for claim 4, wherein, the element in the user interface includes at least one following:
User identifies;
Email address;
Login password;
Confirm password;
Identifying code.
6. according to the method described in any one of claim 3 to 5, wherein, when the function is registers,
The data check component is further adapted for:According to default verification rule, the number of users received to the data reception component According to being verified;
The data interaction component is further adapted for:Pass through the data check group in the user data that the data reception component receives After the verification of part, registration request is sent to the data server, wherein, carried in the registration request by the data Receiving unit reception and the user data of the verification by the data check component;And receive the data server and return Response message returning, representing the data server.
7. according to the method described in any one of claim 3 to 5, wherein, when the function is logs in,
The data check component is further adapted for:According to default verification rule, the number of users received to the data reception component According to being verified;
The data interaction component is further adapted for:Pass through the data check group in the user data that the data reception component receives After the verification of part, logging request is sent to the data server, wherein, carried in the logging request by the data Receiving unit reception and the user data of the verification by the data check component;And receive the data server and return Return, expression has logged on to the response message of the data server or has received the data server returns, expression not Log on to the response message of the data server.
8. according to the method for claim 7, wherein, receive the data server returns, expression and be not logged in described After the response message of data server, the data interaction component is further adapted for:
Output prompting user by the input frame of the element in the user interface, re-enter the prompt message of user data.
9. a kind of generating means of client functionality, including:
Generation module, the function that will be generated suitable for analysis client, some sons are generated according to the operation of the function or step Function;
Calling module, suitable for the functional interface provided using general utility functions component, by the parameter setting of functional interface from deployment The general utility functions component for being able to carry out some subfunctions is called in content distributing network CDN component server, wherein, Each functional unit in the general utility functions component can realize a kind of subfunction, and interaction be present between each functional unit connects Mouthful, multiple functional units are interacted by interactive interface, realize the polymerization of subfunction;
Aggregation module, after calling some each self-corresponding functional units of subfunction, it will be adjusted using the interactive interface Multiple functional unit polymerizations, generate the function of the client.
10. device according to claim 9, wherein, the function includes at least one following:
Registration;
Log in.
11. device according to claim 10, wherein, when the function is registers or logged in, the general utility functions component, Including:
Interface render component, suitable for the user interface for rendering registration or logging in;
Data reception component, the number of users inputted suitable for receiving the user interface rendered by the interface render component According to;
Data check component, the user data suitable for being received to the data reception component verify;
Data interaction component, suitable for sending registration or logging request to data server, and, receive the data server and return The response registration returned or the response message logged in;
Logic controller, coupled from different components, control different components to realize its function.
12. device according to claim 11, wherein, the data reception component is further adapted for:Reception passes through the interface Input frame, the user data of input of element in the user interface that render component renders.
13. device according to claim 12, wherein, the element in the user interface includes at least one following:
User identifies;
Email address;
Login password;
Confirm password;
Identifying code.
14. according to the device described in any one of claim 11 to 13, wherein, when the function is registers,
The data check component is further adapted for:According to default verification rule, the number of users received to the data reception component According to being verified;
The data interaction component is further adapted for:Pass through the data check group in the user data that the data reception component receives After the verification of part, registration request is sent to the data server, wherein, carried in the registration request by the data Receiving unit reception and the user data of the verification by the data check component;And receive the data server and return Response message returning, representing the data server.
15. according to the device described in any one of claim 11 to 13, wherein, when the function is logs in,
The data check component is further adapted for:According to default verification rule, the number of users received to the data reception component According to being verified;
The data interaction component is further adapted for:Pass through the data check group in the user data that the data reception component receives After the verification of part, logging request is sent to the data server, wherein, carried in the logging request by the data Receiving unit reception and the user data of the verification by the data check component;And receive the data server and return Return, expression has logged on to the response message of the data server or has received the data server returns, expression not Log on to the response message of the data server.
16. device according to claim 15, receive the data server returns, expression and be not logged in the data After the response message of server, the data interaction component is further adapted for:
Output prompting user by the input frame of the element in the user interface, re-enter the prompt message of user data.
CN201410468399.6A 2014-09-15 2014-09-15 The generation method and device of client functionality Active CN104202331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410468399.6A CN104202331B (en) 2014-09-15 2014-09-15 The generation method and device of client functionality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410468399.6A CN104202331B (en) 2014-09-15 2014-09-15 The generation method and device of client functionality

Publications (2)

Publication Number Publication Date
CN104202331A CN104202331A (en) 2014-12-10
CN104202331B true CN104202331B (en) 2018-01-02

Family

ID=52087556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410468399.6A Active CN104202331B (en) 2014-09-15 2014-09-15 The generation method and device of client functionality

Country Status (1)

Country Link
CN (1) CN104202331B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614886B (en) * 2018-05-03 2021-10-15 北京云站科技有限公司 Website theme generation method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866204A (en) * 2006-01-17 2006-11-22 华为技术有限公司 Software assembly architecture

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6832366B2 (en) * 2001-05-17 2004-12-14 Simdesk Technologies, Inc. Application generator
US20080208964A1 (en) * 2005-07-27 2008-08-28 Mikhail Vasilyevich Belyaev Client-Server Information System and Method for Providing Graphical User Interface
CN101047537A (en) * 2006-03-30 2007-10-03 盛趣信息技术(上海)有限公司 Log-on method for network pass
CN101593111B (en) * 2009-05-31 2012-10-03 大连新中连软件集团有限公司 Service component, method and system for developing application software based on service component
CN102567013A (en) * 2012-02-07 2012-07-11 江苏鸿信***集成有限公司 Android mobile phone standard component device
CN103067173B (en) * 2012-12-26 2015-02-25 武汉天喻信息产业股份有限公司 Method and system used for dynamic key network issue and interface control and based on script

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866204A (en) * 2006-01-17 2006-11-22 华为技术有限公司 Software assembly architecture

Also Published As

Publication number Publication date
CN104202331A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
KR102243793B1 (en) Method and apparatus for code virtualization and remote process call generation
KR102220127B1 (en) Method and apparatus for customized software development kit (sdk) generation
CN104580451B (en) Realize the method and system and electronic equipment of multi-platform account synchronization
CN103020826B (en) Payment processing method and server
JP7384837B2 (en) peer-to-peer money transfer
CN110442524A (en) It is a kind of for have Certificate Authority web service interface test method and device
CN103226474B (en) Exchange method between page script and browser program, Apparatus and system
CN108415710B (en) The method and system of API is issued, called in Intelligent dialogue development platform
CN106445509A (en) SDK batch quick access tool
CN103136095A (en) Method, device and system of test application program interface
CN103428166A (en) Multi-SNS platform unified access method and system applied by third party
KR20180004224A (en) Payment methods, devices and systems
CN107797911A (en) Method and apparatus for testing HTTP interface
CN104967689B (en) A kind of data processing method and device
CN105100054B (en) A kind of login method and device of client
US9304894B2 (en) Code-free testing framework
CN110377522A (en) The test method for scene of trading, calculates equipment and medium at device
CN107179951A (en) Remote procedure calling (PRC) method and device
CN107562623A (en) A kind of REST API automated testing methods and system
CN111309620A (en) Game protocol testing method and device, electronic equipment and storage medium
CN103020827B (en) Payment processing method and system
CN107273250A (en) The method of testing and device of electronic declaration form automatic cover system
CN105812345A (en) Method and device for realizing communication between webpage and client end
CN104202331B (en) The generation method and device of client functionality
CN109587351A (en) A kind of call test method, device, equipment and storage medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220711

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co., Ltd