English | Site Directory

Android - An Open Handset Alliance Project

org.apache.http.client.methods.HttpTrace

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

HTTP TRACE method.

The HTTP TRACE method is defined in section 9.6 of RFC2616:

The TRACE method is used to invoke a remote, application-layer loop- back of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response. The final recipient is either the origin server or the first proxy or gateway to receive a Max-Forwards value of zero (0) in the request (see section 14.31). A TRACE request MUST NOT include an entity.

Summary

Constants

      Value  
String  METHOD_NAME    "TRACE" 

Public Constructors

          HttpTrace()
          HttpTrace(URI uri)
          HttpTrace(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: "TRACE"

Public Constructors

public HttpTrace()

public HttpTrace(URI uri)

public HttpTrace(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