public class HttpOptions extends HttpUriRequestBase
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_NAME |
Constructor and Description |
---|
HttpOptions(String uri)
Creates a new instance initialized with the given URI.
|
HttpOptions(URI uri)
Creates a new instance initialized with the given URI.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllowedMethods(HttpResponse response) |
String |
getMethod()
Returns method of this request message.
|
abort, cancel, getConfig, isAborted, isCancelled, reset, setConfig, setDependency, toString
getEntity, setEntity
addHeader, getAuthority, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setUri, setVersion
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthority, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUri
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
containsHeader, countHeaders, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator
getEntity, setEntity
public static final String METHOD_NAME
public HttpOptions(String uri)
uri
- a non-null request URI.IllegalArgumentException
- if the uri is invalid.public HttpOptions(URI uri)
uri
- a non-null request URI.IllegalArgumentException
- if the uri is null.public Set<String> getAllowedMethods(HttpResponse response)
public String getMethod()
HttpRequest
getMethod
in interface HttpRequest
getMethod
in class BasicHttpRequest