C# Class Akamai.NetStorage.NetStorage

The Netstorage class is the preferred interface for calling libraries indending to leverage the Netstorage API. All of the available actions are innumerated in this library and are responsible for the correct business logic to assemble the request to the API. Some early safetys are added in this library to limit errors. TODO: Add "LIST" support for ObjectStore TODO: Detect FileStore v. ObjectStore TODO: Extract xml response from various requests into standard object representation Author: [email protected] (Colin Bendell)
显示文件 Open project: vimond/NetStorageKit-C-Sharp Class Usage Examples

Public Methods

Method Description
DU ( string path, string format = "xml" ) : Stream
Delete ( string path ) : bool
Dir ( string path, string format = "xml" ) : Stream
Download ( string path ) : Stream
MTime ( string path, System.DateTime mTime = null ) : bool
MkDir ( string path ) : bool
NetStorage ( string hostname, string username, string key, bool useSSL = false ) : System
QuickDelete ( string path ) : bool
Rename ( string path, string original ) : bool
RmDir ( string path ) : bool
Stat ( string path, string format = "xml" ) : Stream
Symlink ( string path, string target ) : bool
Upload ( string path, FileInfo srcFile, bool indexZip = null ) : bool
Upload ( string path, Stream uploadFileStream, System.DateTime mTime = null, long size = null, byte md5Checksum = null, byte sha1Checksum = null, byte sha256Checksum = null, bool indexZip = null ) : bool

Private Methods

Method Description
execute ( string method, string path, Akamai.Netstorage.APIParams acsParams, Stream uploadStream = null ) : Stream
getNetStorageUri ( string path ) : Uri

Method Details

DU() public method

public DU ( string path, string format = "xml" ) : Stream
path string
format string
return Stream

Delete() public method

public Delete ( string path ) : bool
path string
return bool

Dir() public method

public Dir ( string path, string format = "xml" ) : Stream
path string
format string
return Stream

Download() public method

public Download ( string path ) : Stream
path string
return Stream

MTime() public method

public MTime ( string path, System.DateTime mTime = null ) : bool
path string
mTime System.DateTime
return bool

MkDir() public method

public MkDir ( string path ) : bool
path string
return bool

NetStorage() public method

public NetStorage ( string hostname, string username, string key, bool useSSL = false ) : System
hostname string
username string
key string
useSSL bool
return System

QuickDelete() public method

public QuickDelete ( string path ) : bool
path string
return bool

Rename() public method

public Rename ( string path, string original ) : bool
path string
original string
return bool

RmDir() public method

public RmDir ( string path ) : bool
path string
return bool

Stat() public method

public Stat ( string path, string format = "xml" ) : Stream
path string
format string
return Stream

Symlink() public method

public Symlink ( string path, string target ) : bool
path string
target string
return bool

Upload() public method

public Upload ( string path, FileInfo srcFile, bool indexZip = null ) : bool
path string
srcFile System.IO.FileInfo
indexZip bool
return bool

Upload() public method

public Upload ( string path, Stream uploadFileStream, System.DateTime mTime = null, long size = null, byte md5Checksum = null, byte sha1Checksum = null, byte sha256Checksum = null, bool indexZip = null ) : bool
path string
uploadFileStream Stream
mTime System.DateTime
size long
md5Checksum byte
sha1Checksum byte
sha256Checksum byte
indexZip bool
return bool