BaseResponse Class
- java.
lang. Object - com.
microsoft. azure. storage. core. BaseResponse
- com.
public class BaseResponse
RESERVED FOR INTERNAL USE. The base response class for the protocol layer
Constructor Summary
Constructor | Description |
---|---|
BaseResponse() |
Private Default Ctor |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getContentMD5(final HttpURLConnection request)
Gets the ContentMD5 |
String |
getDate(final HttpURLConnection request)
Gets the Date |
String |
getEncryptionKeyHash(HttpURLConnection request)
Gets the hash of the client-provided encryption key used for encryption. |
String |
getErrorCode(final HttpURLConnection request)
Gets the ErrorCode |
String |
getEtag(final HttpURLConnection request)
Gets the Etag |
HashMap<String, String> |
getMetadata(final HttpURLConnection request)
Gets the metadata from the request. |
String |
getRequestId(final HttpURLConnection request)
Gets the request id. |
boolean |
isServerEncrypted(HttpURLConnection request)
Gets if the request was encrypted by the server. |
boolean |
isServerRequestEncrypted(HttpURLConnection request)
Gets if the request was encrypted by the server. |
Constructor Details
BaseResponse
protected BaseResponse()
Private Default Ctor
Method Details
getContentMD5
public static String getContentMD5(final HttpURLConnection request)
Gets the ContentMD5
Parameters:
Returns:
getDate
public static String getDate(final HttpURLConnection request)
Gets the Date
Parameters:
Returns:
getEncryptionKeyHash
public static String getEncryptionKeyHash(HttpURLConnection request)
Gets the hash of the client-provided encryption key used for encryption.
Parameters:
getErrorCode
public static String getErrorCode(final HttpURLConnection request)
Gets the ErrorCode
Parameters:
Returns:
getEtag
public static String getEtag(final HttpURLConnection request)
Gets the Etag
Parameters:
Returns:
getMetadata
public static HashMap
Gets the metadata from the request.
Parameters:
Returns:
getRequestId
public static String getRequestId(final HttpURLConnection request)
Gets the request id.
Parameters:
Returns:
isServerEncrypted
public static boolean isServerEncrypted(HttpURLConnection request)
Gets if the request was encrypted by the server.
Parameters:
Returns:
isServerRequestEncrypted
public static boolean isServerRequestEncrypted(HttpURLConnection request)
Gets if the request was encrypted by the server.
Parameters:
Returns:
Applies to
Azure SDK for Java