org.apache.http.client.methods
Class HttpOptions

java.lang.Object
  extended by org.apache.http.message.AbstractHttpMessage
      extended by org.apache.http.client.methods.HttpOptions
All Implemented Interfaces:
AbortableHttpRequest, HttpUriRequest, org.apache.http.HttpMessage, org.apache.http.HttpRequest

public class HttpOptions
extends org.apache.http.message.AbstractHttpMessage

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.

Since:
4.0
Version:
$Revision: 569634 $

Field Summary
static java.lang.String METHOD_NAME
           
 
Constructor Summary
HttpOptions()
           
HttpOptions(java.lang.String uri)
           
HttpOptions(java.net.URI uri)
           
 
Method Summary
 void abort()
           
 java.util.Set getAllowedMethods(org.apache.http.HttpResponse response)
           
 java.lang.String getMethod()
           
 org.apache.http.ProtocolVersion getProtocolVersion()
           
 org.apache.http.RequestLine getRequestLine()
           
 java.net.URI getURI()
           
 void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
           
 void setURI(java.net.URI uri)
           
 
Methods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.HttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
 

Field Detail

METHOD_NAME

public static final java.lang.String METHOD_NAME
See Also:
Constant Field Values
Constructor Detail

HttpOptions

public HttpOptions()

HttpOptions

public HttpOptions(java.net.URI uri)

HttpOptions

public HttpOptions(java.lang.String uri)
            throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException
Method Detail

getMethod

public java.lang.String getMethod()
Specified by:
getMethod in interface HttpUriRequest

getAllowedMethods

public java.util.Set getAllowedMethods(org.apache.http.HttpResponse response)
                                throws org.apache.http.ParseException
Throws:
org.apache.http.ParseException

getProtocolVersion

public org.apache.http.ProtocolVersion getProtocolVersion()
Specified by:
getProtocolVersion in interface org.apache.http.HttpMessage

getURI

public java.net.URI getURI()
Specified by:
getURI in interface HttpUriRequest

getRequestLine

public org.apache.http.RequestLine getRequestLine()
Specified by:
getRequestLine in interface org.apache.http.HttpRequest

setURI

public void setURI(java.net.URI uri)

setReleaseTrigger

public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
Specified by:
setReleaseTrigger in interface AbortableHttpRequest

abort

public void abort()
Specified by:
abort in interface AbortableHttpRequest


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.