CN102497436A - Networked file storing method and system based on HTTP (Hyper Text Transport Protocol) - Google Patents

Networked file storing method and system based on HTTP (Hyper Text Transport Protocol) Download PDF

Info

Publication number
CN102497436A
CN102497436A CN2011104246755A CN201110424675A CN102497436A CN 102497436 A CN102497436 A CN 102497436A CN 2011104246755 A CN2011104246755 A CN 2011104246755A CN 201110424675 A CN201110424675 A CN 201110424675A CN 102497436 A CN102497436 A CN 102497436A
Authority
CN
China
Prior art keywords
file
storage
client
configuration
service
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.)
Granted
Application number
CN2011104246755A
Other languages
Chinese (zh)
Other versions
CN102497436B (en
Inventor
陈兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Founder International Co Ltd
Original Assignee
Founder International 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 Founder International Co Ltd filed Critical Founder International Co Ltd
Priority to CN201110424675.5A priority Critical patent/CN102497436B/en
Publication of CN102497436A publication Critical patent/CN102497436A/en
Application granted granted Critical
Publication of CN102497436B publication Critical patent/CN102497436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a networked file storing method and system based on an HTTP (Hyper Text Transport Protocol), belonging to the technical field of network storage. The networked file storing method comprises the following steps that: a configuration file is defined according to a business requirement, and the configuration information of file storage in the business requirement is defined in the configuration file; then an entrance for a client to receive the file is packaged through js; the configuration file is parsed; the command of the client is received; and the storing mode and position of the file are judged through the configuration information corresponding to the parsed business type according to the command of the client, so as to carry out storage or download processing. Therefore, the invention provides an efficient, low-cost and cross-platform technical scheme for the storage of the networked file based on the HTTP.

Description

A kind of network file storage means and system based on http protocol
Technical field
The invention belongs to the Network storage technology field, be specifically related to a kind of network file storage means and system based on http protocol.
Background technology
At present in the process of doing each web project; Capital more or less runs into some business demands of the storage and the management of file; When running into such technical problem; The method that each project team deals with problems has nothing in common with each other, and some is to have adopted that simple technology has realized requirement of client simply, some is to have adopted the technology of more complicated to realize requirement of client, no matter be simple realization or complicated the realization; In each project, all to spend the human and material resources of considerable part, increase the cost of project greatly.
In the prior art, a lot of methods only relate to single file uploaded download, but this technical problem of storage administration of network file are not proposed corresponding solution.Therefore, need to a kind of method and system of the problems referred to above exploitation about network file storage and management.
Summary of the invention
To the defective that exists in the prior art, the purpose of this invention is to provide a kind of efficient, low-cost, cross-platform network file storage means and system based on http protocol.
For reaching above purpose, the technical scheme that the present invention adopts is: a kind of network file storage means based on http protocol may further comprise the steps:
(1) according to business demand definition configuration file, definition business demand file stored configuration information in configuration file;
(2) encapsulate out the inlet of the reception file of client through javascript;
(3) resolve configuration file;
(4) receive the client instruction, said instruction comprises the instruction of client upload file or the instruction of client-requested file in download;
(5) according to the instruction of client,, judge the mode and the position of file storage, store or download process through the corresponding configuration information of type of service of resolving.
Further, the configuration information described in the step (1) comprises the type of service and the storage mode of file storage;
The corresponding unique numbering of described type of service is a traffic ID, and traffic ID is unique, and different business types has different service ID.
The storage mode of said file comprises file storage in file server, perhaps with file storage in disk array.
Further, it is corresponding to encapsulate out the type of service that defines in inlet and the corresponding configuration file of reception file of client through javascript in the step (2).
Further, in the step (3), the method for resolving configuration file is:
1) reads configuration file, with the content object instantiation of configuration file;
2) according to parameter-type of service of transmitting, search the attribute of this type of service, judge the memory location and the mode of file.
Further, step 2) in, the attribute of said type of service comprises the ID of type of service, storage mode, if storage mode is a file server, the attribute of type of service also comprises the IP address of FTP, the username and password of login FTP.
Further; In the step (5), file is being stored or during download process, the storage administration of uploading and downloading closely with file links together; Two things have been accomplished in an action uploading; Both uploaded file and also file has been managed, the web server directly obtains the file wanted to the web server from file server during download, downloads to client again.
Further, in the step (5), said down operation downloads to client through byte stream mode.
A kind of network file storage system based on http protocol comprises with lower device:
Client, the web server that is connected with client, the file server and the disk array that are connected with the web server;
Wherein, Be provided with configuration file definition device and connected data analysis device in the described web server; Described configuration file definition device is used for business demand is defined; Definition business demand file stored configuration information in configuration file, described configuration information comprises the type of service and the storage mode of file storage;
The configuration information data of the file storage that described data analysis device is used for configuration file is defined are resolved; Configuration information according to file storage is controlled the mode of file storage; The storage mode of said file comprises file storage in file server, perhaps with file storage in disk array.
Further; Be provided with the javascript packaging system in the described web server; Be used for encapsulating out the inlet of the reception file of client through javascript; And corresponding with the type of service in the corresponding configuration definition, described javascript packaging system is connected with configuration file definition device and data analysis device.
Effect of the present invention is, the invention provides the technical solution that a kind of efficient, low-cost, cross-platform network file based on http protocol is stored, and adopts method and system of the present invention, has following technique effect:
1, the developer need not that the technology of uploading and downloading to file involved energy, only need according to the technical manual configuration, can realize that the storage of service end file and management only need in configuration, define, need not exploitation, quantized exploitation.
2, in the difference of operating system, only supported windows operating system in the past, the present invention supports windows and linux environmental level simultaneously.
3, the developer need not to be concerned about upload or the position of file in download at which, the allocation engine in the invention has solved the whereabouts of file.
4, from administrative staff, the control to whole project greatly reduces efficient and risk in the exploitation.
Description of drawings
Fig. 1 is the structure chart of a kind of network file storage system based on http protocol according to the invention;
Fig. 2 is the flow chart of a kind of network file storage means based on http protocol according to the invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is further described.
As shown in Figure 1, a kind of network file storage system based on http protocol comprises with lower device:
Client 11, the web server 12 that is connected with client 11, the file server 13 and the disk array 14 that are connected with web server 12.
Wherein, Be provided with configuration file definition device 15 and connected data analysis device 16 in the described web server 12; Described configuration file definition device 15 is used for business demand is defined; Definition business demand file stored configuration information in configuration file, described configuration information comprises the type of service and the storage mode of file storage.
The configuration information data of the file storage that described data analysis device 16 is used for configuration file is defined are resolved; Configuration information according to file storage is controlled the mode of file storage; The storage mode of said file comprises file storage in file server, perhaps with file storage in disk array.
In the present embodiment, be provided with js (javascript) packaging system 17 in the described web server 12, be used for encapsulating out the inlet of the reception file of client through js, and corresponding with the type of service in the corresponding configuration definition.Described js packaging system 17 is connected with configuration file definition device 15 and data analysis device 16.
As shown in Figure 2, a kind of network file storage means based on http protocol may further comprise the steps:
Step 21: (1) defines business demand file stored configuration information according to business demand definition configuration file in configuration file, described configuration information comprises the type of service and the storage mode of file storage; The corresponding unique numbering of described type of service, the storage mode of said file comprise file storage in file server, perhaps with file storage in disk array.The key of configuration is that the numbering of type of service is a traffic ID, and traffic ID is unique, and different business types has different service ID.
In the present embodiment, the form of said configuration definition file is following:
Wherein, the modelid label mainly defines is that the numbering of business demand is a traffic ID, and this traffic ID must be unique in configuration file; Can not repeat; Localhost represent the web server the path, if file need store on the file server, then can upload on this document server through the mode of ftp; If need not to deposit, can not dispose this content of FtpServerIp.
Step 22: (2) encapsulate out the inlet of reception (upload or the download) file of client through js (javascript), and with corresponding configuration file in the type of service that defines corresponding;
The js encapsulation is to download publicization of having done certain methods to uploading, and the developer introduces this js file, just can call public method and attribute.
Step 23: configuration file is resolved in (3);
In this enforcement row, the method for resolving configuration file is:
1) reads configuration file, with the content object instantiation of configuration file;
2) according to parameter-type of service of transmitting; Search the attribute of this type of service; Judge the memory location and the mode of file; The attribute of said type of service comprises ID, the storage mode of type of service, if storage mode is a file server, the attribute of type of service also comprises the IP address of FTP, the username and password of login FTP.
Step 24: (4) file server or web server receive the instruction of client upload file or the instruction of client-requested file in download;
Step 25,26,27: (5) through the corresponding configuration information of type of service of resolving, are judged the mode and the position of file storage according to the instruction of client, store or download process.
In the present embodiment; When file being stored or downloading on the web server; The storage administration of uploading and downloading closely with file links together, and has accomplished two things in an action of uploading, and has both uploaded file and also file has been managed; The web server can be directly obtains the file wanted to the web server from file server during download, downloads to client again.Described down operation is to download to client through byte stream mode.
According to above-mentioned enforcement row, can find out that remarkable result of the present invention is:
1) network file storage and management are combined effectively, uploading and download well of file combines with the storage of file, and web uses and the file management combine well;
2) file upload download, the developer only need with upload file number, type, size when calling the js method as the relevant parameters transmission, number, type, size that can the unique control upload file, the exploitation configuration is simple and convenient understandable;
3) because method and system of the present invention by the java language development, itself are just supported cross-platformly, can therefore need not to consider the difference of operating system, support the deployment of several operation systems through revising the needs that configuration file adapt to platform.
Method and system of the present invention make the user upload the management of just having accomplished between the download file in client through network, and the method has reduced a large amount of manual operations, and when management document, reach conveniently purpose.For example, behind the execution mode in employing the foregoing description, can open the page, only need input file catalogue and file name, just can obtain the file that needs fast through the IE client.
Method and system of the present invention are not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.

