English | Site Directory

Android - An Open Handset Alliance Project

org.apache.http.client.methods.HttpOptions

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

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" 

Public Constructors

          HttpOptions()
          HttpOptions(URI uri)
          HttpOptions(String uri)

Public Methods

        void  abort()
        Set  getAllowedMethods(HttpResponse response)
        String  getMethod()
        ProtocolVersion  getProtocolVersion()
Returns the protocol version this message is compatible with.
        RequestLine  getRequestLine()
Returns the request line of this request.
        URI  getURI()
        void  setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
        void  setURI(URI uri)
Methods inherited from class org.apache.http.message.AbstractHttpMessage
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.HttpRequest
Methods inherited from interface org.apache.http.client.methods.HttpUriRequest
Methods inherited from interface org.apache.http.client.methods.AbortableHttpRequest
Methods inherited from interface org.apache.http.HttpMessage

Details

Constants

public static final String METHOD_NAME

Constant Value: "OPTIONS"

Public Constructors

public HttpOptions()

public HttpOptions(URI uri)

public HttpOptions(String uri)

Public Methods

public void abort()

public Set getAllowedMethods(HttpResponse response)

public String getMethod()

public ProtocolVersion getProtocolVersion()

Returns the protocol version this message is compatible with.

public RequestLine getRequestLine()

Returns the request line of this request.

public URI getURI()

public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)

public void setURI(URI uri)

Build m5-rc15i - 10 Jun 2008 13:54