org.apache.http.client.methods
Class HttpOptions
java.lang.Object
org.apache.http.message.AbstractHttpMessage
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: 528488 $
Methods inherited from class org.apache.http.message.AbstractHttpMessage |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, 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, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
METHOD_NAME
public static final java.lang.String METHOD_NAME
- See Also:
- Constant Field Values
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
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interface HttpUriRequest
getAllowedMethods
public java.util.Set getAllowedMethods(org.apache.http.HttpResponse response)
getHttpVersion
public org.apache.http.HttpVersion getHttpVersion()
- Specified by:
getHttpVersion
in interface HttpUriRequest
- Specified by:
getHttpVersion
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.