Claims (10)

1. network file storage means based on http protocol may further comprise the steps:
(1) according to business demand definition configuration file, definition business demand file stored configuration information in configuration file;
(2) encapsulate out the inlet of the reception file of client through javascript;
(3) resolve configuration file;
(4) receive the client instruction, said instruction comprises the instruction of client upload file or the instruction of client-requested file in download;
(5) according to the instruction of client,, judge the mode and the position of file storage, store or download process through the corresponding configuration information of type of service of resolving.
2. a kind of network file storage means based on http protocol as claimed in claim 1, it is characterized in that: the configuration information described in the step (1) comprises the type of service and the storage mode of file storage.
3. a kind of network file storage means based on http protocol as claimed in claim 2 is characterized in that: the corresponding unique numbering of described type of service is a traffic ID, and different business types has different service ID;
The storage mode of said file comprises file storage in file server, perhaps with file storage in disk array.
4. a kind of network file storage means based on http protocol as claimed in claim 3 is characterized in that: it is corresponding to encapsulate out the type of service that defines in inlet and the corresponding configuration file of reception file of client through javascript in the step (2).
5. a kind of network file storage means based on http protocol as claimed in claim 1 is characterized in that, in the step (3), the method for resolving configuration file is:
1) reads configuration file, with the content object instantiation of configuration file;
2) according to parameter-type of service of transmitting, search the attribute of this type of service, judge the memory location and the mode of file.
6. a kind of network file storage means as claimed in claim 5 based on http protocol; It is characterized in that: step 2) in; The attribute of said type of service comprises ID, the storage mode of type of service; If storage mode is a file server, the attribute of type of service also comprises the IP address of FTP, the username and password of login FTP.
7. like the arbitrary described a kind of network file storage means of claim 1 to 6 based on http protocol; It is characterized in that: in the step (5), file is being stored or during download process, the storage administration of uploading and downloading closely with file links together; Two things have been accomplished in an action uploading; Both uploaded file and also file has been managed, the web server directly obtains the file wanted to the web server from file server during download, downloads to client again.
8. a kind of network file storage and management method based on http protocol as claimed in claim 7, it is characterized in that: in the step (5), said down operation downloads to client through byte stream mode.
9. network file storage system based on http protocol comprises with lower device:
Client, the web server that is connected with client, the file server and the disk array that are connected with the web server;
Wherein, Be provided with configuration file definition device and connected data analysis device in the described web server; Described configuration file definition device is used for business demand is defined; Definition business demand file stored configuration information in configuration file, described configuration information comprises the type of service and the storage mode of file storage;
The configuration information data of the file storage that described data analysis device is used for configuration file is defined are resolved; Configuration information according to file storage is controlled the mode of file storage; The storage mode of said file comprises file storage in file server, perhaps with file storage in disk array.
10. a kind of network file storage system as claimed in claim 9 based on http protocol; It is characterized in that: be provided with the javascript packaging system in the described web server; Be used for encapsulating out the inlet of the reception file of client through javascript; And corresponding with the type of service in the corresponding configuration definition, described javascript packaging system is connected with configuration file definition device and data analysis device.
CN201110424675.5A 2011-12-16 2011-12-16 Networked file storing method and system based on HTTP (Hyper Text Transport Protocol) Active CN102497436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110424675.5A CN102497436B (en) 2011-12-16 2011-12-16 Networked file storing method and system based on HTTP (Hyper Text Transport Protocol)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110424675.5A CN102497436B (en) 2011-12-16 2011-12-16 Networked file storing method and system based on HTTP (Hyper Text Transport Protocol)

