|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.message.AbstractHttpMessage
org.apache.http.client.methods.HttpRequestBase
public abstract class HttpRequestBase
Basic implementation of an HTTP request that can be modified.
| Field Summary |
|---|
| Fields inherited from class org.apache.http.message.AbstractHttpMessage |
|---|
headergroup, params |
| Constructor Summary | |
|---|---|
HttpRequestBase()
|
|
| Method Summary | |
|---|---|
void |
abort()
Aborts execution of the 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 |
|---|
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.http.HttpMessage |
|---|
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
| Constructor Detail |
|---|
public HttpRequestBase()
| Method Detail |
|---|
public abstract String getMethod()
HttpUriRequestGET,
PUT, POST, or other.
getMethod in interface HttpUriRequestpublic ProtocolVersion getProtocolVersion()
HttpMessage
getProtocolVersion in interface HttpMessagepublic URI getURI()
HttpUriRequesthttp://example.org/path/to/file.
getURI in interface HttpUriRequestpublic RequestLine getRequestLine()
HttpRequest
getRequestLine in interface HttpRequestpublic void setURI(URI uri)
public void setConnectionRequest(ClientConnectionRequest connRequest)
throws IOException
AbortableHttpRequestClientConnectionRequest callback that can be
used to abort a long-lived request for a connection.
If the request is already aborted, throws an IOException.
setConnectionRequest in interface AbortableHttpRequestIOExceptionClientConnectionManager,
ThreadSafeClientConnManager
public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
throws IOException
AbortableHttpRequestConnectionReleaseTrigger 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.
setReleaseTrigger in interface AbortableHttpRequestIOExceptionpublic void abort()
HttpUriRequest
abort in interface AbortableHttpRequestabort in interface HttpUriRequestHttpClient.execute(HttpUriRequest),
HttpClient.execute(org.apache.http.HttpHost,
org.apache.http.HttpRequest),
HttpClient.execute(HttpUriRequest,
org.apache.http.protocol.HttpContext),
HttpClient.execute(org.apache.http.HttpHost,
org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext)public boolean isAborted()
HttpUriRequest
isAborted in interface HttpUriRequesttrue if the request execution has been aborted,
false otherwise.
public Object clone()
throws CloneNotSupportedException
ObjectClasses which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.
clone in class ObjectCloneNotSupportedException - if the receiver's class does not
implement the interface Cloneable.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||