Class HttpOptions

  • All Implemented Interfaces:
    java.lang.Cloneable, AbortableHttpRequest, Configurable, HttpExecutionAware, HttpUriRequest, HttpMessage, HttpRequest
    Direct Known Subclasses:

    public class HttpOptions
    extends HttpRequestBase
    HTTP OPTIONS method.

    The HTTP OPTIONS method is defined in section 9.2 of RFC2616:

    The OPTIONS method represents a request for information about the communication options available on the request/response chain identified by the Request-URI. This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.
    • Constructor Detail

      • HttpOptions

        public HttpOptions()
      • HttpOptions

        public HttpOptions​( uri)
      • HttpOptions

        public HttpOptions​(java.lang.String uri)
        java.lang.IllegalArgumentException - if the uri is invalid.
    • Method Detail

      • getAllowedMethods

        public java.util.Set<java.lang.String> getAllowedMethods​(HttpResponse response)