public class HttpOptions extends HttpUriRequestBase
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_NAME |
| Constructor and Description |
|---|
HttpOptions(String uri) |
HttpOptions(URI uri) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllowedMethods(org.apache.hc.core5.http.HttpResponse response) |
String |
getMethod() |
abort, getConfig, isAborted, isCancelled, reset, setCancellable, setConfig, toStringgetEntity, setEntityaddHeader, getAuthority, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setVersionaddHeader, clear, containsHeader, containsHeaders, getAllHeaders, getCondensedHeader, getFirstHeader, getHeaders, getLastHeader, getSingleHeader, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAuthority, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setSchemepublic static final String METHOD_NAME
public HttpOptions(URI uri)
public HttpOptions(String uri)
IllegalArgumentException - if the uri is invalid.public String getMethod()
getMethod in interface org.apache.hc.core5.http.HttpRequestgetMethod in class org.apache.hc.core5.http.message.BasicHttpRequestCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.