Property | Type | Description | |
---|---|---|---|
ALTERNATIVE_DATE_HEADER | string | ||
AMAZON_HEADER_PREFIX | string | ||
DEFAULT_SERVER | string | ||
METADATA_PREFIX | string |
Method | Description | |
---|---|---|
Host ( string bucket ) : string | ||
addAuthHeader ( |
Add the appropriate Authorization header to the WebRequest
|
|
addHeaders ( |
Add the given headers to the WebRequest
|
|
addHeaders ( |
Add the given headers to the WebRequest with a prefix before the keys.
|
|
addMetadataHeaders ( |
Add the given metadata fields to the WebRequest.
|
|
currentTimeMillis ( ) : long | ||
encode ( string awsSecretAccessKey, string canonicalString, bool urlEncode ) : string | ||
getHttpDate ( ) : string | ||
makeCanonicalString ( string resource, |
||
makeCanonicalString ( string verb, string resource, |
||
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 |
public static Host ( string bucket ) : string | ||
bucket | string | |
return | string |
public static addAuthHeader ( |
||
request | Request to add the header to | |
resource | string | The resource name (bucketName + "/" + key) |
awsAccessKeyId | string | |
awsSecretAccessKey | string | |
return | void |
public static addHeaders ( |
||
req | Web request to add the headers to. | |
headers | A map of string to string representing the HTTP headers to pass (can be null) | |
return | void |
public static addHeaders ( |
||
req | WebRequest to add the headers to. | |
headers | Headers to add. | |
prefix | string | String to prepend to each before ebfore adding it to the WebRequest |
return | void |
public static addMetadataHeaders ( |
||
req | Web request to add the headers to. | |
metadata | A map of string to string representing the S3 metadata for this resource. | |
return | void |
public static encode ( string awsSecretAccessKey, string canonicalString, bool urlEncode ) : string | ||
awsSecretAccessKey | string | |
canonicalString | string | |
urlEncode | bool | |
return | string |
public static makeCanonicalString ( string resource, |
||
resource | string | |
request | ||
return | string |
public static makeCanonicalString ( string verb, string resource, |
||
verb | string | |
resource | string | |
headers | ||
expires | string | |
return | string |
public static makeURL ( string server, string resource, bool isSecure ) : string | ||
server | string | |
resource | string | The resource name (bucketName + "/" + key) |
isSecure | bool | |
return | string |
public static parseDate ( string dateStr ) : System.DateTime | ||
dateStr | string | |
return | System.DateTime |
public static slurpInputStream ( Stream stream ) : string | ||
stream | Stream | |
return | string |
public static string ALTERNATIVE_DATE_HEADER | ||
return | string |
public static string AMAZON_HEADER_PREFIX | ||
return | string |