com.rackspacecloud.client.cloudfiles
Class FilesConstants

java.lang.Object
  extended by com.rackspacecloud.client.cloudfiles.FilesConstants
Direct Known Subclasses:
FilesConstantsExt

public class FilesConstants
extends java.lang.Object


Field Summary
static int CONTAINER_NAME_LENGTH
           
static java.lang.String E_TAG
          HTTP Header used by Cloud Files for the MD5Sum of the object being created in a Container
static java.lang.String LIST_CONTAINER_LIMIT_OBJ_COUNT_QUERY
           
static java.lang.String LIST_CONTAINER_NAME_QUERY
          These constants are used for performing queries on the content of a container
static java.lang.String LIST_CONTAINER_START_OFFSET_QUERY
           
static java.lang.String MANIFEST_HEADER
          HTTP Header used for Object Manifest
static int METADATA_NAME_LENGTH
           
static int METADATA_VALUE_LENGTH
           
static java.util.Properties MIMETYPES
           
static int OBJECT_NAME_LENGTH
           
static java.lang.String USER_AGENT
           
static java.lang.String X_ACCOUNT_BYTES_USED
          HTTP header token that is returned on a HEAD request against an Account.
static java.lang.String X_ACCOUNT_CONTAINER_COUNT
          HTTP header token that is returned on a HEAD request against an Account.
static java.lang.String X_AUTH_TOKEN
          HTTP header token that identifies the Storage Token after a successful user login to Cloud Files
static java.lang.String X_CONTAINER_BYTES_USED
          HTTP header token that is returned on a HEAD request against a Container.
static java.lang.String X_CONTAINER_OBJECT_COUNT
          HTTP header token that is returned on a HEAD request against a Container.
static java.lang.String X_COPY_FROM
           
static java.lang.String X_OBJECT_META
          Prefix Cloud Files expects on all Meta data headers on Objects
static java.lang.String X_PURGE_EMAIL
           
static java.lang.String X_STORAGE_PASS_DEFAULT
          HTTP header token that identifies the password to Cloud Files
static java.lang.String X_STORAGE_URL
          HTTP header token that identifies the Storage URL after a successful user login to Cloud Files
static java.lang.String X_STORAGE_USER_DEFAULT
          HTTP Header token that identifies the username to Cloud Files
 
Constructor Summary
FilesConstants()
           
 
Method Summary
static java.lang.String getMimetype(java.lang.String fileExt)
          Convenience method to get a MIME Type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_AGENT

public static final java.lang.String USER_AGENT
See Also:
Constant Field Values

X_STORAGE_USER_DEFAULT

public static final java.lang.String X_STORAGE_USER_DEFAULT
HTTP Header token that identifies the username to Cloud Files

See Also:
Constant Field Values

X_STORAGE_PASS_DEFAULT

public static final java.lang.String X_STORAGE_PASS_DEFAULT
HTTP header token that identifies the password to Cloud Files

See Also:
Constant Field Values

X_STORAGE_URL

public static final java.lang.String X_STORAGE_URL
HTTP header token that identifies the Storage URL after a successful user login to Cloud Files

See Also:
Constant Field Values

X_AUTH_TOKEN

public static final java.lang.String X_AUTH_TOKEN
HTTP header token that identifies the Storage Token after a successful user login to Cloud Files

See Also:
Constant Field Values

X_CONTAINER_OBJECT_COUNT

public static final java.lang.String X_CONTAINER_OBJECT_COUNT
HTTP header token that is returned on a HEAD request against a Container. The value of this header is the number of Objects in the Container

See Also:
Constant Field Values

X_CONTAINER_BYTES_USED

public static final java.lang.String X_CONTAINER_BYTES_USED
HTTP header token that is returned on a HEAD request against a Container. The value of this header is the number of Objects in the Container

See Also:
Constant Field Values

X_ACCOUNT_CONTAINER_COUNT

public static final java.lang.String X_ACCOUNT_CONTAINER_COUNT
HTTP header token that is returned on a HEAD request against an Account. The value of this header is the number of Containers in the Account

See Also:
Constant Field Values

X_ACCOUNT_BYTES_USED

public static final java.lang.String X_ACCOUNT_BYTES_USED
HTTP header token that is returned on a HEAD request against an Account. The value of this header is the total size of the Objects in the Account

See Also:
Constant Field Values

X_COPY_FROM

public static final java.lang.String X_COPY_FROM
See Also:
Constant Field Values

E_TAG

public static final java.lang.String E_TAG
HTTP Header used by Cloud Files for the MD5Sum of the object being created in a Container

See Also:
Constant Field Values

MANIFEST_HEADER

public static final java.lang.String MANIFEST_HEADER
HTTP Header used for Object Manifest

See Also:
Constant Field Values

LIST_CONTAINER_NAME_QUERY

public static final java.lang.String LIST_CONTAINER_NAME_QUERY
These constants are used for performing queries on the content of a container

See Also:
Constant Field Values

LIST_CONTAINER_LIMIT_OBJ_COUNT_QUERY

public static final java.lang.String LIST_CONTAINER_LIMIT_OBJ_COUNT_QUERY
See Also:
Constant Field Values

LIST_CONTAINER_START_OFFSET_QUERY

public static final java.lang.String LIST_CONTAINER_START_OFFSET_QUERY
See Also:
Constant Field Values

CONTAINER_NAME_LENGTH

public static final int CONTAINER_NAME_LENGTH
See Also:
Constant Field Values

OBJECT_NAME_LENGTH

public static final int OBJECT_NAME_LENGTH
See Also:
Constant Field Values

METADATA_NAME_LENGTH

public static final int METADATA_NAME_LENGTH
See Also:
Constant Field Values

METADATA_VALUE_LENGTH

public static final int METADATA_VALUE_LENGTH
See Also:
Constant Field Values

X_PURGE_EMAIL

public static final java.lang.String X_PURGE_EMAIL
See Also:
Constant Field Values

X_OBJECT_META

public static final java.lang.String X_OBJECT_META
Prefix Cloud Files expects on all Meta data headers on Objects

See Also:
Constant Field Values

MIMETYPES

public static java.util.Properties MIMETYPES
Constructor Detail

FilesConstants

public FilesConstants()
Method Detail

getMimetype

public static java.lang.String getMimetype(java.lang.String fileExt)
Convenience method to get a MIME Type. If none is found it will return "application/octet-stream"

Parameters:
fileExt -
Returns:
The suggested MIME type for the file extention.