org.eclipse.jetty.client
类 RedirectListener

java.lang.Object
  继承者 org.eclipse.jetty.client.HttpEventListenerWrapper
      继承者 org.eclipse.jetty.client.RedirectListener
所有已实现的接口:
HttpEventListener

public class RedirectListener
extends HttpEventListenerWrapper

RedirectListener Detect and handle the redirect responses


构造方法摘要
RedirectListener(HttpDestination destination, HttpExchange ex)
           
 
方法摘要
 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()
           
 
从类 org.eclipse.jetty.client.HttpEventListenerWrapper 继承的方法
getEventListener, isDelegatingRequests, isDelegatingResponses, onExpire, onRequestCommitted, onResponseContent, onResponseHeaderComplete, setDelegatingRequests, setDelegatingResponses, setDelegationResult, setEventListener
 
从类 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
指定者:
接口 HttpEventListener 中的 onResponseStatus
覆盖:
HttpEventListenerWrapper 中的 onResponseStatus
抛出:
IOException

onResponseHeader

public void onResponseHeader(Buffer name,
                             Buffer value)
                      throws IOException
指定者:
接口 HttpEventListener 中的 onResponseHeader
覆盖:
HttpEventListenerWrapper 中的 onResponseHeader
抛出:
IOException

onRequestComplete

public void onRequestComplete()
                       throws IOException
指定者:
接口 HttpEventListener 中的 onRequestComplete
覆盖:
HttpEventListenerWrapper 中的 onRequestComplete
抛出:
IOException

onResponseComplete

public void onResponseComplete()
                        throws IOException
指定者:
接口 HttpEventListener 中的 onResponseComplete
覆盖:
HttpEventListenerWrapper 中的 onResponseComplete
抛出:
IOException

checkExchangeComplete

public boolean checkExchangeComplete()
                              throws IOException
抛出:
IOException

onRetry

public void onRetry()
指定者:
接口 HttpEventListener 中的 onRetry
覆盖:
HttpEventListenerWrapper 中的 onRetry

onConnectionFailed

public void onConnectionFailed(Throwable ex)
Delegate failed connection

指定者:
接口 HttpEventListener 中的 onConnectionFailed
覆盖:
HttpEventListenerWrapper 中的 onConnectionFailed

onException

public void onException(Throwable ex)
Delegate onException

指定者:
接口 HttpEventListener 中的 onException
覆盖:
HttpEventListenerWrapper 中的 onException


Copyright © 2013. All Rights Reserved.