CN102831205A - Method and device for demand processing of network resources - Google Patents

Method and device for demand processing of network resources Download PDF

Info

Publication number
CN102831205A
CN102831205A CN2012102828949A CN201210282894A CN102831205A CN 102831205 A CN102831205 A CN 102831205A CN 2012102828949 A CN2012102828949 A CN 2012102828949A CN 201210282894 A CN201210282894 A CN 201210282894A CN 102831205 A CN102831205 A CN 102831205A
Authority
CN
China
Prior art keywords
target resource
browsing
copy
address
browse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012102828949A
Other languages
Chinese (zh)
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.)
Shanghai Youyang New Media Information Technology Co ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN2012102828949A priority Critical patent/CN102831205A/en
Publication of CN102831205A publication Critical patent/CN102831205A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and device for demand processing of network resources. The method includes: receiving target resource browsing requests including target resource browsing addresses; parsing target resource identity information and target resource browsing request parameters according to the browsing addresses; processing the target resource according to the target resource browsing request parameters to obtain target resource replication; and returning the target resource replication to a current browser. Compared with the prior art, uniform processing of data resources in advance and replication saving are omitted, and accordingly storage cost and maintenance cost are saved.

Description

A kind of Internet resources are processed by demand method and device
Technical field
The present invention relates to technical field of internet application, particularly relate to a kind of Internet resources and process by demand method and device.
Background technology
Along with Internet fast development, resource type and quantity on the network constantly increase, and service that the website can provide and function are also more and more abundanter.From the angle of website, even if for a resource, maybe be also need be according to the concrete service or the function that are provided, resource carried out certain processing after, the result after will handling again shows the user.
With the picture resource is that example describes, and for the website that has picture resource, picture is stored in the picture-storage system, and different application product lines possibly carry out showing after the different processing to picture by demand.For example, same pictures zooms to the 200*200 specification at the A application need; Zoom to the 300*300 specification, add watermark at the B application need, the picture file size is compressed to below the 100kb at the D application need at the C application need ... Or the like.
In order to satisfy the diversified demand of product function; In the prior art, employing is carried out Unified Treatment, is preserved the method for handling back resource copy then, according to above-mentioned example the data resource in advance; For same pictures; In four application modules of ABCD, show respectively if desired, then need generate the copy of four kinds of specifications of this picture in advance, be uploaded to four application modules of ABCD and storage then respectively.Yet the defective of this scheme is: increased storage resources and taken, and be difficult to safeguard.For the system that has mass picture and numerous application, if the image copy of every kind of specification is all stored, its storage and maintenance cost is difficult to accept; And in some cases; The copy that is generated might not have an opportunity to be used by actual, for example in photograph album is used, the preview graph of three kinds of convergent-divergent yardsticks is provided for the user; But the user might not go to use one by one these three kinds of yardsticks to go to browse, and this has further influenced the service efficiency of storage space.
In addition; The extensibility extreme difference of such scheme: if the function of certain application module changes; For example the picture specification that shows is upgraded; Perhaps to increase new picture specification, then need regenerate corresponding copy to every pictures respectively, just can open new function at picture database.If a plurality of application modules or functions of modules change frequent; The problems referred to above can show even more seriously so; Particularly in resource storage system and web site architecture that application module separates; Such scheme can add the coupling of intense source storage system and application module, also can increase for the maintenance and management difficulty of copy data thereupon.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of Internet resources to process by demand method and device, and technical scheme is following:
The embodiment of the invention provides a kind of Internet resources to process by demand method, and this method comprises:
Reception comprises the address of browsing of target resource to the browse request of target resource in the said browse request;
Browse the identification information that parses this target resource the address and browse demand parameter from said;
The demand parameter of browsing according to parsing obtains is handled target resource, obtains the copy of target resource;
The target resource copy is back to current browsing person.
According to a kind of embodiment of the present invention, this method also comprises:
Generate the address of browsing of target resource in advance, the said address of browsing is used for open issue; Said browsing in the address carries the identification information of said target resource at least and browses demand parameter.
According to a kind of embodiment of the present invention, said generation target resource browse the address, comprising:
To the identification information of target resource and/or browse demand parameter and encrypt, the content after encrypting is carried on said browsing in the address.
According to a kind of embodiment of the present invention, said method also comprises:
The target resource copy that processing is obtained is kept in the memory block.
According to a kind of embodiment of the present invention, the said demand parameter of browsing that obtains according to parsing is handled target resource, obtains the copy of target resource, comprising:
Browse demand parameter according to what parsing obtained, judge that memory block current whether existence with said browse the target resource copy that demand parameter is complementary;
If then directly from the memory block, read corresponding target resource copy;
If not, then target resource is handled in real time according to browsing demand parameter, obtain the copy of target resource.
The embodiment of the invention also provides a kind of Internet resources to process by demand device, it is characterized in that, this device comprises:
The browse request receiving element is used to receive the browse request to target resource, comprises the address of browsing of target resource in the said browse request;
The information analysis unit is used for browsing identification information that the address parses this target resource and browsing demand parameter from said;
Copy obtains the unit, is used for according to the demand parameter of browsing that parsing obtains target resource being handled, and obtains the copy of target resource;
The browse request response unit is used for the target resource copy is back to current browsing person.
According to a kind of embodiment of the present invention, this device also comprises:
Browse scalar/vector, generate the address of browsing of target resource in advance, the said address of browsing is used for open issue; Said browsing in the address carries the identification information of said target resource at least and browses demand parameter.
According to a kind of embodiment of the present invention, the said scalar/vector of browsing specifically is used for:
To the identification information of target resource and/or browse demand parameter and encrypt, the content after encrypting is carried on said browsing in the address.
According to a kind of embodiment of the present invention, said device also comprises:
Copy is preserved the unit, and the target resource copy that is used for processing is obtained is kept at the memory block.
According to a kind of embodiment of the present invention, said copy obtains the unit, specifically is used for:
Browse demand parameter according to what parsing obtained, judge that memory block current whether existence with said browse the target resource copy that demand parameter is complementary;
If then directly from the memory block, read corresponding target resource copy;
If not, then target resource is handled in real time according to browsing demand parameter, obtain the copy of target resource.
Compared with prior art, the present invention does not carry out Unified Treatment and preserves copy the data resource in advance, but according to browsing demand, generates to the original object resource in advance and browse the address, is carried on and browses in the address browsing the form of demand with parameter.Actual receive browse request after, the original object resource is handled in real time according to browsing parameter again, thereby the resource copy of having avoided effectively generating in advance takies the corresponding difficulty that administers and maintains that also reduced in a large number for storage space.In addition; Browsing the address can be generated according to the actual functional capability demand by application module, in case the application function demand changes, application module can regenerate voluntarily and browse the address; And do not need to notify at once the resource storage system to generate new resource copy; Reduced the degree of coupling between application module and the resource storage system effectively,, also can realize upgrading flexibly even if for having a plurality of application modules, the multiple application scenarios of browsing demand.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously; The accompanying drawing that describes below only is some embodiment that put down in writing among the present invention, for those of ordinary skills, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the website application architecture synoptic diagram of the embodiment of the invention;
Fig. 2 processes by demand first kind of process flow diagram of method for embodiment of the invention Internet resources;
Fig. 3 processes by demand second kind of process flow diagram of method for embodiment of the invention Internet resources;
Fig. 4 processes by demand first kind of structural representation of device for embodiment of the invention Internet resources;
Fig. 5 processes by demand second kind of structural representation of device for embodiment of the invention Internet resources;
Fig. 6 processes by demand the third structural representation of device for embodiment of the invention Internet resources.
Embodiment
At first a kind of Internet resources that the embodiment of the invention provided are processed by demand method and describe, this method can may further comprise the steps:
Reception comprises the address of browsing of target resource to the browse request of target resource in the said browse request;
Browse the identification information that parses this target resource the address and browse demand parameter from said;
The demand parameter of browsing according to parsing obtains is handled target resource, obtains the copy of target resource;
The target resource copy is back to current browsing person.
Technical scheme provided by the present invention, the plurality of specifications that goes for the polytype Internet resources represents demand, for example picture, video, audio frequency, document or the like; Further illustrate: for example; In photograph album is used,, the preview graph of different zoom yardstick is provided to same pictures; In voice playing is used,, the result of broadcast of high tone quality and low tonequality is provided to same audio-source; In video playback is used,, high definition, SD result of broadcast are provided to same video source; In browsing text application, plain text format, html format result of browse or the like are provided.From the website itself, if the user has been opened corresponding function of browse, then the website generally need possess at least a with browse the corresponding resource copy of function of browse demand, be used for responding user's browse request.
To the demand, the technical scheme that the embodiment of the invention provided is according to browsing demand, generate to the original object resource in advance and browse the address, is carried on and browses in the address browsing the form of demand with parameter.Actual receive browse request after, the original object resource is handled in real time according to browsing parameter again, thereby the resource copy of having avoided effectively generating in advance takies the corresponding difficulty that administers and maintains that also reduced in a large number for storage space.
The present invention program can be applied to the relative simple web site architecture of integrating with the resource storage system of application module, also can be applied to the web site architecture of application module and resource storage system relative separation.As shown in Figure 1, in the application architecture of typical website, the resource storage and uniform of website is in storage system, and these resources can be called for one or more concrete application modules.For example in the Baidu website, in a large amount of the image data storage and uniform and picture database, these pictures can be for a plurality of module invokes such as Baidu's photograph album, Baidu library, Baidu's mhkcs.
Use the present invention program; In described web site architecture like Fig. 1; Browsing the address can be generated according to the actual functional capability demand by application module, in case the application function demand changes, application module can regenerate voluntarily and browse the address; And do not need to notify at once the resource storage system to generate the resource copy, reduced the degree of coupling between application module and the resource storage system effectively.Even if for having a plurality of application modules, the multiple application scenarios of browsing demand, also can realize upgrading flexibly.
The Internet resources that the present invention implements to be provided are processed by demand method, and its executive agent can be that Internet resources are processed by demand device, from physical location; This device both can be arranged in application module, for example was arranged in various application servers, also can be arranged in the resource storage system; Picture database system for example; Video database system or the like, certainly, in some cases; The inner functional unit of this device also possibly be arranged in different physical entities, and the present invention need not limit this.
Need to prove that " the browsing " in internet arena is not limited to the sense stricto implication of browsing, but should comprise and browse text, browsing pictures, watch many-sided factors such as video, listening to audio.To " processing " of target resource, then can comprise convergent-divergent, rotation, compression to picture, to the recodification of audio/video, and to the operation of the format conversion of various resources, or the like.In addition; " viewer " among the present invention or " browsing the user " also are not limited to " people ", but should comprise the various entities of initiating the resource browse request; For example when the content of disk-based web site will be quoted in the third party website, also can the third party website be interpreted as a kind of user of browsing.
In order to make those skilled in the art understand the technical scheme among the present invention better; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention describes in detail; Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtained should belong to the scope that the present invention protects.
No matter be resource storage system in autonomous system framework or the integration system framework, each resource units wherein (for example a pictures, a section audio or the like) has a resource identification, can directly navigate to corresponding resource through this resource identification.For example, for the resource storage system on the internet, resource identification shows as the form of URL (Universal Resource Locator, URL) usually.Any user in the network can directly navigate to corresponding resource through URL.Certainly; What URL was corresponding is a kind of absolute sign of unified use in full internet scope; Iff is inner at web station system, and the relative sign that also can using system inside can discern positions resource, for example the form of " local store path+filename "; Even only be the form of " filename ", the present invention need not limit this.
According to the technical scheme that the embodiment of the invention provided; If need providing diversified to identical Internet resources, the application module of website represents; Then need generate the address of browsing of this part target resource in advance, for the internet, browse the address and also show as the URL form usually.This browses the address is to change from original address; Be with the key distinction of original address: in browsing the address; Outside the sign (can be absolute sign, also can be relative sign) that comprises the original object resource, also increased the content of browsing demand parameter.Correspondingly, application module is when external releasing resources, and the original address of releasing resources is not externally issued but will browse the address.That is to say that the user can only carry out browse request through browsing the address, like this, when receiving the user, just can the pairing resource of resource identification be handled accordingly according to the demand parameter of browsing in the address of browsing to the browse request of target resource.
Wherein, being carried on the target resource sign of browsing in the address, can be the form of absolute sign, and for example URL also can be the form that identifies relatively, and for example, for example the form of " local store path+filename " perhaps only is the form of " filename ".No matter be to use the sort of form to identify, web station system can be according to being identified at the website positioned internal to unique resource.
Be carried on the demand parameter of browsing in the address of browsing, its effect is to inform which kind of processing web station system need carry out to target resource.Illustrate as follows:
If it is 200 that the page has limited the display width of every pictures, so just can utilize w=200 parametric representation Max. Clearance _M. is 200, and height obtains through the equal proportion conversion;
If it highly is 200 that the page has limited the demonstration of every pictures, so just can utilize h=200 parametric representation maximum height limit is 200, and width obtains through the equal proportion conversion;
Some page hopes that picture is cut to fixing wide high back shows that such as crop=0,0,200,200 parametric representations are cropped to the zone of (200,200) pixel from coordinate (0,0) pixel;
Some page hopes that picture is rotated the back to be shown, for example the r=90 parametric representation is carried out dextrorotation to picture and turn 90 degrees processing.
If hope picture is carried out doing rotation processing again after the cutting, then can utilize shape such as crop=0,0,200,200; The complex parameter form of r=90 is represented.
Certainly, more than several kinds of simple case of only having given an example picture being handled, concrete parametric representation form also only is used for schematic illustration.Handle for other of picture, and, do not need in the present embodiment to explain one by one for the processing parameter of other types resource.
Scheme according to above embodiment provides for browsing demand parameter, is attached on the identification information with form expressly if only be; May there be the risk of being forged; For example, the user who has correlation experience may make amendment to browsing demand parameter after the principle of compositionality of address is browsed in understanding; Forgery makes new advances browses the address, thereby realizes illegal processing and the visit to target resource.Occur for fear of this situation, in one embodiment of the invention, can at first partly encrypt browsing demand parameter; Partly be attached to ciphertext on the identification information; Like this, do not knowing under the situation of AES, just can't pseudo-produce the legal address of browsing.
Except to browsing demand parameter makes amendment; If with browsing on the original address that demand parameter is attached to resource b of known resource a; The address of browsing that also possible puppet is produced legal form, therefore similarly, for " resource identification " part; Also can carry out encryption, then ciphertext partly is attached on the identification information.
In one embodiment of the invention, can carry out combining encryption, obtain the address of browsing of full ciphertext form " identification information " and " browsing demand parameter " two parts content.
Although it is better that full ciphertext form is browsed the address security; But there is the situation that can't in browsing the address, embody the original object resource and browse demand; In some specific application environment, if hope in browsing the address, to embody the original object resource and to browse demand, then can be further with (all or part of) identification information of target resource and/or browse demand parameter and also be carried at and browse in the address; That is to say; In browsing the address, both comprise identification information and/or browsed the plaintext of demand parameter, comprise this two-part ciphertext again.Expressly part is used to let user friendly normal identification, and the ciphertext part then is used to improve security, that is to say; Even if the user knows clear content; Do not knowing under the situation of AES, still can't forge and obtain ciphertext, thereby just avoiding the unauthorized access of user yet resource.
Need to prove, for above related any cryptographic operation, and the follow-up decryption oprerations that relates to, the present invention all need not limit for concrete encryption/decryption algorithm.
It is understandable that; The work of above-mentioned generation preview address function can be accomplished by application module, in case the application function demand changes like this; Application module can regenerate voluntarily and browse the address; And do not need to notify at once the resource storage system to generate the resource copy, and reduced the degree of coupling between application module and the resource storage system effectively, guarantee the dirigibility of upgrading.Certainly, generate the operation of browsing the address and also can accomplish, but also do not need to generate at once new resource copy by the resource storage system.
The method of address of browsing that generates in advance more than is provided; Application module or resource storage system are to needing open function of browse; Generate browsing the address and will browsing the address openly of original object resource respectively; Follow-uply just can target resource be processed by demand according to the address of browsing in the browse request.
Shown in Figure 1, process by demand a kind of process flow diagram of method for the Internet resources that the embodiment of the invention provided, this method can may further comprise the steps:
S101 receives the browse request to target resource, comprises the address of browsing of target resource in the said browse request;
Suppose that user B wants the resource among the access websites A, and be the function that provides according to the website that certain of visiting this resource specifically represents form, for example audio/video of the picture of certain size, certain sharpness or the like.User B can pass through directly modes such as input or clickthrough so, sends browse request to Website server.
S102 browses the identification information that parses this target resource the address and browses demand parameter from said;
According to the scheme that the embodiment of the invention provided, in browsing the address, carry following two parts content at least:
1) identification information of target resource
2) target resource browses demand parameter
Used algorithm/rule when browsing the address according to generation correspondingly can parse above two parts content from browse the address.If in the process of address is browsed in generation, carried out encryption, then in resolving, also need corresponding decryption processing, according to actual user demand, possibly also need verify the legitimacy of browsing the address.In the present embodiment, no longer be elaborated for concrete resolving.
S103 handles target resource according to the demand parameter of browsing that parsing obtains, and obtains the copy of target resource;
According to the explanation of front embodiment, utilize to resolve to obtain resource identification, can directly navigate to the prototype version of target resource.
On the other hand, root is resolved the demand parameter of browsing obtain, and the prototype version of target resource is handled, thereby be met the target resource copy of current browsing demand.For example,, original image is dwindled processing, generate the preview graph of the different size of original image according to page display mode.For example,, original image is dwindled processing, generate the preview graph of original image according to page display mode.
S104 is back to current browsing person with the target resource copy.
Utilize and handle the target resource copy that obtains, generate response, the target resource copy is back to current viewer to browse request.For example, the preview graph with the original image that generates as required represents to the user who initiates browse request.
According to the technical scheme that the embodiment of the invention provided,, after this is finished using, can directly delete for the target resource copy that is generated.Follow-up receive new browse request at every turn after, web station system all can be according to browsing that demand parameter is instant to generate new copy in the browse request.
In another embodiment of the invention, for the target resource copy that is generated, not directly deletion, but can preserve processing to it.For the follow-up new browse request of receiving, if can find the corresponding copy that has generated, then directly read this copy and return to the user, if can not find corresponding copy, return to the user according to browsing the new copy of the instant generation of demand parameter again.
Shown in Figure 2, process by demand the another kind of process flow diagram of method for the Internet resources that the embodiment of the invention provided, compare with a last embodiment, at first according to the demand parameter of browsing that parses, judge whether target resource is handled immediately in this embodiment.
S201, reception comprises the address of browsing of target resource to the browse request of target resource in the said browse request;
This step is identical with S101, here no longer repeat specification.
S202 browses the identification information that parses this target resource the address and browses demand parameter from said;
This step is identical with S102, here no longer repeat specification.
S203 browses demand parameter according to what parsing obtained, judges that memory block current whether existence with said browse the target resource copy that demand parameter is complementary; If, carry out S204, if not, carry out S205.
S204 directly reads corresponding target resource copy from the memory block;
S205 handles target resource according to browsing demand parameter in real time, obtains the copy of target resource.
S206 is back to current browsing person with the target resource copy.
According to the present embodiment scheme; After generating the target resource copy first and finishing using; Not directly deletion, but the resource copy that generates is preserved, when preserving wave file; Write down the corresponding source material sign of this copy, and generate the employed demand parameter of browsing of this copy.Certainly; The present invention identified and browsed demand parameter to source material physical record form need not limit; For example; Can preserve and set up related information resource copy and source material are corresponding, also can preserve separately copy, the follow-up source material sign of passing through to be write down is inquired about copy.
In the present embodiment; After parsing obtains the original object resource identification and browses demand parameter from browse request; At first, search whether there is the resource copy that is complementary with these two parts in the memory block, if query hit according to this two parts content; Then from storage is gone, read corresponding resource copy, return to the user; If there is not query hit, call corresponding processing module again, resource is handled in real time obtained the resource copy according to browsing demand parameter, then result is returned to the user.
It is understandable that, after handling in real time, can preserve,, directly read the resource copy that disposes so that have next time identically when browsing demand to this result.
Use the present embodiment scheme,, can the resource copy of correspondence be preserved, avoid carrying out repeatedly same processing operation for the demand of browsing that often can use.Certainly, in practical application, whether to preserve, can be provided with flexibly according to demand to the resource copy.For example, according to the frequency that is used of application module, be provided with resource that this application module uses whether preserve the resource copy, according to the frequency of utilization of resource itself, be provided with and whether preserve the resource copy, or the like.
According to read or write speed and the persistent demand of resource, can select the resource copy is kept in the dissimilar storage mediums, for example can be kept in the internal memory, also can be kept in the disk.Can also the medium that write of resource copy be controlled according to certain strategy.For example, at first the resource copy is kept in the disk,, then the resource copy is put into high-speed cache if read-write frequency surpasses certain threshold value; Perhaps, at first the resource copy is kept in the high-speed cache, before system reset, the content in the high-speed cache is cured in the disk, or the like.
In addition, in application module and web site architecture that the resource storage system is separated,, can the resource copy be kept in the various network entity according to actual user demand.For example: the resource copy can be kept in each application module, thereby improves the reaction velocity to browse request; Also can be kept in the resource storage system, with convenient a plurality of functionally similar application module shared resource copies; Can certainly be kept at simultaneously in these two kinds of entities; Even also can the resource copy be kept in the network entity that is independent of application module and resource storage system.
Below in conjunction with a concrete application example, scheme of the present invention is described:
For example, for certain picture resource of website A,, need to open two kinds of functions of browse now according to user demand:
A) be 200 with the picture width limitations, height obtains through the equal proportion conversion.
B) intercepting picture coordinate (0,0) pixel is to the zone of (200,200) pixel, and dextrorotation turn 90 degrees then.
The original URL of picture is: http://hiphotos.baidu.com/product_name/pic/item/b21bb051f819861 8c3b7cd384aed2e738ad4e69e.jpg;
The sign that can the relative path and the filename " pic/item/b21bb051f8198618c3b7c d384aed2e738ad4e69e.jpg " of picture be interpreted as picture here.
Corresponding function of browse a), browsing demand parameter is w=200, and this parameter and picture identification combining encryption in original URL, are obtained browsing the address and are:
http://hiphotos.baidu.com/product_name/s=200/sign=cc16a1715266d0167a199928a72ad498/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg。
Notice this and browse " s=200 " part of address; It is the plaintext of browsing demand parameter; " sign=c c16a1715266d0167a199928a72ad498 " browses the ciphertext that demand parameter and picture identification combining encryption obtain, and the filename of back remains unchanged.
Corresponding function of browse b), browsing demand parameter is crop=0,0,200,200; R=90 in original URL, obtains this parameter and picture identification combining encryption to browse the address and is:
http://f.hiphotos.baidu.com/product_name/crop=0,0,200,200;r=90/sign=7746b192a8d3fd1f2246f87a0d7e092f/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg。
Notice this and browse " crop=0,0,200,200 of address; R=90 " part, be the plaintext of browsing demand parameter, " ign=7746b192a8d3fd1f2246f87a0d7e092f " browses the ciphertext that demand parameter and picture identification combining encryption obtain, and the filename of back remains unchanged.
Suppose that user B will visit the Max. Clearance _M. version of above-mentioned picture, browse the mode of address, send browse request to application server through direct input or click:
http://hiphotos.baidu.com/product_name/s=200/sign=cc16a1715266d0167a199928a72ad498/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg
After application server receives browse request, from " sign=cc16a1715266d0167a199928a72ad498 " field of browsing the address, parse following content:
Resource identification: pic/item/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg;
Browse demand sign: s=200;
The resource identification and the filename plaintext that at first parse through contrast are if the two coupling judges that then this browse request is legal.
In the memory block, inquire about then; Discovery is corresponding to source material " pic/item/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg "; There is the resource copy version that is complementary with " s=200 ", then directly reads this resource copy and return to user B from the memory block.
If the browse request that the user sends is:
http://f.hiphotos.baidu.com/product_name/crop=0,0,200,200;r=90/sign=7746b192a8d3fd1f2246f87a0d7e092f/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg
After application server receives browse request, from " sign=cc16a1715266d0167a199928a72ad498 " field of browsing the address, parse following content:
Resource identification: pic/item/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg;
Browse the demand sign: crop=0,0,200,200; R=90;
The resource identification and the filename plaintext that at first parse through contrast are if the two coupling judges that then this browse request is legal.
In the memory block, inquire about then, find not exist and " crop=0,0,200,200 corresponding to source material " pic/item/b21bb051f8198618c3b7cd384aed2e738ad4e69e.jpg "; R=90 " the resource copy version that is complementary, then call image processing module, according to crop=0,0,200,200; R=90 carries out cutting and rotation processing to original image, then result is returned to the user, preserves the picture copy after handling simultaneously.
Corresponding to top method embodiment, the embodiment of the invention also provides a kind of Internet resources to process by demand device, and referring to shown in Figure 4, this device can comprise:
Browse request receiving element 110 is used to receive the browse request to target resource, comprises the address of browsing of target resource in the said browse request;
Information analysis unit 120 is used for browsing identification information that the address parses this target resource and browsing demand parameter from said;
Copy obtains unit 130, is used for according to the demand parameter of browsing that parsing obtains target resource being handled, and obtains the copy of target resource;
Browse request response unit 140 is used for the target resource copy is back to current browsing person.
Referring to shown in Figure 5, the Internet resources that the embodiment of the invention provided are processed by demand device, can also comprise:
Browse scalar/vector 150, generate the address of browsing of target resource in advance, the said address of browsing is used for open issue; Said browsing in the address carries the identification information of said target resource at least and browses demand parameter.
According to a kind of embodiment of the present invention, the said scalar/vector 150 of browsing specifically is used for:
To the identification information of target resource and/or browse demand parameter and encrypt, the content after encrypting is carried on said browsing in the address.
Referring to shown in Figure 6, the Internet resources that the embodiment of the invention provided are processed by demand device, can also comprise:
Copy is preserved unit 160, and the target resource copy that is used for processing is obtained is kept at the memory block.
According to a kind of embodiment of the present invention, said copy obtains unit 130, specifically is used for:
Browse demand parameter according to what parsing obtained, judge that memory block current whether existence with said browse the target resource copy that demand parameter is complementary;
If then directly from the memory block, read corresponding target resource copy;
If not, then target resource is handled in real time according to browsing demand parameter, obtain the copy of target resource.
Compared with prior art; The address control set that the embodiment of the invention provided does not carry out Unified Treatment and preserves copy the data resource in advance; But according to browsing demand; Generate to the original object resource in advance and browse the address, be carried on and browse in the address browsing the form of demand with parameter.Actual receive browse request after, the original object resource is handled in real time according to browsing parameter again, thereby the resource copy of having avoided effectively generating in advance takies the corresponding difficulty that administers and maintains that also reduced in a large number for storage space.In addition; Browsing the address can be generated according to the actual functional capability demand by application module, in case the application function demand changes, application module can regenerate voluntarily and browse the address; And do not need to notify at once the resource storage system to generate new resource copy; Reduced the degree of coupling between application module and the resource storage system effectively,, also can realize upgrading flexibly even if for having a plurality of application modules, the multiple application scenarios of browsing demand.
The Internet resources that the present invention implements to be provided are processed by demand device, can be arranged in application module, for example are arranged in various application servers; Also can be arranged in the resource storage system, picture database system for example, video database system or the like; Certainly; In some cases, the inner functional unit of this device also possibly be arranged in different physical entities, and the present invention need not limit this.
For the convenience of describing, be divided into various unit with function when describing above the device and describe respectively.Certainly, when embodiment of the present invention, can in same or a plurality of softwares and/or hardware, realize the function of each unit.
Description through above embodiment can know, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device embodiment, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Device embodiment described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
The above only is an embodiment of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (10)

