com.aspose.html.net

Class ResponseMessage

  • java.lang.Object
    • com.aspose.html.net.ResponseMessage
  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


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

    Represents a response message.

    See Also:
    IDisposable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void dispose()
      Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
      protected void dispose(boolean disposing)
      Releases unmanaged and - optionally - managed resources.
      Content getContent()
      Gets or sets the response content.
      com.aspose.ms.System.Net.CookieCollection getCookies()
      Gets or sets the cookie collection.
      ResponseHeaders getHeaders()
      Gets the headers.
      RequestMessage getRequest()
      Gets or sets the associated request.
      int getStatusCode()
      Gets or sets the status code.
      boolean isSuccess()
      Gets a value indicating whether this message is success.
      void setContent(Content value)
      Gets or sets the response content.
      void setCookies(com.aspose.ms.System.Net.CookieCollection value)
      Gets or sets the cookie collection.
      void setRequest(RequestMessage value)
      Gets or sets the associated request.
      void setStatusCode(int value)
      Gets or sets the status code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.ms.System.Net.CookieCollection getCookies()

        Gets or sets the cookie collection.

      • setCookies

        public void setCookies(com.aspose.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

        protected void dispose(boolean disposing)

        Releases unmanaged and - optionally - managed resources.

        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.
      • 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