|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.providers.netty.NettyResponseFuture<V>
V - public final class NettyResponseFuture<V>
A Future that can be used to track when an asynchronous HTTP request has been fully processed.
| Constructor Summary | |
|---|---|
NettyResponseFuture(URI uri,
Request request,
AsyncHandler<V> asyncHandler,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
int responseTimeoutInMs,
NettyAsyncHttpProvider asyncHttpProvider)
|
|
| Method Summary | |
|---|---|
void |
abort(Throwable t)
|
boolean |
cancel(boolean force)
|
void |
done()
|
V |
get()
|
V |
get(long l,
TimeUnit tu)
|
boolean |
getAndSetAuth(boolean inDigestAuth)
|
boolean |
getAndSetStatusReceived(boolean sr)
|
AsyncHandler<V> |
getAsyncHandler()
|
org.jboss.netty.handler.codec.http.HttpResponse |
getHttpResponse()
|
boolean |
getKeepAlive()
|
org.jboss.netty.handler.codec.http.HttpRequest |
getNettyRequest()
|
Request |
getRequest()
|
com.ning.http.client.providers.netty.NettyResponseFuture.STATE |
getState()
|
URI |
getURI()
|
boolean |
hasExpired()
Is the Future still valid |
int |
incrementAndGetCurrentRedirectCount()
|
boolean |
isCancelled()
|
boolean |
isDone()
|
boolean |
isInAuth()
|
protected NettyAsyncHttpProvider |
provider()
|
void |
setHttpResponse(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)
|
void |
setKeepAlive(boolean keepAlive)
|
protected void |
setNettyRequest(org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
|
void |
setReaperFuture(Future<?> reaperFuture)
|
void |
setState(com.ning.http.client.providers.netty.NettyResponseFuture.STATE state)
|
void |
setURI(URI uri)
|
String |
toString()
|
protected void |
touch()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NettyResponseFuture(URI uri,
Request request,
AsyncHandler<V> asyncHandler,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
int responseTimeoutInMs,
NettyAsyncHttpProvider asyncHttpProvider)
| Method Detail |
|---|
public URI getURI()
throws MalformedURLException
MalformedURLExceptionpublic void setURI(URI uri)
public boolean isDone()
isDone in interface Future<V>public boolean isCancelled()
isCancelled in interface Future<V>public boolean cancel(boolean force)
cancel in interface Future<V>public boolean hasExpired()
true iff response has expired and should be terminated.
public V get()
throws InterruptedException,
ExecutionException
get in interface Future<V>InterruptedException
ExecutionException
public V get(long l,
TimeUnit tu)
throws InterruptedException,
TimeoutException,
ExecutionException
get in interface Future<V>InterruptedException
TimeoutException
ExecutionExceptionpublic final void done()
done in interface FutureImpl<V>public final void abort(Throwable t)
abort in interface FutureImpl<V>public final Request getRequest()
public final org.jboss.netty.handler.codec.http.HttpRequest getNettyRequest()
protected final void setNettyRequest(org.jboss.netty.handler.codec.http.HttpRequest nettyRequest)
public final AsyncHandler<V> getAsyncHandler()
public final boolean getKeepAlive()
public final void setKeepAlive(boolean keepAlive)
public final org.jboss.netty.handler.codec.http.HttpResponse getHttpResponse()
public final void setHttpResponse(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)
public int incrementAndGetCurrentRedirectCount()
public void setReaperFuture(Future<?> reaperFuture)
public boolean isInAuth()
public boolean getAndSetAuth(boolean inDigestAuth)
public com.ning.http.client.providers.netty.NettyResponseFuture.STATE getState()
public void setState(com.ning.http.client.providers.netty.NettyResponseFuture.STATE state)
public boolean getAndSetStatusReceived(boolean sr)
protected void touch()
protected NettyAsyncHttpProvider provider()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||