com.aspose.html.net

Class ResponseMessage

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


    public class ResponseMessage
    extends Object
    implements com.aspose.ms.System.IDisposable

    Represents a response message.

    See Also:
    System.IDisposable
    • Constructor Detail

      • ResponseMessage

        public ResponseMessage(int status)

        Initializes a new instance of the ResponseMessage class.

        Parameters:
        status - The status.
    • Method Detail

      • getHeaders

        public ResponseHeaders getHeaders()

        Gets the headers.

        Value: The headers.
      • getContentType

        public MimeType getContentType()

        Gets or sets the MimeType of the response.

        Value: The type of the content.
      • setContentType

        public void setContentType(MimeType value)

        Gets or sets the MimeType of the response.

        Value: The type of the content.
      • getContentEncoding

        public String getContentEncoding()

        Gets or sets the content encoding.

        Value: The content encoding.
      • setContentEncoding

        public void setContentEncoding(String value)

        Gets or sets the content encoding.

        Value: The content encoding.
      • getBody

        public com.aspose.ms.System.IO.Stream getBody()

        Gets or sets the response body.

        Value: The body.
      • setBody

        public void setBody(com.aspose.ms.System.IO.Stream value)

        Gets or sets the response body.

        Value: The body.
      • getRequest

        public RequestMessage getRequest()

        Gets or sets the associated request.

        Value: The request.
      • setRequest

        public void setRequest(RequestMessage value)

        Gets or sets the associated request.

        Value: The request.
      • getStatusCode

        public int getStatusCode()

        Gets or sets the status code.

        Value: The status code.
      • setStatusCode

        public void setStatusCode(int value)

        Gets or sets the status code.

        Value: The status code.
      • isSuccess

        public boolean isSuccess()

        Gets a value indicating whether this instance is success.

        Value: true if this instance is success; otherwise, false.
      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable