|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microsoft.tfs.core.httpclient.HttpMethodBase
com.microsoft.tfs.core.httpclient.methods.HeadMethod
public class HeadMethod
Implements the HTTP HEAD method.
The HTTP HEAD method is defined in section 9.4 of RFC2616:
The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification.
| Field Summary |
|---|
| Fields inherited from class com.microsoft.tfs.core.httpclient.HttpMethodBase |
|---|
effectiveVersion, statusLine |
| Constructor Summary | |
|---|---|
HeadMethod()
No-arg constructor. |
|
HeadMethod(java.lang.String uri)
Constructor specifying a URI. |
|
| Method Summary | |
|---|---|
int |
getBodyCheckTimeout()
Deprecated. Use HttpMethodParams |
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()
Deprecated. no longer supported and will be removed in the future version of HttpClient |
void |
setBodyCheckTimeout(int timeout)
Deprecated. Use HttpMethodParams |
| 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 URI| Method Detail |
|---|
public java.lang.String getName()
getName in interface HttpMethodgetName in class HttpMethodBase@Deprecated public void recycle()
recycle in interface HttpMethodrecycle in class HttpMethodBaseHttpMethodBase.releaseConnection()
protected void readResponseBody(HttpState state,
HttpConnection conn)
throws HttpException,
java.io.IOException
HttpMethodBase method to not read a response
body, despite the presence of a Content-Length or
Transfer-Encoding header.
readResponseBody in class HttpMethodBasestate - the state information associated with this
methodconn - the connection used to execute this HTTP
method
java.io.IOException - if an I/O (transport) error occurs. Some transport exceptions can
be recovered from.
HttpException - if a protocol exception occurs. Usually protocol exceptions
cannot be recovered from.HttpMethodBase.readResponse(com.microsoft.tfs.core.httpclient.HttpState, com.microsoft.tfs.core.httpclient.HttpConnection),
HttpMethodBase.processResponseBody(com.microsoft.tfs.core.httpclient.HttpState, com.microsoft.tfs.core.httpclient.HttpConnection)@Deprecated public int getBodyCheckTimeout()
HttpMethodParams
HttpMethodBase.getParams(),
HttpMethodParams,
HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT@Deprecated public void setBodyCheckTimeout(int timeout)
HttpMethodParams
timeout - The period of time in milliseconds to wait for a response body
from a non-compliant server. -1 can be used to disable
non-compliant response body checkHttpMethodBase.getParams(),
HttpMethodParams,
HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||