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.
      • getContent

        public Content getContent()

        Gets or sets the response content.

        Value: The body.
      • setContent

        public void setContent(Content value)

        Gets or sets the response content.

        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 message 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