Class HttpOptions
- java.lang.Object
-
- org.apache.hc.core5.http.message.HeaderGroup
-
- org.apache.hc.core5.http.message.BasicHttpRequest
-
- org.apache.hc.core5.http.message.BasicClassicHttpRequest
-
- org.apache.hc.client5.http.classic.methods.HttpUriRequestBase
-
- org.apache.hc.client5.http.classic.methods.HttpOptions
-
- All Implemented Interfaces:
java.io.Serializable
,HttpUriRequest
,Configurable
,org.apache.hc.core5.concurrent.Cancellable
,org.apache.hc.core5.concurrent.CancellableDependency
,org.apache.hc.core5.http.ClassicHttpRequest
,org.apache.hc.core5.http.HttpEntityContainer
,org.apache.hc.core5.http.HttpMessage
,org.apache.hc.core5.http.HttpRequest
,org.apache.hc.core5.http.MessageHeaders
public class HttpOptions extends HttpUriRequestBase
HTTP OPTIONS method.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
METHOD_NAME
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description HttpOptions(java.lang.String uri)
Creates a new instance initialized with the given URI.HttpOptions(java.net.URI uri)
Creates a new instance initialized with the given URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAllowedMethods(org.apache.hc.core5.http.HttpResponse response)
java.lang.String
getMethod()
-
Methods inherited from class org.apache.hc.client5.http.classic.methods.HttpUriRequestBase
abort, cancel, getConfig, isAborted, isCancelled, reset, setConfig, setDependency, toString
-
Methods inherited from class org.apache.hc.core5.http.message.BasicClassicHttpRequest
getEntity, setEntity
-
Methods inherited from class org.apache.hc.core5.http.message.BasicHttpRequest
addHeader, getAuthority, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, setAuthority, setHeader, setPath, setScheme, setUri, setVersion
-
Methods inherited from class org.apache.hc.core5.http.message.HeaderGroup
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.hc.core5.http.HttpMessage
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
METHOD_NAME
public static final java.lang.String METHOD_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpOptions
public HttpOptions(java.net.URI uri)
Creates a new instance initialized with the given URI.- Parameters:
uri
- a non-null request URI.- Throws:
java.lang.IllegalArgumentException
- if the uri is null.
-
HttpOptions
public HttpOptions(java.lang.String uri)
Creates a new instance initialized with the given URI.- Parameters:
uri
- a non-null request URI.- Throws:
java.lang.IllegalArgumentException
- if the uri is invalid.
-
-
Method Detail
-
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interfaceorg.apache.hc.core5.http.HttpRequest
- Overrides:
getMethod
in classorg.apache.hc.core5.http.message.BasicHttpRequest
-
getAllowedMethods
public java.util.Set<java.lang.String> getAllowedMethods(org.apache.hc.core5.http.HttpResponse response)
-
-