Android
org.apache.http.client.methods
public abstract class

org.apache.http.client.methods.HttpRequestBase

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

Basic implementation of an HTTP request that can be modified.

Known Direct Subclasses
Known Indirect Subclasses

Summary

Fields inherited from class org.apache.http.message.AbstractHttpMessage

Public Constructors

            HttpRequestBase()

Public Methods

          void  abort()
Aborts this http request.
          Object  clone()
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.
abstract          String  getMethod()
Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
          ProtocolVersion  getProtocolVersion()
Returns the protocol version this message is compatible with.
          RequestLine  getRequestLine()
Returns the request line of this request.
          URI  getURI()
Returns the URI this request uses, such as http://example.org/path/to/file.
          boolean  isAborted()
Tests if the request execution has been aborted.
          void  setConnectionRequest(ClientConnectionRequest connRequest)
Sets the ClientConnectionRequest callback that can be used to abort a long-lived request for a connection.
          void  setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
Sets the ConnectionReleaseTrigger callback that can be used to abort an active connection.
          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.HttpMessage
Methods inherited from interface org.apache.http.HttpRequest
Methods inherited from interface org.apache.http.client.methods.AbortableHttpRequest
Methods inherited from interface org.apache.http.client.methods.HttpUriRequest

Details

Public Constructors

public HttpRequestBase()

Public Methods

public void abort()

Aborts this http request. Any active execution of this method should return immediately. If the request has not started, it will abort after the next execution. Aborting this request will cause all subsequent executions with this request to fail.

public Object clone()

Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.

Classes which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.

Returns

  • Object a shallow copy of this object.

public abstract String getMethod()

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.

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()

Returns the URI this request uses, such as http://example.org/path/to/file.

public boolean isAborted()

Tests if the request execution has been aborted.

public void setConnectionRequest(ClientConnectionRequest connRequest)

Sets the ClientConnectionRequest callback that can be used to abort a long-lived request for a connection. If the request is already aborted, throws an IOException.

Throws

IOException

public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)

Sets the ConnectionReleaseTrigger callback that can be used to abort an active connection. Typically, this will be the ManagedClientConnection itself. If the request is already aborted, throws an IOException.

Throws

IOException

public void setURI(URI uri)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48