BaseResponse Class

  • java.lang.Object
    • com.microsoft.azure.storage.core.BaseResponse

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:

request - The response from server.

Returns:

The ContentMD5.

getDate

public static String getDate(final HttpURLConnection request)

Gets the Date

Parameters:

request - The response from server.

Returns:

The Date.

getEncryptionKeyHash

public static String getEncryptionKeyHash(HttpURLConnection request)

Gets the hash of the client-provided encryption key used for encryption.

Parameters:

request

getErrorCode

public static String getErrorCode(final HttpURLConnection request)

Gets the ErrorCode

Parameters:

request - The response from server.

Returns:

The ErrorCode.

getEtag

public static String getEtag(final HttpURLConnection request)

Gets the Etag

Parameters:

request - The response from server.

Returns:

The Etag.

getMetadata

public static HashMap getMetadata(final HttpURLConnection request)

Gets the metadata from the request.

Parameters:

request - The response from server.

Returns:

the metadata from the request

getRequestId

public static String getRequestId(final HttpURLConnection request)

Gets the request id.

Parameters:

request - The response from server.

Returns:

The request ID.

isServerEncrypted

public static boolean isServerEncrypted(HttpURLConnection request)

Gets if the request was encrypted by the server.

Parameters:

request - The response from the server.

Returns:

A boolean indicating if the request was encrypted by the server.

isServerRequestEncrypted

public static boolean isServerRequestEncrypted(HttpURLConnection request)

Gets if the request was encrypted by the server.

Parameters:

request - The response from the server.

Returns:

A boolean indicating if the request was encrypted by the server.

Applies to