Rackspace CloudFiles API
Public Member Functions | Properties | List of all members
Rackspace.Cloudfiles.CF_Object Class Reference

CF_Object object used to represent a Cloud Files Object More...

Inheritance diagram for Rackspace.Cloudfiles.CF_Object:
Rackspace.Cloudfiles.StorageObject

Public Member Functions

 CF_Object (Connection conn, string container_name, string object_name)
 Initializes a new instance of the Rackspace.Cloudfiles.CF_Object class.
 
 CF_Object (Connection conn, Client client, string container_name, string object_name)
 Initializes a new instance of the Rackspace.Cloudfiles.CF_Object class.
 
 CF_Object (Connection conn, Container container, Client client, string object_name)
 Initializes a new instance of the Rackspace.Cloudfiles.CF_Object class.
 
void SaveToFile (string path)
 Saves to file.
 
void SaveToFile (string path, bool verify_etag)
 Saves to file.
 
void WriteFromFile (string path)
 Writes from file.
 
void WriteFromFile (string path, Dictionary< string, string > headers)
 Writes from file.
 
void Write (Stream data)
 Write the specified data.
 
void Write (Stream data, Dictionary< string, string > headers)
 Writes an object stream.
 
Stream Read ()
 Reads from the object.
 
void SyncHeaders (Dictionary< string, string > headers)
 
void SyncMetadata (Dictionary< string, string > metadata)
 Syncs Metadata
 

Properties

int Retries [get, set]
 Gets or sets the retries.
 
int ChunkSize [get, set]
 Gets or sets the size of the chunk.
 
string Name [get]
 Gets the Object name.
 
string Etag [get]
 Gets the etag.
 
string ContentType [get]
 Gets the Content type.
 
long ContentLength [get]
 Gets the content length.
 
Dictionary< string, string > Headers [get]
 Gets the headers.
 
Dictionary< string, string > Metadata [get]
 Gets the metadata.
 
Uri StorageUrl [get]
 Gets the storage URL.
 
Uri CdnManagementUrl [get]
 Gets the cdn management URL.
 
- Properties inherited from Rackspace.Cloudfiles.StorageObject
int Retries [get, set]
 
int ChunkSize [get, set]
 
string Name [get]
 
string Etag [get]
 
string ContentType [get]
 
long ContentLength [get]
 
Dictionary< string, string > Headers [get]
 
Dictionary< string, string > Metadata [get]
 
Uri StorageUrl [get]
 

Detailed Description

CF_Object object used to represent a Cloud Files Object

Constructor & Destructor Documentation

Rackspace.Cloudfiles.CF_Object.CF_Object ( Connection  conn,
string  container_name,
string  object_name 
)

Initializes a new instance of the Rackspace.Cloudfiles.CF_Object class.

Parameters
connConn.
container_nameContainer_name.
object_nameObject_name.
Rackspace.Cloudfiles.CF_Object.CF_Object ( Connection  conn,
Client  client,
string  container_name,
string  object_name 
)

Initializes a new instance of the Rackspace.Cloudfiles.CF_Object class.

Parameters
connConn.
clientClient.
container_nameContainer_name.
object_nameObject_name.
Rackspace.Cloudfiles.CF_Object.CF_Object ( Connection  conn,
Container  container,
Client  client,
string  object_name 
)

Initializes a new instance of the Rackspace.Cloudfiles.CF_Object class.

Parameters
connConn.
containerContainer.
clientClient.
object_nameObject_name.

Member Function Documentation

Stream Rackspace.Cloudfiles.CF_Object.Read ( )

Reads from the object.

Returns
A Stream

Implements Rackspace.Cloudfiles.StorageObject.

void Rackspace.Cloudfiles.CF_Object.SaveToFile ( string  path)

Saves to file.

Parameters
pathPath.

Implements Rackspace.Cloudfiles.StorageObject.

void Rackspace.Cloudfiles.CF_Object.SaveToFile ( string  path,
bool  verify_etag 
)

Saves to file.

Parameters
pathA System.String
verify_etagA System.Boolean

Implements Rackspace.Cloudfiles.StorageObject.

void Rackspace.Cloudfiles.CF_Object.SyncMetadata ( Dictionary< string, string >  metadata)

Syncs Metadata

Parameters
metadataA Dictionary<System.String, System.String>

Implements Rackspace.Cloudfiles.StorageObject.

void Rackspace.Cloudfiles.CF_Object.Write ( Stream  data)

Write the specified data.

Parameters
dataData.

Implements Rackspace.Cloudfiles.StorageObject.

void Rackspace.Cloudfiles.CF_Object.Write ( Stream  data,
Dictionary< string, string >  headers 
)

Writes an object stream.

Parameters
dataA Stream
headersA Dictionary<System.String, System.String>

Implements Rackspace.Cloudfiles.StorageObject.

void Rackspace.Cloudfiles.CF_Object.WriteFromFile ( string  path)

Writes from file.

Parameters
pathPath.

Implements Rackspace.Cloudfiles.StorageObject.

void Rackspace.Cloudfiles.CF_Object.WriteFromFile ( string  path,
Dictionary< string, string >  headers 
)

Writes from file.

Parameters
pathPath.
headersHeaders.

Implements Rackspace.Cloudfiles.StorageObject.

Property Documentation

Uri Rackspace.Cloudfiles.CF_Object.CdnManagementUrl
get

Gets the cdn management URL.

The cdn management URL.

int Rackspace.Cloudfiles.CF_Object.ChunkSize
getset

Gets or sets the size of the chunk.

The size of the chunk.

long Rackspace.Cloudfiles.CF_Object.ContentLength
get

Gets the content length.

The length of the content.

string Rackspace.Cloudfiles.CF_Object.ContentType
get

Gets the Content type.

The type of the content.

string Rackspace.Cloudfiles.CF_Object.Etag
get

Gets the etag.

The etag.

Dictionary<string, string> Rackspace.Cloudfiles.CF_Object.Headers
get

Gets the headers.

The headers.

Dictionary<string, string> Rackspace.Cloudfiles.CF_Object.Metadata
get

Gets the metadata.

The metadata.

string Rackspace.Cloudfiles.CF_Object.Name
get

Gets the Object name.

The name.

int Rackspace.Cloudfiles.CF_Object.Retries
getset

Gets or sets the retries.

The retries.

Uri Rackspace.Cloudfiles.CF_Object.StorageUrl
get

Gets the storage URL.

The storage URL.


The documentation for this class was generated from the following file: