Top Fields Constructors Methods
org.apache.http.client.methods

public abstract Class AbstractExecutionAwareRequest

extends AbstractHttpMessage
implements HttpExecutionAware, AbortableHttpRequest, Cloneable, HttpRequest
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpRequest, org.apache.http.HttpMessage, java.lang.Cloneable, org.apache.http.client.methods.AbortableHttpRequest, org.apache.http.client.methods.HttpExecutionAware
Known Direct Subclasses
org.apache.http.client.methods.HttpRequestBase
Annotations
@SuppressWarnings:deprecation
Imports
java.io.IOException, java.util.concurrent.atomic.AtomicMarkableReference, org.apache.http.HttpRequest, org.apache.http.client.utils.CloneUtils, org.apache.http.concurrent.Cancellable, org.apache.http.conn.ClientConnectionRequest, .ConnectionReleaseTrigger, org.apache.http.message.AbstractHttpMessage

Deprecated

as a consequence of AbortableHttpRequest being deprecated. See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
private final AtomicMarkableReference<Cancellable>
Inherited from org.apache.http.message.AbstractHttpMessage:
headergroupparams

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.
public void
completed()

Deprecated Do not use.
public boolean
public void
reset()

Resets internal state of the request making it reusable.

public void
public void
setConnectionRequest(final ClientConnectionRequest connRequest)

Implements org.apache.http.client.methods.AbortableHttpRequest.setConnectionRequest.

Sets the org.apache.http.conn.ClientConnectionRequest callback that can be used to abort a long-lived request for a connection.
public void
setReleaseTrigger(final ConnectionReleaseTrigger releaseTrigger)

Implements org.apache.http.client.methods.AbortableHttpRequest.setReleaseTrigger.

Sets the ConnectionReleaseTrigger callback that can be used to abort an active connection.
Inherited from org.apache.http.message.AbstractHttpMessage:
addHeaderaddHeadercontainsHeadergetAllHeadersgetFirstHeadergetHeadersgetLastHeadergetParamsheaderIteratorheaderIteratorremoveHeaderremoveHeaderssetHeadersetHeadersetHeaderssetParams

Field Detail

cancellableRefback to summary
private final AtomicMarkableReference<Cancellable> cancellableRef

Constructor Detail

AbstractExecutionAwareRequestback to summary
protected AbstractExecutionAwareRequest()

Method Detail

abortback to summary
public void abort()

Implements org.apache.http.client.methods.AbortableHttpRequest.abort.

Doc from org.apache.http.client.methods.AbortableHttpRequest.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.

Annotations
@Override
cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:Object

a clone of this instance.

Annotations
@Override
Exceptions
CloneNotSupportedException:
if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.
completedback to summary
public void completed()

Deprecated

Do not use.

Annotations
@Deprecated
Since
4.2
isAbortedback to summary
public boolean isAborted()

Implements org.apache.http.client.methods.HttpExecutionAware.isAborted.

Annotations
@Override
resetback to summary
public void reset()

Resets internal state of the request making it reusable.

Since
4.2
setCancellableback to summary
public void setCancellable(final Cancellable cancellable)

Implements org.apache.http.client.methods.HttpExecutionAware.setCancellable.

Doc from org.apache.http.client.methods.HttpExecutionAware.setCancellable.

Sets Cancellable for the ongoing operation.

Annotations
@Override
Since
4.2
setConnectionRequestback to summary
public void setConnectionRequest(final ClientConnectionRequest connRequest)

Implements org.apache.http.client.methods.AbortableHttpRequest.setConnectionRequest.

Doc from org.apache.http.client.methods.AbortableHttpRequest.setConnectionRequest.

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

Annotations
@Override
@Deprecated
setReleaseTriggerback to summary
public void setReleaseTrigger(final ConnectionReleaseTrigger releaseTrigger)

Implements org.apache.http.client.methods.AbortableHttpRequest.setReleaseTrigger.

Doc from org.apache.http.client.methods.AbortableHttpRequest.setReleaseTrigger.

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

Annotations
@Override
@Deprecated