|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.HttpMethodBase | +--org.apache.commons.httpclient.methods.OptionsMethod
OPTIONS Method.
Field Summary |
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
USER_AGENT |
Constructor Summary | |
OptionsMethod()
Method constructor. |
|
OptionsMethod(java.lang.String uri)
Constructor specifying a URI. |
Method Summary | |
java.util.Enumeration |
getAllowedMethods()
Get a list of allowed methods. |
java.lang.String |
getName()
Obtain the name of this method, suitable for use in the "request line", for example GET or POST. |
boolean |
isAllowed(java.lang.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)
When this method is invoked, the response headers map will have been populated with the response headers (in other words, readResponseHeaders(HttpState,HttpConnection)
will have been invoked). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OptionsMethod()
public OptionsMethod(java.lang.String uri)
uri
- either an absolute or relative URIMethod Detail |
public java.lang.String getName()
HttpMethodBase
getName
in interface HttpMethod
getName
in class HttpMethodBase
public boolean isAllowed(java.lang.String method)
public java.util.Enumeration getAllowedMethods()
protected void processResponseHeaders(HttpState state, HttpConnection conn)
HttpMethodBase
readResponseHeaders(HttpState,HttpConnection)
will have been invoked).
This implementation will handle the Set-Cookie and
Set-Cookie2 headers, if any, adding the relevant cookies to
the given HttpState
.
Subclasses may want to override this method to specially process additional headers, and/or invoke this method (via super) to process the Set-Cookie and Set-Cookie2 headers.
processResponseHeaders
in class HttpMethodBase
state
- the client stateconn
- the HttpConnection
to read the response fromHttpMethodBase.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 |