C# Class NHibernate.Lob.External.Helper

ファイルを表示 Open project: sebmarkbage/calyptus.lob

Public Properties

Property Type Description
ALTERNATIVE_DATE_HEADER string
AMAZON_HEADER_PREFIX string
DEFAULT_SERVER string
METADATA_PREFIX string

Public Methods

Method Description
Host ( string bucket ) : string
addAuthHeader ( WebRequest request, string resource, string awsAccessKeyId, string awsSecretAccessKey ) : void

Add the appropriate Authorization header to the WebRequest

addHeaders ( WebRequest req, SortedList headers ) : void

Add the given headers to the WebRequest

addHeaders ( WebRequest req, SortedList headers, string prefix ) : void

Add the given headers to the WebRequest with a prefix before the keys.

addMetadataHeaders ( WebRequest req, SortedList metadata ) : void

Add the given metadata fields to the WebRequest.

currentTimeMillis ( ) : long
encode ( string awsSecretAccessKey, string canonicalString, bool urlEncode ) : string
getHttpDate ( ) : string
makeCanonicalString ( string resource, WebRequest request ) : string
makeCanonicalString ( string verb, string resource, SortedList headers, string expires ) : string
makeURL ( string server, string resource, bool isSecure ) : string

Create a new URL object for the given resource.

parseDate ( string dateStr ) : System.DateTime
slurpInputStream ( Stream stream ) : string

Method Details

Host() public static method

public static Host ( string bucket ) : string
bucket string
return string

addAuthHeader() public static method

Add the appropriate Authorization header to the WebRequest
public static addAuthHeader ( WebRequest request, string resource, string awsAccessKeyId, string awsSecretAccessKey ) : void
request System.Net.WebRequest Request to add the header to
resource string The resource name (bucketName + "/" + key)
awsAccessKeyId string
awsSecretAccessKey string
return void

addHeaders() public static method

Add the given headers to the WebRequest
public static addHeaders ( WebRequest req, SortedList headers ) : void
req System.Net.WebRequest Web request to add the headers to.
headers System.Collections.SortedList A map of string to string representing the HTTP headers to pass (can be null)
return void

addHeaders() public static method

Add the given headers to the WebRequest with a prefix before the keys.
public static addHeaders ( WebRequest req, SortedList headers, string prefix ) : void
req System.Net.WebRequest WebRequest to add the headers to.
headers System.Collections.SortedList Headers to add.
prefix string String to prepend to each before ebfore adding it to the WebRequest
return void

addMetadataHeaders() public static method

Add the given metadata fields to the WebRequest.
public static addMetadataHeaders ( WebRequest req, SortedList metadata ) : void
req System.Net.WebRequest Web request to add the headers to.
metadata System.Collections.SortedList A map of string to string representing the S3 metadata for this resource.
return void

currentTimeMillis() public static method

public static currentTimeMillis ( ) : long
return long

encode() public static method

public static encode ( string awsSecretAccessKey, string canonicalString, bool urlEncode ) : string
awsSecretAccessKey string
canonicalString string
urlEncode bool
return string

getHttpDate() public static method

public static getHttpDate ( ) : string
return string

makeCanonicalString() public static method

public static makeCanonicalString ( string resource, WebRequest request ) : string
resource string
request System.Net.WebRequest
return string

makeCanonicalString() public static method

public static makeCanonicalString ( string verb, string resource, SortedList headers, string expires ) : string
verb string
resource string
headers System.Collections.SortedList
expires string
return string

makeURL() public static method

Create a new URL object for the given resource.
public static makeURL ( string server, string resource, bool isSecure ) : string
server string
resource string The resource name (bucketName + "/" + key)
isSecure bool
return string

parseDate() public static method

public static parseDate ( string dateStr ) : System.DateTime
dateStr string
return System.DateTime

slurpInputStream() public static method

public static slurpInputStream ( Stream stream ) : string
stream Stream
return string

Property Details

ALTERNATIVE_DATE_HEADER public_oe static_oe property

public static string ALTERNATIVE_DATE_HEADER
return string

AMAZON_HEADER_PREFIX public_oe static_oe property

public static string AMAZON_HEADER_PREFIX
return string

DEFAULT_SERVER public_oe static_oe property

public static string DEFAULT_SERVER
return string

METADATA_PREFIX public_oe static_oe property

public static string METADATA_PREFIX
return string