org.eclipse.jetty.client
Class RedirectListener
java.lang.Object
org.eclipse.jetty.client.HttpEventListenerWrapper
org.eclipse.jetty.client.RedirectListener
- All Implemented Interfaces:
- HttpEventListener
public class RedirectListener
- extends HttpEventListenerWrapper
RedirectListener
Detect and handle the redirect responses
Methods inherited from class org.eclipse.jetty.client.HttpEventListenerWrapper |
getEventListener, isDelegatingRequests, isDelegatingResponses, onConnectionFailed, onException, onExpire, onRequestCommitted, onResponseContent, onResponseHeaderComplete, setDelegatingRequests, setDelegatingResponses, setDelegationResult, setEventListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RedirectListener
public RedirectListener(HttpDestination destination,
HttpExchange ex)
onResponseStatus
public void onResponseStatus(Buffer version,
int status,
Buffer reason)
throws IOException
- Specified by:
onResponseStatus
in interface HttpEventListener
- Overrides:
onResponseStatus
in class HttpEventListenerWrapper
- Throws:
IOException
onResponseHeader
public void onResponseHeader(Buffer name,
Buffer value)
throws IOException
- Specified by:
onResponseHeader
in interface HttpEventListener
- Overrides:
onResponseHeader
in class HttpEventListenerWrapper
- Throws:
IOException
onRequestComplete
public void onRequestComplete()
throws IOException
- Specified by:
onRequestComplete
in interface HttpEventListener
- Overrides:
onRequestComplete
in class HttpEventListenerWrapper
- Throws:
IOException
onResponseComplete
public void onResponseComplete()
throws IOException
- Specified by:
onResponseComplete
in interface HttpEventListener
- Overrides:
onResponseComplete
in class HttpEventListenerWrapper
- Throws:
IOException
checkExchangeComplete
public boolean checkExchangeComplete()
throws IOException
- Throws:
IOException
onRetry
public void onRetry()
- Specified by:
onRetry
in interface HttpEventListener
- Overrides:
onRetry
in class HttpEventListenerWrapper
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.