public class RedirectListener extends HttpEventListenerWrapper
Constructor and Description |
---|
RedirectListener(HttpDestination destination,
HttpExchange ex) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkExchangeComplete() |
void |
onConnectionFailed(Throwable ex)
Delegate failed connection
|
void |
onException(Throwable ex)
Delegate onException
|
void |
onRequestComplete() |
void |
onResponseComplete() |
void |
onResponseHeader(Buffer name,
Buffer value) |
void |
onResponseStatus(Buffer version,
int status,
Buffer reason) |
void |
onRetry() |
getEventListener, isDelegatingRequests, isDelegatingResponses, onExpire, onRequestCommitted, onResponseContent, onResponseHeaderComplete, setDelegatingRequests, setDelegatingResponses, setDelegationResult, setEventListener
public RedirectListener(HttpDestination destination, HttpExchange ex)
public void onResponseStatus(Buffer version, int status, Buffer reason) throws IOException
onResponseStatus
in interface HttpEventListener
onResponseStatus
in class HttpEventListenerWrapper
IOException
public void onResponseHeader(Buffer name, Buffer value) throws IOException
onResponseHeader
in interface HttpEventListener
onResponseHeader
in class HttpEventListenerWrapper
IOException
public void onRequestComplete() throws IOException
onRequestComplete
in interface HttpEventListener
onRequestComplete
in class HttpEventListenerWrapper
IOException
public void onResponseComplete() throws IOException
onResponseComplete
in interface HttpEventListener
onResponseComplete
in class HttpEventListenerWrapper
IOException
public boolean checkExchangeComplete() throws IOException
IOException
public void onRetry()
onRetry
in interface HttpEventListener
onRetry
in class HttpEventListenerWrapper
public void onConnectionFailed(Throwable ex)
onConnectionFailed
in interface HttpEventListener
onConnectionFailed
in class HttpEventListenerWrapper
public void onException(Throwable ex)
onException
in interface HttpEventListener
onException
in class HttpEventListenerWrapper
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.