|
|||||||||||
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.HeadMethod
HEAD Method.
Field Summary |
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
USER_AGENT |
Constructor Summary | |
HeadMethod()
No-arg constructor. |
|
HeadMethod(java.lang.String uri)
Constructor specifying a URI. |
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 uri)
uri
- either an absolute or relative URIMethod Detail |
public java.lang.String getName()
getName
in interface HttpMethod
getName
in class HttpMethodBase
public void recycle()
recycle
in interface HttpMethod
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 from
java.io.IOException
- when there's an error reading data
HttpException
- never FIXMEHttpMethodBase.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |