|
|||||||||
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()
Override recycle to reset redirects default. |
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 java.lang.String getName()
getName
in class HttpMethodBase
public void recycle()
recycle
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
state
- shared http stateconn
- the http connection to read fromjava.io.IOException
- when there's an error reading dataHttpException
- never FIXME
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |