com.aspose.html.net

Class ResponseMessage

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


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

    Represents a response message.

    See Also:
    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.
      • getCookies

        public com.aspose.html.internal.ms.System.Net.CookieCollection getCookies()

        Gets or sets the cookie collection.

      • setCookies

        public void setCookies(com.aspose.html.internal.ms.System.Net.CookieCollection value)

        Gets or sets the cookie collection.

      • 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.html.internal.ms.System.IDisposable