com.aspose.html.net

Class RequestMessage

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


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

    Represents a request message.

    See Also:
    System.IDisposable
    • Constructor Detail

      • RequestMessage

        public RequestMessage(String address)

        Initializes a new instance of the RequestMessage class.

        Parameters:
        address - The request address.
      • RequestMessage

        public RequestMessage(Url uri)

        Initializes a new instance of the RequestMessage class.

        Parameters:
        uri - The request URL.
    • Method Detail

      • getMethod

        public HttpMethod getMethod()

        Gets or sets the HttpMethod.

        Value: The HttpMethod.
      • setMethod

        public void setMethod(HttpMethod value)

        Gets or sets the HttpMethod.

        Value: The HttpMethod.
      • getRequestUri

        public Url getRequestUri()

        Gets or sets the request URI.

        Value: The request URI.
      • setRequestUri

        public void setRequestUri(Url value)

        Gets or sets the request URI.

        Value: The request URI.
      • getHeaders

        public RequestHeaders getHeaders()

        Gets the RequestHeaders.

        Value: The headers.
      • getBody

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

        Gets or sets the request body.

        Value: The body.
      • setBody

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

        Gets or sets the request body.

        Value: The body.
      • 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