Summary of the invention
The embodiment of the present invention provides a kind of multiaddress to generate mthods, systems and devices, can't generate according to the download address that the user selects the problem of other download address when carrying out resource downloading for the solution prior art.
The embodiment of the present invention provides a kind of multiaddress generation method, and the method comprises:
Obtain the first download address;
According to default characteristics of variables and recognition rule, identify the variable in described the first download address, the prompting user selects the variable that identifies, with the variable of user's selection that identify and described as the variable part in described the first download address;
Obtain attribute information corresponding to described variable part;
According to described the first download address and attribute information corresponding to described variable part, generate at least one other download address;
According to described the first download address and attribute information corresponding to described variable part, generate at least one other download address and comprise:
The attribute information corresponding according to described variable part determined the span of described variable part;
Variable part in described the first download address is substituted with the value in described span, will substitute the rear download address that generates as described other download address.
The embodiment of the present invention provides a kind of multiaddress generation system, and this system comprises:
Client is used for obtaining the first download address
According to default characteristics of variables and recognition rule, identify the variable in described the first download address, the prompting user selects the variable that identifies, with the variable of user's selection that identify and described as the variable part in described the first download address;
Obtain attribute information corresponding to described variable part from server, according to described the first download address and attribute information, generate at least one other download address, specifically generation method comprises: the attribute information corresponding according to described variable part determined the span of described variable part; Variable part in described the first download address is substituted with the value in described span, will substitute the rear download address that generates as described other download address;
Server is used for preserving the attribute information corresponding to variable part of described the first download address, and this attribute information is offered described client.
The embodiment of the present invention provides a kind of client, and this client comprises:
Address acquisition unit is used for obtaining the first download address;
The variable determining unit, comprise the first determining unit, the second determining unit and Tip element, described the first determining unit is used for receiving the variable information that the user inputs, search described variable in described the first download address, with the variable that finds as the variable part in described the first download address; Described the second determining unit is used for identify the variable in described the first download address according to default characteristics of variables, with the variable of user's selection that identify and described as the variable part in described the first download address; Tip element is used for after the variable of described the second described the first download address of determining unit identification, and the prompting user selects the variable that identifies;
The attribute acquiring unit is used for obtaining attribute information corresponding to described variable part;
Scalar/vector is used for according to described the first download address and attribute information, generates at least one other download address;
Described scalar/vector comprises:
The scope determining unit is used for the span that the attribute information corresponding according to described variable part determined described variable part;
The variable substituting unit is used for the variable part of described the first download address is substituted with the value in described span, will substitute the rear download address that generates as described other download address.
In the present invention, by determining the variable part in the first download address and obtaining the attribute information of this variable part, generate one or more other download address according to the attribute information of the first download address and variable part, realized generating according to a download address purpose of other download address.
Embodiment
when the download link downloaded resources that download address or user according to user's input click, in order to generate the download address that other are associated according to the download address of input or the download address corresponding to download link of click, and then according to these download address for the user downloads to more resource, the embodiment of the present invention provides a kind of multiaddress generation method, in this method, determine the variable part in the initial download address and obtain the attribute information of this variable part, generate one or more other download address according to the attribute information of initial download address and variable part, thereby can utilize other download address downloaded resources of initial download address and generation.
Referring to Fig. 1, the multiaddress generation method that the embodiment of the present invention provides specifically comprises the following steps:
Step 10: obtain the first download address, i.e. the initial download address;
In this step, obtain the first download address method can for: when the user carries out resource downloading, in client input download address, the download address of client user input, and with this download address as the first download address.
Obtain the first download address method can also for: when the user carries out resource downloading, click certain download link, client responds, with the corresponding download address of this download link as the first download address.
Step 11: determine the variable part in the first download address, obtain attribute information corresponding to this variable part;
In this step, variable part in the first download address can be set by the user, setting according to the user concrete grammar of determining the variable part in the first download address is: the variable part during the modes such as the user selectes by mouse in client, direct input are set the first download address, client responds, and the part that the user is selected is as the variable part in the first download address; Perhaps, the variable information of client user input is searched described variable in the first download address, with the variable that finds as the variable part in the first download address.For example, the first download address is:
Ftp: //dygod1:
[email protected]:9911/ escape from prison the 3rd the season/[film paradise www.dygod.com] the 3rd season EP (the *) _ S-Files.rmvb that escapes from prison;
" * " in can mouse selected this address of user, client according to user selected with the part in this address bracket as variable part; Perhaps, the user directly at client input " * ", finds " * " in the bracket of client in this address, with the part in bracket as variable part.
Variable part in the first download address can also be determined according to certain rule by client, client determines that according to certain rule the concrete grammar of the variable part in the first download address is: client is according to default characteristics of variables, according to the one or more variablees in predetermined recognition rule identification the first download address, with the variable that identifies as the variable part in the first download address.Characteristics of variables can be numeral, additional character (such as bracket) etc.Illustrate, pre-defined rule is: last interval variable in identification the first download address, characteristics of variables is continuous numeral, according to this pre-defined rule and characteristics of variables, the continuous numeral of identification in client last interval in the first download address, with the numerical portion that the recognizes variable part as the first download address, for example, the first download address is:
Http: // 61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE01.wmv, the continuous numeral that in the end identifies in interval/AVSE01.wmv is 01, with the variable part of " 01 " in last interval of address part as this address.Illustrate again, pre-defined rule is: last interval and third from the bottom interval variable in identification the first download address, characteristics of variables is continuous numeral, according to this pre-defined rule and characteristics of variables, client is identified continuous numeral in interval and third from the bottom the interval of last in the first download address respectively, with the numerical portion that the recognizes variable part as the first download address, for example, the first download address is:
Http: // 61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE01.wmvThe continuous numeral that in the end identifies in interval/AVSE01.wmv is 01, the continuous numeral that identifies at third from the bottom interval/disk01/ is 01, and " 01 " in last of address is interval and third from the bottom interval is partly as the variable part of this address.
Better, after the variable in client identification the first download address, in order to better meet user's request, can also point out the user that the variable that identifies is confirmed or selected, and with the variable of user's selection as the variable part in the first download address.
After variable part in determining the first download address, need to obtain attribute information corresponding to this variable part, concrete acquisition methods can be by the user, the attribute information of variable part to be arranged, with the information of user's input of receiving as attribute information corresponding to variable part.The attribute information that variable part is corresponding can comprise: one or combination in any in the initial value of long, the variable part in position of variable part, the stop value of variable part.The attribute information corresponding according to variable part can be determined the span of this variable part, such as, the position of variable part is long is 2, and the initial value of variable part is 01, and the span of variable part is [01,99] so; For another example, the position of variable part is long is 2, and the stop value of variable part is 25, and the span of variable part is [01,25] so.The attribute information that variable part is corresponding can also be all values of variable part, such as, the attribute information of variable part is: 01,02,03,04,05, can determine directly that so the span of variable part is value in 01,02,03,04,05.
Obtain attribute information corresponding to variable part concrete grammar can also for: the attribute that will comprise the first download address request of obtaining sends to server end, after server end receives this attribute and obtains request, corresponding relation according to download address and the variable's attribute information of pre-save, determine that attribute obtains variable's attribute information corresponding to the first download address that comprises in request, and this variable's attribute information is sent to client.Server end can whole variable's attribute information that the first download address is corresponding send to client, also the Partial Variable attribute information can be sent to client, server end determine to send whole variable's attribute information or the method for Partial Variable attribute information can for: the attribute that the server end judgement receives obtains whether comprise variable levels information in request, if comprise, judgement is to send whole variable's attribute information or Partial Variable attribute information according to variable levels information; If do not comprise, that can give tacit consent to sends to client with whole variable's attribute information.Obtain when comprising variable levels information in request at attribute, server end is chosen the variable's attribute information of corresponding level according to this variable levels information from variable's attribute information corresponding to the first download address, and the variable's attribute information of choosing is sent to client.For example, the first download address is:
Http: // 61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE01.wmvThe attribute that client sends obtains and comprises this address and variable levels information in request: first level, after server end receives attribute and obtains request, determine that according to the corresponding relation of preserving variable's attribute information corresponding to this address comprises: the variable's attribute information of first level: the variable's attribute information of 01-30 and second level: 1-3, because the variable levels information that comprises in the variable's attribute request is first level, server end sends to client with the variable's attribute information 01-30 of first level.
Step 12: according to the first download address and attribute information corresponding to variable part that get, generate at least one other download address.
The concrete grammar of this step is: at first, the attribute information corresponding according to variable part determined the span of this variable part; Then, the variable part in the first download address is substituted with the value in span, will substitute the rear download address that generates as other download address.For example, the first download address is:
Http: // 61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE01.wmvVariable part is last interval " 01 " and third from the bottom interval " 01 ", the attribute information of " 01 " part in last interval that gets comprises: initial value is 01, stop value is 02, the attribute information of third from the bottom interval " 01 " part comprises: initial value is 01, and stop value is 02; Can determine that according to these attribute informations in last interval and third from the bottom interval, " 01 " span partly is [01,02], " 01 " in last interval and third from the bottom interval in this address is partly substituted with the value in span, generates following 4 other download address:
http://61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE01.w? ,
http://61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE02.wmv,
http://61.152.221.166/tbcwmv/A13/disk02/mpegav/AVSE01.wmv,
http://61.152.221.166/tbcwmv/A13/disk02/mpegav/AVSE02.wmv。
After generating at least one other download address, client is set up downloading task for each other download address that generates, each downloading task according to the download address of self correspondence from the server end downloaded resources.
Referring to Fig. 2, the embodiment of the present invention also provides a kind of multiaddress generation system, and this system comprises:
Client 20, be used for obtaining the first download address, determine the variable part in described the first download address, obtain attribute information corresponding to described variable part from server, according to described the first download address and attribute information, generate at least one other download address;
Server 21 is used for preserving the attribute information corresponding to variable part of described the first download address, and this attribute information is offered described client.
As shown in Figure 3, client 20 comprises address acquisition unit 30, variable determining unit 31, attribute acquiring unit 32 and scalar/vector 33, wherein:
Address acquisition unit 30 is used for obtaining the first download address;
Variable determining unit 31 is for the variable part of determining described the first download address;
Attribute acquiring unit 32 is used for obtaining attribute information corresponding to described variable part from server;
Scalar/vector 33 is used for according to described the first download address and attribute information, generates at least one other download address.
Concrete, address acquisition unit 30 comprises the first acquiring unit and second acquisition unit, wherein:
The first acquiring unit be used for to receive the download address of user's input, with described download address as described the first download address;
Second acquisition unit is used for obtaining the corresponding download address of download link that the user clicks, with this download address as described the first download address.
Variable determining unit 31 comprises the first determining unit and the second determining unit, wherein:
The first determining unit be used for to receive the variable information of user's input, searches described variable in described the first download address, with the variable that finds as the variable part in described the first download address;
The second determining unit is used for identifying the variable in described the first download address according to default characteristics of variables, with the variable that identifies as the variable part in described the first download address.
Variable determining unit 31 also comprises Tip element, is used for after the variable of described the second described the first download address of determining unit identification, and the prompting user selects the variable that identifies; Described the second determining unit is used for: the variable that user that will identify and described selects is as the variable part of described the first download address.
Attribute acquiring unit 32 comprises the 3rd acquiring unit and the 4th acquiring unit, wherein:
The 3rd acquiring unit is used for sending to server end the attribute that comprises described the first download address and obtains request; Receive the variable's attribute information that described server end returns, choose attribute information corresponding to described variable part from described variable's attribute information;
The 4th acquiring unit is used for the prompting user attribute information corresponding to described variable part is arranged, receive the information of user's input and with this information as attribute information corresponding to described variable part.
Scalar/vector 33 comprises scope determining unit and variable substituting unit, wherein:
The scope determining unit is used for the span that the attribute information corresponding according to described variable part determined described variable part;
The variable substituting unit is used for the variable part of described the first download address is substituted with the value in described span, will substitute the rear download address that generates as described other download address.
Client 20 further comprises:
Resource downloading unit 34 is used for carrying out resource downloading according to other download address of the first download address and scalar/vector generation.
As shown in Figure 4, server 21 specifically comprises:
Information memory cell 40 is used for preserving the corresponding relation of download address and variable's attribute information;
Attribute determining unit 41, the attribute that comprises download address of sending for the reception client obtains request, according to described corresponding relation, determines the variable's attribute information that described download address is corresponding;
Attribute transmitting element 42 is used for all or part of content of described variable's attribute information is sent to client.
Below in conjunction with said system, embodiment of the method for the present invention is described:
Embodiment one:
In the present embodiment, inputted the initial download address and the variable part of this address is set and attribute information corresponding to this variable part by the user, client generates a plurality of other addresses according to initial download address and attribute information corresponding to variable part.Be implemented as follows:
Step S01: the user inputs following initial download address and variable information " * " in client:
Ftp: //dygod1:
[email protected]:9911/ escape from prison the 3rd the season/[film paradise www.dygod.com] the 3rd season EP (the *) _ S-Files.rmvb that escapes from prison;
The address acquisition unit of client receives the initial download address of user's input, and the variable determining unit receives variable information;
Step S02: the attribute information corresponding to attribute acquiring unit prompting user inputted variable of client, and the reception user inputs position long 1 and initial value 5;
Step S03: the scalar/vector of client is according to the attribute information of variable part " * ": the position is long be 1 and initial value be 5, span of determining " * " part in the initial download address is [5,9], with " * " in initial download address part with [5,9] numeral in substitutes, and generates 5 " * " part and is respectively 5,6,7,8,9 new download address;
Step S04: downloading task is set up for each download address in the resource downloading unit of client, and carries out resource downloading according to these download address.
Embodiment two:
In the present embodiment, determine variable part in chained address that the user clicks by client according to the recognition rule of setting and characteristics of variables, obtain attribute information corresponding to variable part from server end, and generate a plurality of other addresses according to chained address and attribute information.Be implemented as follows:
Step S11: the user clicks following chained address in client:
http://61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE01.wmv;
Step S12: the variable determining unit of client is according to the recognition rule of setting (last interval and third from the bottom interval variable in the identification download address) and characteristics of variables (continuous numeral), and identifying " 01 " in last interval/AVSE01.wmv and " 01 " in third from the bottom interval/disk01/ is variable part;
Step S13: the attribute acquiring unit of client sends to server the attribute that comprises above-mentioned chained address and obtains request;
Step S14: the attribute determining unit of server receives above-mentioned attribute and obtains request, according to the download address of information memory cell preservation and the corresponding relation of variable's attribute information, determine that variable's attribute information corresponding to above-mentioned chained address comprises: the variable's attribute information (01-03) of first level and the variable's attribute information (01-03) of second level, whole variable's attribute information that the transmitting element of server will be determined send to client;
Step S15: the variable's attribute information that the attribute acquiring unit reception server of client is sent, the prompting user selects the variable's attribute information of first level and the variable's attribute information of second level, suppose that the user has selected the variable's attribute information of first level, the attribute acquiring unit with the variable's attribute information (01-03) of first level as attribute information corresponding to " 01 " part in last interval/AVSE01.wmv in the chained address;
Step S16: the scalar/vector of client determines in the chained address that span of " 01 " part in last interval/AVSE01.wmv is [01,03], " 01 " described in chained address part is substituted with 02 and 03 respectively, generates 2 new " 01 " and partly be respectively 02 and 03 download address:
http://61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE02.wmv,
http://61.152.221.166/tbcwmv/A13/disk01/mpegav/AVSE03.wmv;
Step S17: downloading task is set up for each download address in the resource downloading unit of client, and carries out resource downloading according to these download address.
To sum up, beneficial effect of the present invention is:
In the present invention, by determining the variable part in the first download address and obtaining the attribute information of this variable part, generate one or more other download address according to the attribute information of the first download address and variable part, realized generating according to a download address purpose of other download address.
Simultaneously, in the present invention, can be user's downloaded resources simultaneously according to other download address of the first original download address and generation, reached only selected download address of user, client but can be downloaded for the user effect of a plurality of resource files.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of claim of the present invention and equivalent technologies thereof, the present invention also is intended to comprise these changes and modification interior.