CN106446049B - A kind of page data interactive device and method - Google Patents
A kind of page data interactive device and method Download PDFInfo
- Publication number
- CN106446049B CN106446049B CN201610796358.9A CN201610796358A CN106446049B CN 106446049 B CN106446049 B CN 106446049B CN 201610796358 A CN201610796358 A CN 201610796358A CN 106446049 B CN106446049 B CN 106446049B
- Authority
- CN
- China
- Prior art keywords
- plug
- unit
- data
- services
- request
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of page data interactive device and methods.Device includes framework services module and Page Template service module, Page Template unit will be for that will ask the corresponding page to be decomposed into multiple modules, the corresponding plugin information of each module is obtained, plugin information list is generated according to plugin information, plugin information list is sent to framework services module;Framework services module is used to parse the request of client transmission, to asking corresponding Page Template unit to send request, obtains corresponding plug-in's data according to plugin information list, and plug-in's data is returned to client.Client application only needs to interact with framework services, client, which can be got, by once interaction carries out data displaying and all data needed for UI renderings, it is decoupled between background logic to reach, reduce the interaction times of client and backstage, the loading velocity for promoting the page, promotes the efficiency of client and server.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of page data interactive device and methods.
Background technology
Currently, user is in the arbitrary page of the application program (for example, Tencent's video) of browse view class, terminal is after
Data that platform issues and formwork style carry out the rendering of UI, these data are needed may be from different services, terminal from the background
Multiple request is initiated to obtain data, improves the difficulty of application development and the chance of error in this way.
Current view class application program backstage development plan mostly uses greatly according to page type division module, by accessing
Proxy is routed to different Page Services according to page type, carries out the mode decoupled between background logic, and in the same page
Data are accessed different data services, and the mode that drawing template establishment is combined by Page Service, as shown in Figure 1.
Existing scheme at least has the following disadvantages:
1) it is too big to press page type granularity of division, the single page may include dozens of module, and Page Service is caused to couple
It is heavier, Page Service treatment effeciency can be caused to become bottleneck, access delay increases.
2) different Page Services is required to the logic for repeating to realize that page cache etc. promotes access speed.
3) exist in data module with user's dimension, region where user, the relevant dynamic data such as user device type
When part, the cache policy of full page can be made to complicate even entirely ineffective.
4) Page Service cannot flexible modular data splitting, there are needed when identical data module between the different pages
The logic development to be repeated.
Invention content
In view of the above problems, the present invention proposes a kind of page data interactive device, process is realized to solve Page Service
In logic coupling and caching inefficiency the problem of.The inventive system comprises framework services modules and Page Template to service mould
Block, wherein
The Page Template service module includes multiple Page Template units, and the Page Template unit is described for receiving
The corresponding page of the request is decomposed into multiple modules, it is corresponding to obtain each module by the request that framework services module is sent
Plugin information generates plugin information list according to the plugin information, and the plugin information list, which is sent to the frame, to be taken
Business module;
The framework services module is used to parse the request of client transmission, obtains Page Template corresponding with the request
The storage address of unit sends the request to the Page Template unit according to the storage address, receives the page mould
The plugin information list that plate unit returns obtains corresponding plug-in's data according to the plugin information list, and by the plug-in unit
Data return to client.
The present invention also provides a kind of page data exchange method of above-mentioned apparatus, the method includes:
Framework services module parses the request that client is sent, and acquisition is deposited with the corresponding Page Template unit of the request
Address is stored up, the request is sent to the Page Template unit according to the storage address;
The Page Template unit receives the request that the framework services module is sent, by the corresponding page point of the request
Solution is multiple modules, obtains the corresponding plugin information of each module, plugin information list is generated according to the plugin information, by institute
It states plugin information list and is sent to the framework services module;
The framework services module receives the plugin information list that the Page Template unit returns, and is believed according to the plug-in unit
It ceases list and obtains corresponding plug-in's data, and the plug-in's data is returned into client.
In embodiments of the present invention, it is interacted for page data, new page data interaction is constructed in background server
Device, including framework services module and Page Template service module, framework services module are used to parse the request of client transmission,
The storage address for obtaining corresponding with request Page Template unit, according to the storage address to the Page Template unit
Send the request;Page Template unit is used to receive the request of frame service module transmission, and the corresponding page will be asked to decompose
For multiple modules, the corresponding plugin information of each module is obtained, plugin information list is generated according to plugin information, by plugin information
List is sent to framework services module;Framework services module is additionally operable to receive the plugin information list that Page Template unit returns,
Corresponding plug-in's data is obtained according to plugin information list, and plug-in's data is returned into client.The present invention passes through design one
Each back-end data, is divided into different card modules, according to unified by the mode of the framework services module of a support plug-in unit
Plug-in specification be combined, generate the content of pages for including template and data that a set of client can show, client is answered
It is only needed to interact with framework services with program, can get client by once interaction carries out needed for data displaying and UI renderings
All data, decoupled between background logic to reach, reduce the interaction times of client and backstage, promote the load speed of the page
Degree, promotes the efficiency of client and server.
Description of the drawings
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology and advantage, below will be to implementing
Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only
Only it is some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the schematic diagram according to page data interaction in the related technology;
Fig. 2 is the hardware block diagram of the terminal of page data interactive device according to the ... of the embodiment of the present invention;
Fig. 3 is the structure diagram of page data interactive device according to the ... of the embodiment of the present invention;
Fig. 4 is another structure diagram of page data interactive device according to the ... of the embodiment of the present invention;
Fig. 5 is the schematic diagram of the page according to the ... of the embodiment of the present invention;
Fig. 6 is another schematic diagram of the page according to the ... of the embodiment of the present invention;
Fig. 7 is the flow chart of page data exchange method according to the ... of the embodiment of the present invention;
Fig. 8 is the flow chart of step S702 according to the ... of the embodiment of the present invention;
Fig. 9 is the flow chart of step S703 according to the ... of the embodiment of the present invention;
Figure 10 is the flow chart of step S902 according to the ... of the embodiment of the present invention;
Figure 11 is the flow chart of step S904 according to the ... of the embodiment of the present invention;
Figure 12 is the structure diagram of terminal according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, apparatus, product or equipment to cover non-exclusive
Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product
Or the other steps or unit that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of page data interactive device, one institute of the embodiment of the present application are provided
The device embodiment of offer can execute in mobile terminal, terminal or similar arithmetic unit.In terms of operating in
For in calculation machine terminal, Fig. 2 is the hardware configuration of the terminal of page data interactive device according to the ... of the embodiment of the present invention
Block diagram.As shown in Fig. 2, terminal 100 may include one or more (only showing one in figure) processor 102 (processing
Device 102 can include but is not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), for storing number
According to memory 104 and for the transmitting device 106 of communication function.It will appreciated by the skilled person that Fig. 2 institutes
The structure shown is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device.For example, terminal 100 can also wrap
Include than shown in Fig. 2 more either less components or with the configuration different from shown in Fig. 2.
Memory 104 can be used for storing the software program and module of application software, such as the page in the embodiment of the present invention
Corresponding program instruction/the module of data interactive method, processor 102 are stored in the software program in memory 104 by operation
And module realizes above-mentioned page data exchange method to perform various functions application and data processing.Memory
104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges
It deposits or other non-volatile solid state memories.In some instances, memory 104 can further comprise relative to processor
102 remotely located memories, these remote memories can pass through network connection to terminal 10.The reality of above-mentioned network
Example includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to receive via a network or transmission data.Above-mentioned network specific example may include
The wireless network that the communication providers of terminal 100 provide.In an example, transmitting device 106 includes a network
Adapter (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments
So as to be communicated with internet.In an example, transmitting device 106 can be radio frequency (Radio Frequency, letter
Referred to as RF) module, it is used to wirelessly be communicated with internet.
Under above-mentioned running environment, this application provides page data interactive devices as shown in Figure 3.Described device packet
It includes:Framework services module 10 and Page Template service module 20.
The Page Template service module 20 includes multiple Page Template units 200, and the Page Template unit is for connecing
The request that the framework services module 10 is sent is received, the corresponding page of the request is decomposed into multiple modules, obtains each mould
The corresponding plugin information of block generates plugin information list according to the plugin information, the plugin information list is sent to institute
State framework services module 10;
The framework services module 10 is used to parse the request of client transmission, obtains page mould corresponding with the request
The storage address of plate unit 200 sends the request according to the storage address to the Page Template unit 200;The frame
Frame service module 10 is additionally operable to receive the plugin information list that the Page Template unit 200 returns, according to the plugin information
List obtains corresponding plug-in's data, and the plug-in's data is returned to client.
In specific application scenarios, framework services module 10 receives asking for subscription client transmission by AM access module
It asks, and client is sent the data to by proxy server.AM access module can be access proxy server, or be access
Proxy, access proxy server obtain user's request, forward a request to framework services module 10.
Optionally, framework services module 10 of the invention include the first mapping table, first mapping table for store with
Mapping relations between the client corresponding page command word of request sent and the storage address of the Page Template unit.
Wherein, page command word is the mark of unique page type for indicating client application.Pass through the first mapping
Table corresponds the client for sending request with corresponding Page Template unit.When framework services module 10 receives client
After the request of transmission, the request is parsed, obtains page command word, the storage of Page Template unit is obtained by the first mapping table
Location sends the request to realize to Page Template unit corresponding with the request.
Optionally, the framework services module 10 includes query unit 101, and the query unit 101 is used for according to
Corresponding plug-in's data is searched in plugin information list in local cache data.
As a kind of optional embodiment, as shown in figure 4, the device of the invention further includes plug-in services module 30, it is described
Plug-in services module 30 includes multiple plug-in services units 300;
The framework services module 10 include plug-in registration table, the plug-in registration table for preserve plug-in services mark with
The mapping relations of plug-in unit routing iinformation and plug-in unit cache policy, wherein the plug-in services are identified as the plug-in services unit
300 mark, the plug-in unit routing iinformation are the storage address of the plug-in services unit 300, and the plug-in unit cache policy is
The cache policy of preset plug-in services unit 300.
Since the present invention is the page organizational form based on modular insert, the present invention includes multiple plug-in services
Unit 300, each plug-in services unit 300 are used to realize that a kind of plug-in services, plug-in services include request analysis, plug-in unit number
According to acquisition, formwork style generates etc..Plug-in's data, for example, picture or video or other non-UGC types data, can cache
In framework services.UGC full name are User Generated Content, that is, the meaning of user-generated content.UGC's is general
It reads and originates from internet arena earliest, is i.e. oneself original content is shown or is supplied to by internet platform by user
Other users.Since there are frequent data interactions between user and client for UGC contents, and the present invention stresses and can decompose
It is shown for the content of pages of plug-in unit, therefore UGC data are not suitable for the present invention.
Optionally, the plugin information list that Page Template unit generates include plug-in services mark and with it is described
The 300 corresponding required parameter list of plug-in services unit.
Specifically, the corresponding plugin information of the request may include plug number, package types and plug-in unit sequence.It is described
Plugin information list is array, and the sequence of the array is corresponding with the sequence of plug-in unit.
In specific for scene, the query unit 101 is additionally operable to be inserted described according to plug-in services mark
Corresponding with plug-in services mark plug-in unit cache policy is searched in part registration table, according to the plug-in unit cache policy, for
The plug-in's data for allowing caching, the plug-in's data is searched according to the required parameter list in local cache data.
Optionally, the framework services module 10 further includes plug-in services request unit 102, and the plug-in services request is single
Member 102 to corresponding plug-in services unit 300 according to the plugin information list for asking plug-in's data.
Specifically, inserting less than the plug-in's data or lookup is searched in local cache data when query unit 101
When part data invalid, plug-in services request unit 102 is asked according to the plugin information list to corresponding plug-in services unit 300
Seek plug-in's data.
The plug-in services unit 300 is used for after receiving the request that the plug-in services request unit 102 is sent, raw
At plug-in's data corresponding with the request, the plug-in's data of generation is sent to the framework services module 10.
Optionally, the plug-in services unit 300 is additionally operable to receiving what the plug-in services request unit 102 was sent
After request, the pattern needed for Page Template unit generates formwork style information, and the formwork style information is sent to institute
State framework services module 10.Page Template pattern is the related specifications for defining each module UI displayings in the page;Pass through the page
Formwork style preferably can organize the page to show.
Optionally, the plugin information list further includes the subscriber group information belonging to client corresponding with the request.
Specifically, the subscriber group information may include:The device type of client and operating device version number and request
Region belonging to the publication channel information of the version number information of corresponding client application and the application program, client
The identification authentication information of information and client.
Since the plugin information for different user group displayings is also different, the device type such as iPhone of client and
Android device plugin information is different;Operating device version number is different, and plugin information is also different;Regional information belonging to client is not
Together, plugin information is also different, and certain plug-in units only show the client of certain regions, and is hidden to other regions, alternatively, certain
Plug-in unit shows the user that identification authentication information is VIP.
Optionally, the plug-in services unit 300 is additionally operable to generate multi-group data according to preset multiple packet class, often
Group data correspond to a packet class, and the data of generation are sent to the framework services module 10.
Specifically, the plug-in services unit 300 is additionally operable to device type and operating device version according to client
Number, publication channel information, the client of the version number information and the application program of client application corresponding with request
Packet class is arranged in the identification authentication information of affiliated regional information and client.For example, according to the device type of client into
Row grouping;It is grouped according to the operating device version number of client, according to the version number of client application corresponding with request
Information block is grouped according to the publication channel information of the application program;Regional information grouping belonging to client,
According to the identification authentication information block of client.Plug-in services unit 300, can be according to different groupings when generating plug-in's data
Classification generates corresponding plug-in's data respectively.
Optionally, the framework services module 10 is additionally operable to receive the data that the plug-in services unit 300 is sent, according to
The subscriber group information obtains plug-in's data corresponding with the subscriber group information.According to the subscriber group information obtain with it is described
The process of the corresponding plug-in's data of subscriber group information, can also regard the process being filtered to plug-in's data as, be taken from plug-in unit
It is engaged in the data that unit 300 is sent, filters out and be sent to corresponding requesting party client with the matched plug-in's data of subscriber group information
End.
It should be noted that by framework services module 10 data are filtered etc. with the secondary operation of data here, without
Be by plug-in services unit 300 directly generate with the relevant plug-in's data of user group, there are following some advantages:
1) the processing logic of plug-in services unit 300 is simpler, and plug-in services unit 300 need not be concerned about and user's phase
The logic of pass.
2) plug-in's data of different user groups can realize shared a data in the memory of framework services, reduce
The caching key numbers of framework services, can greatly promote cache hit rate.
Optionally, the framework services module 10 is additionally operable to judge whether is data that the plug-in services unit 300 is sent
Meet preset caching condition, if so, by the data buffer storage in local, to further save framework services module 10
The data volume of storage mitigates the burden of framework services.
Technical scheme of the present invention can be applied to the exploitation of the application program app pages of all non-UGC contents, below in conjunction with
Fig. 5 and Fig. 6 illustrates the simple division of card module under video app product scenes.In figure, by the way that app is pressed function mould
Block is divided into mutually independent plug-in unit and is realized, each other without coupling, each plug-in unit includes needed for module
Total data and the formwork style defined required for showing.
The plug-in unit for including in Fig. 5 is all the conventional data unrelated with being organized belonging to user, can be real in framework services
Now to the total caching of plug-in's data.After framework services receive the request such as the page of Fig. 5, the request is parsed, passes through
One mapping table finds corresponding Page Template unit, after Page Template unit receives request, which is decomposed into, in,
Under several card modules, obtain the corresponding plugin information of each module, such as the information of several plug-in units, type and sequence, according to
The plugin information generates plugin information list, plugin information list include the plug-in services mark and with the plug-in services
300 corresponding required parameter list of unit and the corresponding subscriber group information of request;The plugin information list is array, described
The sequence of array is corresponding with the sequence of plug-in unit;The plugin information list is sent to by last Page Template unit with array form
The framework services module 10.
For framework services module 10 after the data packet for receiving the return of Page Template unit, searching unit carries out dope vector
Traversal checks, finds plug-in unit routing iinformation included in plug-in registration table for legal effective plug-in unit ID and plug-in unit caches plan
Slightly.After traversal has checked, for allowing the plug-in's data of caching, framework services module 10 can be with the required parameter of plug-in services
List is that keyword is searched in local cache data, for the effective plug-in unit of data, can directly use the plug-in's data.
For the plug-in unit that no data or data are expired, plug-in services request unit 102 can be initiated to corresponding plug-in services unit 300
Request of data.The required parameter list that Page Template service returns is included at least in plug-in's data request, plug-in services are receiving
After plug-in request packet, the relevant data of bottom can be inquired and fill corresponding template sample according to the required pattern of page module
Formula information, the data of plug-in unit can generate more parts of data according to demand, and every part of data correspond to a user group packet class, together
When corresponding filtration treatment condition set, filtration treatment condition set and grouping matching criteria are generated to different user group, finally,
The data of generation are returned into framework services module 10.
The framework services module 10 is additionally operable to the preset caching of data fit sent in the plug-in services unit 300
When condition, by the data buffer storage in local.Specifically, in framework services module 10, can be sentenced with preset buffer memory condition
Whether the data that the disconnected plug-in services unit 300 is sent meet preset caching condition, if so, the data buffer storage is existed
It is local.
Plug-in unit in Fig. 5 is unrelated with user, can directly be buffered in framework services local.Fig. 6 discloses plug-in's data and works as
In personalized behavior, whether the data of intermediate plug-in unit can vote and different according to user, and the data of following plug-in unit
Can according to user interest it is different and precisely be recommended, therefore, this two groups of plug-in's datas may be used according to user group into
Row filtration treatment does not cache completely, to meet the needs of product under different scenes.
The page data interactive device of the present invention solves Page Service by designing a general framework services module
The problem of logic during realization couples and caches inefficiency.It is split and is efficiently cached and secondary by flexible logic
Processing strategy, can effectively promote the loading velocity of the page, to optimize Product Experience of user during accession page.
And it is reused by logic, development cost and server cost can be effectively reduced.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The device of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing
The part that technology contributes can be expressed in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Based on the device that embodiment 1 describes, the present invention also provides a kind of page data exchange method, need to illustrate
It is that step shown in the flowchart of the accompanying drawings can execute in the computer installation of such as a group of computer-executable instructions,
Also, although logical order is shown in flow charts, and it in some cases, can be to be executed different from sequence herein
Shown or described step.
As shown in fig. 7, this approach includes the following steps:
Step S701, framework services module parse the request that client is sent, and obtain page mould corresponding with the request
The storage address of plate unit sends the request according to the storage address to the Page Template unit.
Step S702, the Page Template unit receive the request that the framework services module is sent, by the request pair
The page answered is decomposed into multiple modules, obtains the corresponding plugin information of each module, and plug-in unit letter is generated according to the plugin information
List is ceased, the plugin information list is sent to the framework services module.
Step S703, the framework services module receive the plugin information list that the Page Template unit returns, according to
The plugin information list obtains corresponding plug-in's data, and the plug-in's data is returned to client.
Optionally, as shown in figure 8, step S702 further comprises:
Step S801, Page Template unit receive the request that the framework services module is sent, and the request is corresponding
The page is decomposed into multiple modules, obtains the corresponding plug number of each module, package types and plug-in unit sequence.
Step S802, Page Template unit are sequentially generated plugin information according to the plug number, package types and plug-in unit
List.
The plugin information list is sent to the framework services mould by step S803, Page Template unit with array form
Block;Wherein, the sequence of the array and the sequence of plug-in unit are corresponding.
Optionally, the plugin information list includes plug-in services mark and corresponding with the plug-in services unit
Required parameter list.
Optionally, as shown in figure 9, step S703 further comprises:
Step S901, framework services module receive the plugin information list that the Page Template unit returns.
Step S902, framework services module search whether to preserve in local cache data according to the plugin information list
There is corresponding plug-in's data.If so, S905 is thened follow the steps, if it is not, thening follow the steps S903.
Specifically, step S902 is executed by framework services mould searching unit in the block.
Step S903, according to the plugin information list to corresponding plug-in services unit requests plug-in's data.
Specifically, step S903 is executed by framework services mould plug-in services request unit in the block.
Step S904, plug-in services unit after receiving the request that the plug-in services request unit is sent, generate with
It is described to ask corresponding plug-in's data;
Plug-in's data is sent to the framework services module by step S905.
The plug-in's data of acquisition is returned to client by step S906, framework services module.
Optionally, as shown in Figure 10, step S902 further comprises:
Step S1001, according to the plugin information list obtain plug-in services mark and with the plug-in services unit pair
The required parameter list answered.
It is corresponding to search plug-in services mark according to the plug-in services of acquisition mark in plug-in registration table by step S1002
Plug-in unit routing iinformation and plug-in unit cache policy.
Step S1003, for allowing the plug-in's data of caching, according to the required parameter list in local cache data
Search corresponding plug-in's data.
Optionally, after step S1003, further include:If the plug-in's data found is effective, the plug-in unit number that will be found
According to being sent to the framework services module;If the plug-in's data found is invalid, according to the plugin information list to correspondence
Plug-in services unit requests plug-in's data.
Optionally, as shown in figure 11, step S904 includes:
Step S1101, plug-in services unit is after receiving the request that the plug-in services request unit is sent, according to page
Pattern needed for face die plate generates formwork style information, and the formwork style information is sent to the framework services module.
Step S1102, plug-in services unit generate multi-group data according to preset multiple packet class, and every group of data correspond to
The data of generation are sent to the framework services module by one packet class.
Optionally, the plug-in services unit is according to the device type of client and operating device version number and request pair
Region letter belonging to the publication channel information of the version number information for the client application answered and the application program, client
Packet class is arranged in the identification authentication information of breath and client.
Optionally, step S905 includes:The framework services module receives the data that the plug-in services unit is sent, root
Plug-in's data corresponding with the subscriber group information is obtained according to the subscriber group information, the plug-in's data of acquisition is returned into client
End.
The subscriber group information includes:The device type of client and operating device version number, client corresponding with request
Hold the regional information belonging to the version number information of application program and the publication channel information of the application program, client and client
The identification authentication information at end.
Optionally, after step S905, further include:The data that the framework services module is sent in the plug-in services unit
When meeting preset caching condition, by the data buffer storage in local.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Embodiment 3
The embodiment of the present invention also provides a kind of terminal, which can be in terminal group
Any one computer terminal.Optionally, in the present embodiment, above computer terminal can also replace with mobile terminal
Equal terminal devices.
Optionally, in the present embodiment, above computer terminal can be located in multiple network equipments of computer network
At least one network equipment.
Optionally, Figure 12 is the structure diagram of terminal according to the ... of the embodiment of the present invention.As shown in figure 12, the calculating
Machine terminal A may include:One or more (one is only shown in figure) processors 161, memory 163 and transmitting device
165。
Wherein, memory 163 can be used for storing software program and module, as the page data in the embodiment of the present invention is handed over
Corresponding program instruction/the module of mutual method and apparatus, processor 161 are stored in the software journey in memory 163 by operation
Sequence and module realize above-mentioned page data interaction to perform various functions application and data processing.Memory
163 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device,
Flash memory or other non-volatile solid state memories.In some instances, memory 163 can further comprise relative to processing
The remotely located memory of device 161, these remote memories can pass through network connection to terminal A.Above-mentioned network
Example includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 165 is used to receive via a network or transmission data.Above-mentioned network specific example
It may include cable network and wireless network.In an example, transmitting device 165 includes a network adapter, can be passed through
Cable is connected to be communicated with internet or LAN with other network equipments with router.In an example, it passes
Defeated device 165 is radio-frequency module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 163 is used to store information, the Yi Jiying of deliberate action condition and default access user
Use program.
Processor 161 can call the information and application program that memory 163 stores by transmitting device, following to execute
Step:
Optionally, the program code of following steps can also be performed in above-mentioned processor 161:
The first step, framework services module parse the request that client is sent, and obtain Page Template corresponding with the request
The storage address of unit sends the request according to the storage address to the Page Template unit.
Second step, Page Template unit receive the request that the framework services module is sent, by the corresponding page of the request
Face is decomposed into multiple modules, obtains the corresponding plugin information of each module, and plugin information list is generated according to the plugin information,
The plugin information list is sent to the framework services module.
Third walks, and framework services module receives the plugin information list that the Page Template unit returns, and is inserted according to described
Part information list obtains corresponding plug-in's data, and the plug-in's data is returned to client.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one
Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
It is desirably integrated into another device, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (25)
1. a kind of page data interactive device, which is characterized in that including framework services module and Page Template service module,
In,
The Page Template service module includes multiple Page Template units, and the Page Template unit is for receiving the frame
The corresponding page of the request is decomposed into multiple modules, obtains the corresponding plug-in unit of each module by the request that service module is sent
Information generates plugin information list according to the plugin information, the plugin information list is sent to the framework services mould
Block;
The framework services module is used to parse the request of client transmission, obtains Page Template unit corresponding with the request
Storage address, the request is sent to the Page Template unit according to the storage address, receives the Page Template list
The plugin information list that member returns obtains corresponding plug-in's data according to the plugin information list, and by the plug-in's data
Return to client;
Described device further includes plug-in services module, and the plug-in services module includes multiple plug-in services units;The plug-in unit
Information list includes plug-in services mark and required parameter list corresponding with the plug-in services unit, the plug-in services mark
Know the mark for the plug-in services unit.
2. the apparatus according to claim 1, which is characterized in that the framework services module includes plug-in registration table, described
Plug-in registration table is used to preserve the mapping relations of the plug-in services mark and plug-in unit routing iinformation and plug-in unit cache policy,
In, the plug-in unit routing iinformation is the storage address of the plug-in services unit, and the plug-in unit cache policy is preset plug-in unit
The cache policy of service unit.
3. the apparatus according to claim 1, which is characterized in that the corresponding plugin information of the request include plug number,
Package types and plug-in unit sequence.
4. the apparatus according to claim 1, which is characterized in that the plugin information list be array, the array it is suitable
Sequence is corresponding with the sequence of plug-in unit.
5. the apparatus according to claim 1, which is characterized in that the framework services module further includes the first mapping table, institute
The first mapping table is stated for storing depositing for page command word corresponding with the request that client is sent and the Page Template unit
Store up the mapping relations between address.
6. the apparatus of claim 2, which is characterized in that the framework services module includes query unit, described to look into
Unit is ask to be used to search corresponding plug-in's data in local cache data according to the plugin information list.
7. device according to claim 6, which is characterized in that the query unit is additionally operable to according to the plug-in services mark
Know and search plug-in unit cache policy corresponding with plug-in services mark in the plug-in registration table, is cached according to the plug-in unit
Strategy searches the plug-in unit according to the required parameter list for allowing the plug-in's data of caching in local cache data
Data.
8. device according to claim 6, which is characterized in that the framework services module further includes that plug-in services request is single
Member, the plug-in services request unit are used for according to the plugin information list to corresponding plug-in services unit requests plug-in unit number
According to.
9. device according to claim 8, which is characterized in that the plug-in services unit is for receiving the plug-in unit
After the request that service request unit is sent, plug-in's data corresponding with the request is generated, the plug-in's data of generation is sent to
The framework services module.
10. device according to claim 9, which is characterized in that the plug-in services unit is additionally operable to described in receiving
After the request that plug-in services request unit is sent, the pattern needed for Page Template unit generates formwork style information, by institute
It states formwork style information and is sent to the framework services module.
11. device according to claim 9, which is characterized in that the plugin information list further include and it is described request pair
The subscriber group information belonging to client answered.
12. according to the devices described in claim 11, which is characterized in that the subscriber group information includes:The equipment class of client
Type and operating device version number, client application corresponding with request version number information and the application program publication
The identification authentication information of regional information and client belonging to channel information, client.
13. according to the devices described in claim 11, which is characterized in that the plug-in services unit is additionally operable to according to preset more
A packet class generates multi-group data, and every group of data correspond to a packet class, and the data of generation, which are sent to the frame, to be taken
Business module.
14. device according to claim 13, which is characterized in that the plug-in services unit is additionally operable to according to client
Device type and operating device version number, the version number information of client application corresponding with the request and application program
Publication channel information, the identification authentication information of the regional information belonging to client and client packet class is set.
15. device according to claim 13, which is characterized in that the framework services module is additionally operable to receive the plug-in unit
The data that service unit is sent obtain plug-in's data corresponding with the subscriber group information according to the subscriber group information.
16. device according to claim 13, which is characterized in that the framework services module is additionally operable to take in the plug-in unit
When the preset caching condition of data fit that unit sends of being engaged in, by the data buffer storage in local.
17. a kind of page data exchange method, which is characterized in that the method is based on page data interactive device, described device
Including framework services module and Page Template service module, the Page Template service module includes multiple Page Template units,
The method includes:
Framework services module parses the request that client is sent, and obtains the storage of Page Template unit corresponding with the request
Location sends the request according to the storage address to the Page Template unit;
The Page Template unit receives the request that the framework services module is sent, and the corresponding page of the request is decomposed into
Multiple modules obtain the corresponding plugin information of each module, and plugin information list is generated according to the plugin information, are inserted described
Part information list is sent to the framework services module;
The framework services module receives the plugin information list that the Page Template unit returns, and is arranged according to the plugin information
Table obtains corresponding plug-in's data, and the plug-in's data is returned to client;
Described device further includes plug-in services module, and the plug-in services module includes multiple plug-in services units;The plug-in unit
Information list includes plug-in services mark and required parameter list corresponding with the plug-in services unit, the plug-in services mark
Know the mark for the plug-in services unit.
18. according to the method for claim 17, which is characterized in that the Page Template unit receives the framework services mould
The corresponding page of the request is decomposed into multiple modules, obtains the corresponding plugin information of each module, root by the request that block is sent
Plugin information list is generated according to the plugin information, the plugin information list is sent to the framework services module, including:
The Page Template unit receives the request that the framework services module is sent, and the corresponding page of the request is decomposed into
Multiple modules obtain the corresponding plug number of each module, package types and plug-in unit sequence;
It is sequentially generated plugin information list according to the plug number, package types and plug-in unit;
The plugin information list is sent to the framework services module with array form;Wherein, the sequence of the array with
The sequence of plug-in unit corresponds to.
19. according to the method for claim 17, which is characterized in that the framework services module receives the Page Template list
The plugin information list that member returns obtains corresponding plug-in's data according to the plugin information list, and by the plug-in's data
Client is returned to, including:
The framework services module receives the plugin information list that the Page Template unit returns;
The framework services module searches corresponding plug-in's data according to the plugin information list in local cache data, and
The plug-in's data found is sent to the framework services module;
If being searched in local cache data less than corresponding plug-in's data, inserted to corresponding according to the plugin information list
Part service unit asks plug-in's data;
Plug-in services unit generates plug-in unit corresponding with the request after the request for receiving the transmission of plug-in services request unit
The plug-in's data of generation is sent to the framework services module by data;
The plug-in's data of acquisition is returned to client by the framework services module.
20. according to the method for claim 19, which is characterized in that the framework services module is arranged according to the plugin information
Table searches corresponding plug-in's data in local cache data, including:
The framework services module according to the plugin information list obtain plug-in services mark and with the plug-in services
The corresponding required parameter list of unit;
The plug-in services are searched in plug-in registration table according to the plug-in services of acquisition mark identifies corresponding plug-in unit routing letter
Breath and plug-in unit cache policy;
For allowing the plug-in's data of caching, corresponding plug-in unit is searched in local cache data according to the required parameter list
Data.
21. according to the method for claim 20, which is characterized in that the plug-in's data for allowing caching, according to institute
It states after required parameter list searches corresponding plug-in's data in local cache data, further includes:
If the plug-in's data found is effective, the plug-in's data found is sent to the framework services module;
If the plug-in's data found is invalid, according to the plugin information list to corresponding plug-in services unit requests plug-in unit
Data.
22. according to the method for claim 19, which is characterized in that the plug-in services unit is receiving the plug-in unit clothes
It is engaged in after the request that request unit is sent, generates plug-in's data corresponding with the request, the plug-in's data of generation is sent to institute
Framework services module is stated, including:
The plug-in services unit is after receiving the request that the plug-in services request unit is sent, needed for Page Template
Pattern generate formwork style information, the formwork style information is sent to the framework services module;
The plug-in services unit generates multi-group data according to preset multiple packet class, and every group of data correspond to a grouping class
Not, the data of generation are sent to the framework services module.
23. according to the method for claim 22, which is characterized in that further include:The plug-in services unit is according to client
Device type and operating device version number, client application corresponding with request version number information and it is described apply journey
Packet class is arranged in the identification authentication information of regional information and client belonging to the publication channel information of sequence, client.
24. according to the method for claim 22, which is characterized in that the framework services module returns the plug-in's data of acquisition
Back to client, including:
The framework services module receives the data that the plug-in services unit is sent, and is obtained and the use according to subscriber group information
The plug-in's data of acquisition is returned to client by the corresponding plug-in's data of family group information;
The subscriber group information includes:The device type of client and operating device version number, client corresponding with request are answered
With the regional information and client belonging to the publication channel information of the version number information of program and the application program, client
Identification authentication information.
25. according to the method for claim 22, which is characterized in that further include:
The framework services module is in the preset caching condition of data fit that the plug-in services unit is sent, by the number
According to being buffered in local.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796358.9A CN106446049B (en) | 2016-08-31 | 2016-08-31 | A kind of page data interactive device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610796358.9A CN106446049B (en) | 2016-08-31 | 2016-08-31 | A kind of page data interactive device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106446049A CN106446049A (en) | 2017-02-22 |
CN106446049B true CN106446049B (en) | 2018-07-13 |
Family
ID=58164553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610796358.9A Active CN106446049B (en) | 2016-08-31 | 2016-08-31 | A kind of page data interactive device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106446049B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109388443A (en) * | 2017-08-09 | 2019-02-26 | 中兴通讯股份有限公司 | A kind of template independent solution, device and the storage medium of more framework templates |
CN107450929A (en) * | 2017-08-10 | 2017-12-08 | 武汉斗鱼网络科技有限公司 | Page development method and device |
CN108038212B (en) * | 2017-12-20 | 2022-01-14 | 国泰新点软件股份有限公司 | Data interaction method, device, system, equipment and storage medium |
CN113055702B (en) * | 2018-02-08 | 2023-06-27 | 广州虎牙信息科技有限公司 | Method, system and client for displaying business components |
CN108763551B (en) * | 2018-06-01 | 2022-01-28 | 创新先进技术有限公司 | Page rendering method, device, server and computer readable storage medium |
CN109302493B (en) * | 2018-11-15 | 2021-06-22 | 北京金山云网络技术有限公司 | User information sharing method and device, electronic equipment and storage medium |
CN111367519B (en) * | 2018-12-26 | 2024-03-01 | 北京奇虎科技有限公司 | Page part using method and device, computing equipment and computer storage medium |
CN109960505B (en) * | 2019-03-28 | 2022-11-25 | 江苏满运软件科技有限公司 | User interface component plug-in method, system, equipment and storage medium |
CN110381332A (en) * | 2019-08-01 | 2019-10-25 | 广州虎牙科技有限公司 | Direct broadcasting room component processing method, device, electronic equipment and readable storage medium storing program for executing |
CN112818266B (en) * | 2019-10-31 | 2024-05-03 | 北京国双科技有限公司 | Rendering method and device, storage medium and electronic equipment |
CN112959317B (en) * | 2019-12-13 | 2022-07-19 | 上海智殷自动化科技有限公司 | Industrial robot human-computer interaction system |
CN111191200B (en) * | 2019-12-20 | 2023-08-04 | 北京淇瑀信息科技有限公司 | Three-party linkage authentication page display method and device and electronic equipment |
CN111429223A (en) * | 2020-03-26 | 2020-07-17 | 中国建设银行股份有限公司 | Configuration method and device based on multi-tenant platform |
CN112163178A (en) * | 2020-09-27 | 2021-01-01 | 珠海格力电器股份有限公司 | Page data display method and device, storage medium and electronic device |
CN112486559B (en) * | 2020-12-15 | 2023-06-20 | 青岛海尔科技有限公司 | Product adjusting method and device, storage medium and electronic device |
CN113778554A (en) * | 2021-09-01 | 2021-12-10 | 粒子文化科技集团(杭州)股份有限公司 | Plug-in processing method, electronic device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631865A (en) * | 2013-11-01 | 2014-03-12 | 北京奇虎科技有限公司 | Webpage generating method and device |
CN103685476A (en) * | 2013-11-26 | 2014-03-26 | 优视科技有限公司 | Method for displaying web pages by aid of web page templates and web page template server |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9201665B2 (en) * | 2009-08-23 | 2015-12-01 | Bank Of America Corporation | Outputting presentation code updated for a particular user in response to receiving a page identifier |
-
2016
- 2016-08-31 CN CN201610796358.9A patent/CN106446049B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631865A (en) * | 2013-11-01 | 2014-03-12 | 北京奇虎科技有限公司 | Webpage generating method and device |
CN103685476A (en) * | 2013-11-26 | 2014-03-26 | 优视科技有限公司 | Method for displaying web pages by aid of web page templates and web page template server |
Also Published As
Publication number | Publication date |
---|---|
CN106446049A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106446049B (en) | A kind of page data interactive device and method | |
CN105338026B (en) | The acquisition methods of data resource, device and system | |
CN101471960A (en) | Service providing system, gateway, and server | |
CN104283723B (en) | Network access log processing method and processing device | |
CN104038528B (en) | Relay, system and method | |
CN103795768B (en) | The method and apparatus of remote access | |
CN109729183A (en) | Request processing method, device, equipment and storage medium | |
CN105868231A (en) | Cache data updating method and device | |
CN101304360A (en) | System and method for virtualization of user digital terminal | |
CN103139137B (en) | Network service provider method and device | |
US8903972B2 (en) | Method and apparatus for sharing contents using information of group change in content oriented network environment | |
CN108156210A (en) | The acquisition methods and device of target resource | |
CN103119911A (en) | System and method for synchronizing the profile of a user in social networks and the user's personal contact card (PCC) | |
CN106506719B (en) | Name the configuration method of distribution policy and configuration system in data network | |
CN110166455A (en) | A kind of multi-operator platform data adaptation method and relevant device | |
CN106487938B (en) | The retransmission method and device of domain name | |
CN102404616B (en) | Method and system for pushing data cloud based on digital television network | |
US20100146123A1 (en) | Resource allocation method of each terminal apparatus using resource management system and resource management server apparatus | |
CN111859127A (en) | Subscription method and device of consumption data and storage medium | |
CN108134811A (en) | The methods, devices and systems that file destination is distributed or downloaded | |
CN106603748A (en) | Terminal internet surfing method and terminal | |
CN105812178B (en) | A kind of terminal staging method and terminal | |
CN107968798A (en) | A kind of network management resources label acquisition method, cache synchronization method, apparatus and system | |
CN108076029A (en) | The building method and device of Workforce Management system | |
CN105721398A (en) | Data access method and device |
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 |