Android APIs
public class

HttpOptions

extends HttpRequestBase
java.lang.Object
   ↳ org.apache.http.message.AbstractHttpMessage
     ↳ org.apache.http.client.methods.HttpRequestBase
       ↳ org.apache.http.client.methods.HttpOptions

This class was deprecated in API level 22.
Please use openConnection() instead. Please visit this webpage for further details.

Class Overview

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.

Summary

Constants
String METHOD_NAME
[Expand]
Inherited Fields
From class org.apache.http.message.AbstractHttpMessage
Public Constructors
HttpOptions()
HttpOptions(URI uri)
HttpOptions(String uri)
Public Methods
Set<String> getAllowedMethods(HttpResponse response)
String getMethod()
Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
[Expand]
Inherited Methods
From class org.apache.http.client.methods.HttpRequestBase
From class org.apache.http.message.AbstractHttpMessage
From class java.lang.Object
From interface org.apache.http.client.methods.HttpUriRequest
From interface org.apache.http.client.methods.AbortableHttpRequest
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpRequest

Constants

public static final String METHOD_NAME

Added in API level 1

Constant Value: "OPTIONS"

Public Constructors

public HttpOptions ()

Added in API level 1

public HttpOptions (URI uri)

Added in API level 1

public HttpOptions (String uri)

Added in API level 1

Throws
IllegalArgumentException if the uri is invalid.

Public Methods

public Set<String> getAllowedMethods (HttpResponse response)

Added in API level 1

public String getMethod ()

Added in API level 1

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