Top Description Fields Constructors Methods
org.apache.http.client.methods

public Class HttpOptions

extends HttpRequestBase
Class Inheritance
Imports
java.net.URI, java.util.HashSet, .Set, org.apache.http.Header, .HeaderElement, .HeaderIterator, .HttpResponse, org.apache.http.util.Args

Deprecated

as a consequence of HttpRequestBase being deprecated. See corresponding docs for further information.

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.
Since
4.0

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public
public
HttpOptions(final URI uri)

public
HttpOptions(final String uri)

Method Summary

Modifier and TypeMethod and Description
public Set<String>
public String
getMethod()

Implements abstract org.apache.http.client.methods.HttpRequestBase.getMethod.

Implements org.apache.http.client.methods.HttpUriRequest.getMethod.

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
Inherited from org.apache.http.client.methods.HttpRequestBase:
getConfiggetProtocolVersiongetRequestLinegetURIreleaseConnectionsetConfigsetProtocolVersionsetURIstartedtoString

Field Detail

METHOD_NAMEback to summary
public static final String METHOD_NAME

Constructor Detail

HttpOptionsback to summary
public HttpOptions()
HttpOptionsback to summary
public HttpOptions(final URI uri)
HttpOptionsback to summary
public HttpOptions(final String uri)
Exceptions
IllegalArgumentException:
if the uri is invalid.

Method Detail

getAllowedMethodsback to summary
public Set<String> getAllowedMethods(final HttpResponse response)
getMethodback to summary
public String getMethod()

Implements abstract org.apache.http.client.methods.HttpRequestBase.getMethod.

Implements org.apache.http.client.methods.HttpUriRequest.getMethod.

Doc from org.apache.http.client.methods.HttpUriRequest.getMethod.

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.

Annotations
@Override