public class HttpEventListenerWrapper extends Object implements HttpEventListener
| Constructor and Description |
|---|
HttpEventListenerWrapper() |
HttpEventListenerWrapper(HttpEventListener eventListener,
boolean delegating) |
| Modifier and Type | Method and Description |
|---|---|
HttpEventListener |
getEventListener() |
boolean |
isDelegatingRequests() |
boolean |
isDelegatingResponses() |
void |
onConnectionFailed(Throwable ex) |
void |
onException(Throwable ex) |
void |
onExpire() |
void |
onRequestCommitted() |
void |
onRequestComplete() |
void |
onResponseComplete() |
void |
onResponseContent(Buffer content) |
void |
onResponseHeader(Buffer name,
Buffer value) |
void |
onResponseHeaderComplete() |
void |
onResponseStatus(Buffer version,
int status,
Buffer reason) |
void |
onRetry() |
void |
setDelegatingRequests(boolean delegating) |
void |
setDelegatingResponses(boolean delegating) |
void |
setDelegationResult(boolean result) |
void |
setEventListener(HttpEventListener listener) |
public HttpEventListenerWrapper()
public HttpEventListenerWrapper(HttpEventListener eventListener, boolean delegating)
public HttpEventListener getEventListener()
public void setEventListener(HttpEventListener listener)
public boolean isDelegatingRequests()
public boolean isDelegatingResponses()
public void setDelegatingRequests(boolean delegating)
public void setDelegatingResponses(boolean delegating)
public void setDelegationResult(boolean result)
public void onConnectionFailed(Throwable ex)
onConnectionFailed in interface HttpEventListenerpublic void onException(Throwable ex)
onException in interface HttpEventListenerpublic void onExpire()
onExpire in interface HttpEventListenerpublic void onRequestCommitted()
throws IOException
onRequestCommitted in interface HttpEventListenerIOExceptionpublic void onRequestComplete()
throws IOException
onRequestComplete in interface HttpEventListenerIOExceptionpublic void onResponseComplete()
throws IOException
onResponseComplete in interface HttpEventListenerIOExceptionpublic void onResponseContent(Buffer content) throws IOException
onResponseContent in interface HttpEventListenerIOExceptionpublic void onResponseHeader(Buffer name, Buffer value) throws IOException
onResponseHeader in interface HttpEventListenerIOExceptionpublic void onResponseHeaderComplete()
throws IOException
onResponseHeaderComplete in interface HttpEventListenerIOExceptionpublic void onResponseStatus(Buffer version, int status, Buffer reason) throws IOException
onResponseStatus in interface HttpEventListenerIOExceptionpublic void onRetry()
onRetry in interface HttpEventListenerCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.