The content of the invention
In view of this, the present invention provides a kind of digital product dissemination method, device, is used to improve digital product
Efficiency for issuing.
In order to solve the above technical problems, the present invention provides a kind of digital product dissemination method, including:
Obtain the identification information of issue target;
Identification information according to the issue target determines issue content information corresponding with the issue target;
Obtain the corresponding digital product resource of the issue content information;
The digital product resource is sent to the issue target.
Preferably, the identification information according to the issue target determines hair corresponding with the issue target
Cloth content information includes:
Identification information according to the issue target determines that content issues template, in content issue template
Including issue content options information;
Template is issued according to the content and determines the corresponding issue content options information of the issue target;
In issue according to the corresponding issue content options information generation issue target of the issue target
Appearance information, the issue content information storage is in expandable mark language XML file.
Preferably, methods described also includes:
The expandable mark language XML file is entered into row format conversion.
Preferably, it is described send the digital product resource to the issue target before, methods described is also
Including:
The digital product resource is organized into resource bag, and for the resource bag generates index file;
And/or the digital product resource is encrypted.
Preferably, it is described to include to the issue target transmission digital product resource:
By the digital product resource storage after the encryption in contents directory, and by the digital product resource
Corresponding circular document is stored in file directory;
The file directory is read, the filename of the circular document is obtained;
Filename according to the circular document determines the relative path of the digital product resource after the encryption
Name, and the digital product resource after the encryption is obtained according to the relative pathname and the contents directory;
According to the corresponding sending method of the issue target number after the encryption is sent to the issue target
Word product resource.
Preferably, before the identification information for obtaining issue target, methods described also includes:
The configuration information of the issue target is set, wherein the configuration information of the issue target includes the hair
The identification information of cloth target and the corresponding sending method of the issue target.
Second aspect, the present invention provides a kind of digital product distributing device, including:
Information acquisition unit, the identification information for obtaining issue target;
Determining unit, it is corresponding with the issue target for being determined according to the identification information of the issue target
Issue content information;
Resource acquisition unit, for obtaining the corresponding digital product resource of the issue content information;
Transmitting element, for sending the digital product resource to the issue target.
Preferably, the determining unit includes:
First determining module, for determining that content issues template according to the identification information of the issue target,
The content issue template includes issuing content options information;
Second determining module, the corresponding issue of the issue target is determined for issuing template according to the content
Content options information;
Generation module, for generating the issue according to the corresponding issue content options information of the issue target
The issue content information of target.
Preferably, the determining unit also includes:
Modular converter, for the expandable mark language XML file to be entered into row format conversion.
Preferably, described device also includes:
Compression unit, for the digital product resource to be organized into resource bag, and for the resource bag is generated
Index file;And/or
Ciphering unit, for being encrypted to the digital product resource.
Preferably, the transmitting element specifically for:
Processing module, for by the digital product resource storage after the encryption in contents directory, and by institute
The corresponding circular document of digital product resource is stated to store in file directory;
Read module, for reading the file directory, obtains the filename of the circular document;
Acquisition module, for determining that the digital product after the encryption is provided according to the filename of the circular document
The relative pathname in source, and the number after the encryption is obtained according to the relative pathname and the contents directory
Word product resource;
Sending module, for sending institute to the issue target according to the corresponding sending method of the issue target
State the digital product resource after encryption.
Preferably, described device also includes:
Setting unit, the configuration information for setting the issue target, wherein the configuration of the issue target
Information includes the identification information and the corresponding sending method of the issue target of the issue target.
Above-mentioned technical proposal of the invention has the beneficial effect that:
In embodiments of the present invention, the identification information of issue target is obtained first, then, according to the issue
The identification information of target determines issue content information corresponding with the issue target.Obtain again in the issue
The corresponding digital product resource of appearance information, and send the digital product resource to the issue target.By upper
As can be seen that in embodiments of the present invention after corresponding digital product resource is obtained, you can to the hair
Cloth target sends the digital product resource, need to be according to issue when digital product resource is sent so as to avoid
Target different and the defect of the otch between frequently calling and switching and issue target, therefore, using this hair
The scheme of bright embodiment simplifies the flow of digital product issue, and then improves the issue effect of digital product
Rate.
Specific embodiment
Below in conjunction with drawings and Examples, specific embodiment of the invention is described in further detail.
Following examples are used to illustrate the present invention, but are not limited to the scope of the present invention.
As shown in figure 1, the digital product dissemination method of the embodiment of the present invention one includes:
Step 11, the identification information for obtaining issue target.
Here, the issue target refers to the reception object of digital product resource, such as some websites etc..
Digital product resource can be e-book, picture, the digital resource such as newpapers and periodicals.The mark letter of the issue target
Breath refers to the information for the unique mark issue target, such as ID of the issue target etc..
Here, the configuration information of the issue target that can be prestored by reading issues the mark of target to obtain
Information.For the multiple issue targets safeguarded, an allocation list can be first set, stored in the allocation list
There are the ID of each issue target, sending method etc. information.By searching the allocation list, can be issued
The contents such as the ID of target.Or, before digital product resource is issued, can also receive certain issue target
Digital resource request message, determine issue by parsing the information carried in the digital resource request message
The identification information of target.
Wherein, the identification information of the issue target can be one, can also be multiple.
Step 12, the issue corresponding with the issue target of the identification information determination according to the issue target
Content information.
In this step, can determine that content issues template according to the identification information of the issue target, described
Content issue template includes issuing content options information.Then, template is issued according to the content and determines institute
State the corresponding issue content options information of issue target.Finally, further according to the corresponding issue of the issue target
The issue content information of the content options information generation issue target, the issue content information storage exists
In XML (Extensible Markup Language, extensible markup language) file.
Step 13, the corresponding digital product resource of the acquisition issue content information.
Corresponding digital product can be obtained from Numerical Resources Database according to issue content information in this step
Resource.
Step 14, send the digital product resource to the issue target.
As seen from the above, in embodiments of the present invention after corresponding digital product resource is obtained, you can
The digital product resource is sent to the issue target, is needed when digital product resource is sent so as to avoid
The defect of the otch between frequently calling and switch and issue target according to the different of issue target, therefore,
The flow of digital product issue is simplified using the scheme of the embodiment of the present invention, and then improves digital product
Efficiency for issuing.
Hereinafter, in conjunction with the embodiments two describe in detail the embodiment of the present invention digital product dissemination method reality
Existing process.
As shown in Fig. 2 the digital product dissemination method of the embodiment of the present invention two includes:
Step 21, the configuration information that issue target is set.
As shown in table 1, in embodiments of the present invention, issue target configuration information may include issue Target id,
System coding, sending method etc..
For the information in upper table 1, when newly-increased issue target, it is necessary to increase the newly-increased issue target
System coding.Product in upper table pushes mode, including FTP/ it is shared/WEBSERVICE/HTTP/ ends arrive
End etc. is various.Product according to described in the table pushes mode, when digital product is pushed to the issue target
Will be by the way of described in this table.
The identification information of step 22, the issue target of acquisition digital product resource to be sent.
By reading table 1, the identification information of issue target is obtained.
Step 23, the issue corresponding with the issue target of the identification information determination according to the issue target
Content information.
In this step, identification information that can be first according to the issue target determines that content issues template,
The content issue template includes issuing content options information.
It is assumed that needed for the identification information according to the issue target determined in step 22 determines the issue target
Digital product is books.So, for books, the content for issuing content options is generally divided into metadata
(attribute such as title, book number, price, author), big field information (sequence, foreword, postscript), annex letter
Breath (front cover, pdf document, EPUB files etc.) and chapters and sections information.Issue content choosing according to selection
Item information, will include corresponding with these issue content options information when digital product is pushed to issue target
Content.
Then, template is issued according to the content and determines the corresponding issue content options letter of the issue target
Breath.
As shown in Figure 3 and Figure 4, the numeral that can be received in the interface selection issue target shown in Fig. 3 first
Product category.Wherein, the digital product by issue target with can not specified, it is also possible to according to actual needs for
Issue goal-setting.Then, selection issue content options information is determined under the interface shown in Fig. 4.
Finally, according to the hair of the corresponding issue content options information generation issue target of the issue target
Cloth content information, the issue content information storage is in XML file.
For example, according to selection in fig. 4, generating XML file section as shown below.
Additionally, in order that must generate XML file more meet issue target demand, in this embodiment also
XML file can be entered row format conversion.
Step 24, the corresponding digital product resource of the acquisition issue content information.
In embodiments of the present invention, can be set has Numerical Resources Database, for storing each digital product resource.Cause
This, can search relative with the information according to the issue content information obtained in step 23 in Numerical Resources Database
The digital product resource answered.
If batch issue digital product, then can be by by obtaining multiple digital product resources in Numerical Resources Database
And the plurality of resource is compressed generation resource bag.For convenience find depositing for each digital product resource
Storage space is put, and can be wherein stored with the index file each using index.xml as index file in compression
The information such as the storage location of individual digital product resource.
Step 25, the digital product resource is encrypted.
In this step, using public key encryption digital product resource, the digital product resource after being encrypted.
Then private key is individually sent to issue target.
Step 26, send the digital product resource to the issue target.
Specifically, in this step, the digital product resource after the encryption is stored in contents directory,
And file directory (msg is arrived into the corresponding circular document of the digital product resource (msg empty files) storage
Catalogue) in.Wherein, the digital product resource after the entitled encryption of the msg files is relative to content mesh
The relative pathname of record.Msg catalogues are constantly scanned, once discovery has new msg files, Bian Huiqi
Moving-wire journey is processed, while msg files are put into treatment thread (process) catalogue.Then, locate
Reason thread reads the file directory, the filename of the circular document is obtained, further according to the circular document
Filename determine the relative pathname of the digital product resource after the encryption, and then according to the relative road
Footpath name and the contents directory obtain the digital product resource after the encryption.Finally, according to the issue mesh
Mark corresponding sending method and send the digital product resource after the encryption to the issue target.
As the issue target of receiving terminal receive encryption after digital product resource after, according to configuration issue
Path in target environment, will receive file and is placed under destination path.It is entered according to the private key for obtaining simultaneously
Row decryption, is then decompressed and can obtain digital product resource bag again.
As seen from the above, in embodiments of the present invention after corresponding digital product resource is obtained, you can
The digital product resource is sent to the issue target, is needed when digital product resource is sent so as to avoid
The defect of the otch between frequently calling and switch and issue target according to the different of issue target, therefore,
The flow of digital product issue is simplified using the scheme of the embodiment of the present invention, and then improves digital product
Efficiency for issuing.
As shown in figure 5, the digital product distributing device of the embodiment of the present invention three, including:
Information acquisition unit 31, the identification information for obtaining issue target;Determining unit 32, for root
Determine issue content information corresponding with the issue target according to the identification information of the issue target;Resource is obtained
Unit 33 is taken, for obtaining the corresponding digital product resource of the issue content information;Transmitting element 34,
For sending the digital product resource to the issue target.
Wherein, the determining unit 32 includes:First determining module, for according to the issue target
Identification information determines that content issues template, includes issuing content options information in content issue template;
Second determining module, the corresponding issue content of the issue target is determined for issuing template according to the content
Option information;Generation module, for according to the corresponding issue content options information generation institute of the issue target
State the issue content information of issue target.
In order to more meet the demand of issue target, the determining unit 32 also includes:Modular converter, is used for
The expandable mark language XML file is entered into row format conversion.
Additionally, more resources are transmitted for convenience, as shown in fig. 6, described device may also include:Compression
Unit 35, for the digital product resource to be organized into resource bag, and indexes for the resource bag is generated
File.In order to further improve the security of transmission, described device may also include:Ciphering unit 36, uses
It is encrypted in the digital product resource.
Wherein, the transmitting element 34 includes:Processing module, for by the digital product after the encryption
Resource is stored in contents directory, and the corresponding circular document storage of the digital product resource is arrived into file mesh
In record;Read module, for reading the file directory, obtains the filename of the circular document;Obtain
Module, for determining the relative of the digital product resource after the encryption according to the filename of the circular document
Pathname, and the digital product money after the encryption is obtained according to the relative pathname and the contents directory
Source;Sending module, for sending institute to the issue target according to the corresponding sending method of the issue target
State the digital product resource after encryption.
Again as shown in fig. 6, in order to further improve efficiency of transmission, described device also includes:
Setting unit 37, the configuration information for setting the issue target, wherein the issue target
Configuration information includes the identification information and the corresponding sending method of the issue target of the issue target.
The operation principle of device of the present invention can refer to the description of preceding method embodiment.
As seen from the above, in embodiments of the present invention after corresponding digital product resource is obtained, you can
The digital product resource is sent to the issue target, is needed when digital product resource is sent so as to avoid
The defect of the otch between frequently calling and switch and issue target according to the different of issue target, therefore,
The flow of digital product issue is simplified using the scheme of the embodiment of the present invention, and then improves digital product
Efficiency for issuing.
The above is the preferred embodiment of the present invention, it is noted that for the common skill of the art
For art personnel, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made,
These improvements and modifications also should be regarded as protection scope of the present invention.