|
|||||||||
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.HeadMethod
HEAD Method.
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
USER_AGENT |
Constructor Summary | |
HeadMethod()
No-arg constructor. |
|
HeadMethod(java.lang.String path)
Path-setting constructor. |
Method Summary | |
java.lang.String |
getName()
Returns "HEAD". |
protected void |
readResponseBody(HttpState state,
HttpConnection conn)
Overrides HttpMethodBase method to
not read a response body, despite the
presence of a Content-Length or
Transfer-Encoding header. |
void |
recycle()
Recycle this method so that it can be used again. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HeadMethod()
public HeadMethod(java.lang.String path)
path
- the path to requestMethod Detail |
public void recycle()
HttpMethodBase
recycle
in class HttpMethodBase
public java.lang.String getName()
getName
in class HttpMethodBase
protected void readResponseBody(HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
HttpMethodBase
method to
not read a response body, despite the
presence of a Content-Length or
Transfer-Encoding header.readResponseBody
in class HttpMethodBase
org.apache.commons.httpclient.HttpMethodBase
state
- the client stateconn
- the HttpConnection
to read the response fromHttpMethodBase.readResponse(org.apache.commons.httpclient.HttpState, org.apache.commons.httpclient.HttpConnection)
,
HttpMethodBase.processResponseBody(org.apache.commons.httpclient.HttpState, org.apache.commons.httpclient.HttpConnection)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |