|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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.
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()
public boolean isAllowed(String method)
method
- The method to check.public Enumeration getAllowedMethods()
protected void processResponseHeaders(HttpState state, HttpConnection conn)
state
- The state.conn
- The connection.public boolean needContentLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |