Android

org.apache.http.client.methods.HttpOptions

java.lang.Object
org.apache.http.message.AbstractHttpMessage HttpMessage
org.apache.http.client.methods.HttpRequestBase Cloneable AbortableHttpRequest HttpUriRequest
org.apache.http.client.methods.HttpOptions

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

      Value  
String  METHOD_NAME    "OPTIONS" 
Fields inherited 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.
Methods inherited from class org.apache.http.client.methods.HttpRequestBase
Methods inherited from class org.apache.http.message.AbstractHttpMessage
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.HttpMessage
Methods inherited from interface org.apache.http.HttpRequest
Methods inherited from interface org.apache.http.client.methods.AbortableHttpRequest
Methods inherited from interface org.apache.http.client.methods.HttpUriRequest

Details

Constants

public static final String METHOD_NAME

Constant Value: "OPTIONS"

Public Constructors

public HttpOptions()

public HttpOptions(URI uri)

public HttpOptions(String uri)

Throws

IllegalArgumentException if the uri is invalid.

Public Methods

public Set<String> getAllowedMethods(HttpResponse response)

public String getMethod()

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48