Class CommonRestResponse


  • public final class CommonRestResponse
    extends Object
    A generic wrapper for any type of blob REST API response. Used and returned by methods in the TransferManager class. The methods there return this type because they represent composite operations which may conclude with any of several possible REST calls depending on the data provided.
    • Method Detail

      • statusCode

        public int statusCode()
        Returns:
        The status code for the response
      • eTag

        public String eTag()
        Returns:
        An HTTP Etag for the blob at the time of the request.
      • lastModified

        public OffsetDateTime lastModified()
        Returns:
        The time when the blob was last modified.
      • requestId

        public String requestId()
        Returns:
        The id of the service request for which this is the response.
      • date

        public OffsetDateTime date()
        Returns:
        The date of the response.
      • version

        public String version()
        Returns:
        The service version responding to the request.
      • response

        public com.microsoft.rest.v2.RestResponse response()
        Returns:
        The underlying response.