public final class RequestContent extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
RequestContent.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent(List<String> headers,
Charset charset)
Returns the signature content as a byte array
|
String |
getContentString(List<String> headers)
Returns the signature content as a String
|
String |
getDate() |
Date |
getDateGMT()
Returns the currently set date header value converted to a
Date object in the GMT time zone |
Calendar |
getDateTZ(TimeZone timeZone)
Returns the currently set date header value converted to a
Calendar in the specified timeZone, or in the
default timeZone if the parameter is null |
List<String> |
getHeaderNames() |
List<String> |
getHeaderValues(String name) |
String |
getRequestLine() |
String |
toString() |
public static final String DATE_FORMAT
public byte[] getContent(List<String> headers, Charset charset)
headers - the list of headers to be included in the signed contentgetContentString(java.util.List) encoded using the provided Charsetpublic String getContentString(List<String> headers)
headers - the list of headers to be included in the signed contentpublic List<String> getHeaderNames()
RequestContent, in the order in which they were added, except
for request-line, which is listed first if presentpublic String getRequestLine()
public String getDate()
public List<String> getHeaderValues(String name)
name - the name of the headerpublic Date getDateGMT()
Date object in the GMT time zoneDate object in GMT or null if header is not set or not validpublic Calendar getDateTZ(TimeZone timeZone)
Calendar in the specified timeZone, or in the
default timeZone if the parameter is nulltimeZone - some time zone or null to convert to the default time zoneCalendar in the specified time zone or in the default time zone if the timeZone parameter is nullCopyright © 2013. All Rights Reserved.