|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.httpclient.HttpMethodBase
org.apache.commons.httpclient.methods.OptionsMethod
Implements the HTTP OPTIONS specification.
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.
Field Summary |
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
USER_AGENT |
Constructor Summary | |
OptionsMethod()
Method constructor. |
|
OptionsMethod(String uri)
Constructor specifying a URI. |
Method Summary | |
Enumeration |
getAllowedMethods()
Get a list of allowed methods. |
String |
getName()
Get the name. |
boolean |
isAllowed(String method)
Is the specified method allowed ? |
boolean |
needContentLength()
Return true if the method needs a content-length header in the request. |
protected void |
processResponseHeaders(HttpState state,
HttpConnection conn)
Process the response headers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OptionsMethod()
public OptionsMethod(String uri)
uri
- either an absolute or relative URIMethod Detail |
public String getName()
getName
in interface HttpMethod
getName
in class HttpMethodBase
public boolean isAllowed(String method)
method
- The method to check.
public Enumeration getAllowedMethods()
protected void processResponseHeaders(HttpState state, HttpConnection conn)
processResponseHeaders
in class HttpMethodBase
state
- The state.conn
- The connection.HttpMethodBase.readResponse(org.apache.commons.httpclient.HttpState, org.apache.commons.httpclient.HttpConnection)
,
HttpMethodBase.readResponseHeaders(org.apache.commons.httpclient.HttpState, org.apache.commons.httpclient.HttpConnection)
public boolean needContentLength()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |