|
|||||||||
| 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
OPTIONS Method.
| Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
USER_AGENT |
| Constructor Summary | |
OptionsMethod()
Method constructor. |
|
OptionsMethod(java.lang.String path)
Method constructor. |
|
| 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 path)
| Method Detail |
public java.lang.String getName()
HttpMethodBasegetName in class HttpMethodBasepublic boolean isAllowed(java.lang.String method)
public java.util.Enumeration getAllowedMethods()
protected void processResponseHeaders(HttpState state,
HttpConnection conn)
HttpMethodBasereadResponseHeaders(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 HttpMethodBasepublic boolean needContentLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||