Publications (2)

Publication Number Publication Date
CN102497436A true CN102497436A (en) 2012-06-13
CN102497436B CN102497436B (en) 2015-03-18

Family

ID=46189221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110424675.5A Active CN102497436B (en) 2011-12-16 2011-12-16 Networked file storing method and system based on HTTP (Hyper Text Transport Protocol)

Country Status (1)

Country Link
CN (1) CN102497436B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248701A (en) * 2013-05-16 2013-08-14 北京京东尚科信息技术有限公司 Method, device and system for storing files
CN104426880A (en) * 2013-09-03 2015-03-18 中国银联股份有限公司 Network-based centralized automatic file collection and distribution device
CN106357683A (en) * 2016-10-27 2017-01-25 浙江广播电视集团 Secure uploading system and method for media file
CN107633069A (en) * 2017-09-22 2018-01-26 北京康爱营养科技股份有限公司 A kind of method of data synchronization of quickness and high efficiency
CN108614959A (en) * 2018-05-02 2018-10-02 山东浪潮通软信息科技有限公司 A kind of method of configurable software systems authorization control
CN110071857A (en) * 2019-04-18 2019-07-30 合肥泛米智能科技有限公司 A kind of method of smart home server and multiple terminals progress data exchange
CN112001157A (en) * 2020-08-26 2020-11-27 湖北盈帆数据技术有限公司 Online design method and device for webpage data form

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6240060B1 (en) * 1998-09-14 2001-05-29 Kabushiki Kaisha Toshiba Phase change optical recording medium
CN101072163A (en) * 2007-03-31 2007-11-14 腾讯科技(深圳)有限公司 Network file automatic dump method and system
CN101335763A (en) * 2007-06-28 2008-12-31 中兴通讯股份有限公司 Data educing and transmitting method in intelligent network system
CN101729602A (en) * 2009-12-11 2010-06-09 北京工业大学 Method for acquiring P2P (peer-to-peer) video system program information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6240060B1 (en) * 1998-09-14 2001-05-29 Kabushiki Kaisha Toshiba Phase change optical recording medium
CN101072163A (en) * 2007-03-31 2007-11-14 腾讯科技(深圳)有限公司 Network file automatic dump method and system
CN101335763A (en) * 2007-06-28 2008-12-31 中兴通讯股份有限公司 Data educing and transmitting method in intelligent network system
CN101729602A (en) * 2009-12-11 2010-06-09 北京工业大学 Method for acquiring P2P (peer-to-peer) video system program information

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248701A (en) * 2013-05-16 2013-08-14 北京京东尚科信息技术有限公司 Method, device and system for storing files
CN104426880A (en) * 2013-09-03 2015-03-18 中国银联股份有限公司 Network-based centralized automatic file collection and distribution device
CN106357683A (en) * 2016-10-27 2017-01-25 浙江广播电视集团 Secure uploading system and method for media file
CN106357683B (en) * 2016-10-27 2020-04-21 浙江广播电视集团 Media file safe uploading system and method
CN107633069A (en) * 2017-09-22 2018-01-26 北京康爱营养科技股份有限公司 A kind of method of data synchronization of quickness and high efficiency
CN108614959A (en) * 2018-05-02 2018-10-02 山东浪潮通软信息科技有限公司 A kind of method of configurable software systems authorization control
CN110071857A (en) * 2019-04-18 2019-07-30 合肥泛米智能科技有限公司 A kind of method of smart home server and multiple terminals progress data exchange
CN112001157A (en) * 2020-08-26 2020-11-27 湖北盈帆数据技术有限公司 Online design method and device for webpage data form

Also Published As

Publication number Publication date
CN102497436B (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN102497436B (en) Networked file storing method and system based on HTTP (Hyper Text Transport Protocol)
CN108769165B (en) Data processing method in Internet of things and Internet of things access system
CN101695032B (en) Unified web client, service configuration method and system thereof
CN104301436B (en) Content to be displayed push, subscription, update method and its corresponding device
CN105491039B (en) A kind of distributed software shared system
CN104012063A (en) Controller for flexible and extensible flow processing in software-defined networks
CN106453576B (en) A kind of exchange method, system and control centre based on mixing cloud platform
CN108073402A (en) Kafka clusters automatic deployment method and device based on linux system
CN106713423B (en) The processing method and processing device of distributed data in a kind of cloud access base site controller
US9871848B1 (en) Integration engine for communications between source and target applications
CN102355500A (en) Business pushing method and device
CN106657371A (en) Method and device for scheduling transmission node
CA2846581A1 (en) Data infrastructure for providing interconnectivity between platforms, devices and operating systems
CN102404616B (en) Method and system for pushing data cloud based on digital television network
GB2580421A (en) Electronic message translation management
CN103577180A (en) Data processing method and data processing device
US20140344467A1 (en) Loadable flexible protocol profiles
GB2580419A (en) Electronic message control
US11245567B2 (en) Electronic message adaptation
CN105827682A (en) Data uploading and downloading methods and devices thereof
CN101867484A (en) Method and system for upgrading equipment
CN102662652A (en) Method and equipment used for customizing personalized application
CN102845042A (en) System and method for aggregating bandwidth of multiple active physical interfaces on application layer
CN110719303B (en) Containerization NRF method and system
CN107749875B (en) Big data artificial intelligence analytic system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant