English | Site Directory

Android - An Open Handset Alliance Project

org.apache.http.client.methods.HttpHead

java.lang.Object
org.apache.http.message.AbstractHttpMessage HttpMessage
org.apache.http.client.methods.HttpHead AbortableHttpRequest HttpUriRequest

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.

Summary

Constants

      Value  
String  METHOD_NAME    "HEAD" 

Public Constructors

          HttpHead()
          HttpHead(URI uri)
          HttpHead(String uri)

Public Methods

        void  abort()
        String  getMethod()
        ProtocolVersion  getProtocolVersion()
Returns the protocol version this message is compatible with.
        RequestLine  getRequestLine()
Returns the request line of this request.
        URI  getURI()
        void  setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
        void  setURI(URI uri)
Methods inherited from class org.apache.http.message.AbstractHttpMessage
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.HttpRequest
Methods inherited from interface org.apache.http.client.methods.HttpUriRequest
Methods inherited from interface org.apache.http.client.methods.AbortableHttpRequest
Methods inherited from interface org.apache.http.HttpMessage

Details

Constants

public static final String METHOD_NAME

Constant Value: "HEAD"

Public Constructors

public HttpHead()

public HttpHead(URI uri)

public HttpHead(String uri)

Public Methods

public void abort()

public String getMethod()

public ProtocolVersion getProtocolVersion()

Returns the protocol version this message is compatible with.

public RequestLine getRequestLine()

Returns the request line of this request.

public URI getURI()

public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)

public void setURI(URI uri)

Build m5-rc15i - 10 Jun 2008 13:54