1. Internet resources are processed by demand method, it is characterized in that, this method comprises:
Reception comprises the address of browsing of target resource to the browse request of target resource in the said browse request;
Browse the identification information that parses this target resource the address and browse demand parameter from said;
The demand parameter of browsing according to parsing obtains is handled target resource, obtains the copy of target resource;
The target resource copy is back to current browsing person.
2. method according to claim 1 is characterized in that, this method also comprises:
Generate the address of browsing of target resource in advance, the said address of browsing is used for open issue; Said browsing in the address carries the identification information of said target resource at least and browses demand parameter.
3. method according to claim 2 is characterized in that, said generation target resource browse the address, comprising:
To the identification information of target resource and/or browse demand parameter and encrypt, the content after encrypting is carried on said browsing in the address.
4. method according to claim 1 is characterized in that, said method also comprises:
The target resource copy that processing is obtained is kept in the memory block.
5. method according to claim 4 is characterized in that, the said demand parameter of browsing that obtains according to parsing is handled target resource, obtains the copy of target resource, comprising:
Browse demand parameter according to what parsing obtained, judge that memory block current whether existence with said browse the target resource copy that demand parameter is complementary;
If then directly from the memory block, read corresponding target resource copy;
If not, then target resource is handled in real time according to browsing demand parameter, obtain the copy of target resource.
6. Internet resources are processed by demand device, it is characterized in that, this device comprises:
The browse request receiving element is used to receive the browse request to target resource, comprises the address of browsing of target resource in the said browse request;
The information analysis unit is used for browsing identification information that the address parses this target resource and browsing demand parameter from said;
Copy obtains the unit, is used for according to the demand parameter of browsing that parsing obtains target resource being handled, and obtains the copy of target resource;
The browse request response unit is used for the target resource copy is back to current browsing person.
7. device according to claim 5 is characterized in that, this device also comprises:
Browse scalar/vector, generate the address of browsing of target resource in advance, the said address of browsing is used for open issue; Said browsing in the address carries the identification information of said target resource at least and browses demand parameter.
8. device according to claim 7 is characterized in that, the said scalar/vector of browsing specifically is used for:
To the identification information of target resource and/or browse demand parameter and encrypt, the content after encrypting is carried on said browsing in the address.
9. device according to claim 6 is characterized in that, said device also comprises:
Copy is preserved the unit, and the target resource copy that is used for processing is obtained is kept at the memory block.
10. device according to claim 5 is characterized in that, said copy obtains the unit, specifically is used for:
Browse demand parameter according to what parsing obtained, judge that memory block current whether existence with said browse the target resource copy that demand parameter is complementary;
If then directly from the memory block, read corresponding target resource copy;
If not, then target resource is handled in real time according to browsing demand parameter, obtain the copy of target resource.
CN2012102828949A 2012-08-09 2012-08-09 Method and device for demand processing of network resources Pending CN102831205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102828949A CN102831205A (en) 2012-08-09 2012-08-09 Method and device for demand processing of network resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102828949A CN102831205A (en) 2012-08-09 2012-08-09 Method and device for demand processing of network resources

Publications (1)

Publication Number Publication Date
CN102831205A true CN102831205A (en) 2012-12-19

Family

ID=47334341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102828949A Pending CN102831205A (en) 2012-08-09 2012-08-09 Method and device for demand processing of network resources

Country Status (1)

Country Link
CN (1) CN102831205A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721224A (en) * 2016-03-31 2016-06-29 网易(杭州)网络有限公司 Method, device and system for processing uniform resource locator

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060265345A1 (en) * 2005-05-20 2006-11-23 Microsoft Corporation System and method for URL virtualization and mapping
CN101719073A (en) * 2009-11-20 2010-06-02 浪潮集团山东通用软件有限公司 Intelligent client-based on-demand downloading realization method
CN101729574A (en) * 2008-10-31 2010-06-09 中兴通讯股份有限公司 System, device and method for cascade protection of contents of IPTV service
CN101794298A (en) * 2010-01-22 2010-08-04 中兴通讯股份有限公司 Method for realizing page adaptation, page adaptation system and communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060265345A1 (en) * 2005-05-20 2006-11-23 Microsoft Corporation System and method for URL virtualization and mapping
CN101729574A (en) * 2008-10-31 2010-06-09 中兴通讯股份有限公司 System, device and method for cascade protection of contents of IPTV service
CN101719073A (en) * 2009-11-20 2010-06-02 浪潮集团山东通用软件有限公司 Intelligent client-based on-demand downloading realization method
CN101794298A (en) * 2010-01-22 2010-08-04 中兴通讯股份有限公司 Method for realizing page adaptation, page adaptation system and communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721224A (en) * 2016-03-31 2016-06-29 网易(杭州)网络有限公司 Method, device and system for processing uniform resource locator
CN105721224B (en) * 2016-03-31 2019-04-19 网易(杭州)网络有限公司 Uniform resource locator processing method, device and system

Similar Documents

Publication Publication Date Title
JP6961818B2 (en) Data sharing methods, clients, servers, computing devices, and storage media
US7770230B2 (en) System for dynamically encrypting content for secure internet commerce and providing embedded fulfillment software
JP2020524866A (en) Content trading agreement system and method
CN102843366A (en) Network resource access permission control method and device
CN102077168B (en) Library description of the user interface for federated search results
EP1267247A2 (en) Digital content publication
US20180336322A1 (en) File origin determination
US20170060893A1 (en) Translating file type aware virtual filesystem and content addressable globally distributed filesystem
CN105208419A (en) Portable storage medium including instruction manual content for vehicle
KR101718891B1 (en) Method and apparatus for searching image
US20180314676A1 (en) Web page nonintrusive content protection on user device
CN102831205A (en) Method and device for demand processing of network resources
JP6755539B2 (en) Methods and equipment for publishing copyrighted works on networks
US11431957B2 (en) File generation apparatus, file generation method, processing apparatus, and non-transitory computer-readable storage medium
GB2568744A (en) Apparatus and methods for virtual asset management
JPWO2012005309A1 (en) Content distribution system, content distribution apparatus, and content operation program
CA2824545C (en) Programmable, interactive content viewing on a mobile video application
JP6703116B2 (en) EPUB file encryption unit file compression and decompression method
CN113163261B (en) Decryption pushing method, device, equipment and storage medium of encrypted video
JP6818517B2 (en) Location information management device and location information management method
JP6572984B2 (en) Electronic form system, form retrieval apparatus, control method, and program
JP7047558B2 (en) Information processing device, information processing program, browsing device, browsing program, and information processing system
JP2006287413A (en) Image processing device, method, and program
JP2005128892A (en) Contents relevant information providing method and system, its program and program recording medium
KR100783404B1 (en) Contents managing method of drm system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20191209

Address after: 201210 room j1328, floor 3, building 8, No. 55, Huiyuan Road, Jiading District, Shanghai

Applicant after: SHANGHAI YOUYANG NEW MEDIA INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer 2

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20121219

RJ01 Rejection of invention patent application after publication