Top Description Fields Constructors Methods
org.apache.hc.client5.http.classic.methods

public Class HttpOptions

extends HttpUriRequestBase
Class Inheritance
Imports
java.net.URI, java.util.HashSet, .Iterator, .Set, org.apache.hc.core5.http.HeaderElement, .HttpResponse, org.apache.hc.core5.http.message.MessageSupport, org.apache.hc.core5.util.Args

HTTP OPTIONS method.
Since
4.0

Field Summary

Modifier and TypeField and Description
public static final String
private static final long

Constructor Summary

AccessConstructor and Description
public
HttpOptions(final URI
a non-null request URI.
uri
)

Creates a new instance initialized with the given URI.

public
HttpOptions(final String
a non-null request URI.
uri
)

Creates a new instance initialized with the given URI.

Method Summary

Modifier and TypeMethod and Description
public Set<String>
public String
Inherited from org.apache.hc.client5.http.classic.methods.HttpUriRequestBase:
abortcancelgetConfigisAbortedisCancelledresetsetConfigsetDependencytoString

Field Detail

METHOD_NAMEback to summary
public static final String METHOD_NAME
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.hc.client5.http.classic.methods.HttpUriRequestBase.serialVersionUID.

Constructor Detail

HttpOptionsback to summary
public HttpOptions(final URI uri)

Creates a new instance initialized with the given URI.

Parameters
uri:URI

a non-null request URI.

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

Creates a new instance initialized with the given URI.

Parameters
uri:String

a non-null request 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()

Overrides org.apache.hc.core5.http.message.BasicHttpRequest.getMethod.

Implements org.apache.hc.core5.http.HttpRequest.getMethod.

Doc from org.apache.hc.core5.http.HttpRequest.getMethod.

Returns method of this request message.

Returns:String

the request method.

Annotations
@Override