| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_92) on Thu Jun 07 14:26:31 EDT 2018 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>RedirectProtocolHandler (Jetty :: Project 9.3.24.v20180605 API)</title> |
| <meta name="date" content="2018-06-07"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="RedirectProtocolHandler (Jetty :: Project 9.3.24.v20180605 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/RedirectProtocolHandler.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/eclipse/jetty/client/ProxyConfiguration.Proxy.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/jetty/client/RequestNotifier.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/jetty/client/RedirectProtocolHandler.html" target="_top">Frames</a></li> |
| <li><a href="RedirectProtocolHandler.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.jetty.client</div> |
| <h2 title="Class RedirectProtocolHandler" class="title">Class RedirectProtocolHandler</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">org.eclipse.jetty.client.api.Response.Listener.Adapter</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.jetty.client.RedirectProtocolHandler</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd>java.util.EventListener, <a href="../../../../org/eclipse/jetty/client/api/Response.AsyncContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.AsyncContentListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.BeginListener.html" title="interface in org.eclipse.jetty.client.api">Response.BeginListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.CompleteListener.html" title="interface in org.eclipse.jetty.client.api">Response.CompleteListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.ContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.ContentListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.FailureListener.html" title="interface in org.eclipse.jetty.client.api">Response.FailureListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.HeaderListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeaderListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.HeadersListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeadersListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.html" title="interface in org.eclipse.jetty.client.api">Response.Listener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.ResponseListener.html" title="interface in org.eclipse.jetty.client.api">Response.ResponseListener</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.SuccessListener.html" title="interface in org.eclipse.jetty.client.api">Response.SuccessListener</a>, <a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html" title="interface in org.eclipse.jetty.client">ProtocolHandler</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">RedirectProtocolHandler</span> |
| extends <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a> |
| implements <a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html" title="interface in org.eclipse.jetty.client">ProtocolHandler</a></pre> |
| <div class="block"><p>A protocol handler that handles redirect status codes 301, 302, 303, 307 and 308.</p></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.classes.inherited.from.class.org.eclipse.jetty.client.api.Response.Listener"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.<a href="../../../../org/eclipse/jetty/client/api/Response.Listener.html" title="interface in org.eclipse.jetty.client.api">Response.Listener</a></h3> |
| <code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/RedirectProtocolHandler.html#NAME">NAME</a></span></code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/RedirectProtocolHandler.html#RedirectProtocolHandler-org.eclipse.jetty.client.HttpClient-">RedirectProtocolHandler</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpClient.html" title="class in org.eclipse.jetty.client">HttpClient</a> client)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/RedirectProtocolHandler.html#accept-org.eclipse.jetty.client.api.Request-org.eclipse.jetty.client.api.Response-">accept</a></span>(<a href="../../../../org/eclipse/jetty/client/api/Request.html" title="interface in org.eclipse.jetty.client.api">Request</a> request, |
| <a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a> response)</code> |
| <div class="block">Inspects the given <code>request</code> and <code>response</code> |
| to detect whether this protocol handler should handle them.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/RedirectProtocolHandler.html#getName--">getName</a></span>()</code> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.html" title="interface in org.eclipse.jetty.client.api">Response.Listener</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/RedirectProtocolHandler.html#getResponseListener--">getResponseListener</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/RedirectProtocolHandler.html#onComplete-org.eclipse.jetty.client.api.Result-">onComplete</a></span>(<a href="../../../../org/eclipse/jetty/client/api/Result.html" title="class in org.eclipse.jetty.client.api">Result</a> result)</code> |
| <div class="block">Callback method invoked when the request <em><b>and</b></em> the response have been processed, |
| either successfully or not.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/RedirectProtocolHandler.html#onHeader-org.eclipse.jetty.client.api.Response-org.eclipse.jetty.http.HttpField-">onHeader</a></span>(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a> response, |
| <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a> field)</code> |
| <div class="block">Callback method invoked when a response header has been received, |
| returning whether the header should be processed or not.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.eclipse.jetty.client.api.Response.Listener.Adapter"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.eclipse.jetty.client.api.<a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a></h3> |
| <code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onBegin-org.eclipse.jetty.client.api.Response-">onBegin</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onContent-org.eclipse.jetty.client.api.Response-java.nio.ByteBuffer-">onContent</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onContent-org.eclipse.jetty.client.api.Response-java.nio.ByteBuffer-org.eclipse.jetty.util.Callback-">onContent</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onFailure-org.eclipse.jetty.client.api.Response-java.lang.Throwable-">onFailure</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onHeaders-org.eclipse.jetty.client.api.Response-">onHeaders</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onSuccess-org.eclipse.jetty.client.api.Response-">onSuccess</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="NAME"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>NAME</h4> |
| <pre>public static final java.lang.String NAME</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.eclipse.jetty.client.RedirectProtocolHandler.NAME">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="RedirectProtocolHandler-org.eclipse.jetty.client.HttpClient-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>RedirectProtocolHandler</h4> |
| <pre>public RedirectProtocolHandler(<a href="../../../../org/eclipse/jetty/client/HttpClient.html" title="class in org.eclipse.jetty.client">HttpClient</a> client)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getName</h4> |
| <pre>public java.lang.String getName()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html#getName--">getName</a></code> in interface <code><a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html" title="interface in org.eclipse.jetty.client">ProtocolHandler</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a unique name among protocol handlers</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="accept-org.eclipse.jetty.client.api.Request-org.eclipse.jetty.client.api.Response-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>accept</h4> |
| <pre>public boolean accept(<a href="../../../../org/eclipse/jetty/client/api/Request.html" title="interface in org.eclipse.jetty.client.api">Request</a> request, |
| <a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a> response)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html#accept-org.eclipse.jetty.client.api.Request-org.eclipse.jetty.client.api.Response-">ProtocolHandler</a></code></span></div> |
| <div class="block"><p>Inspects the given <code>request</code> and <code>response</code> |
| to detect whether this protocol handler should handle them.</p> |
| <p>For example, a redirect protocol handler can inspect the |
| response code and return true if it is a redirect response code.</p> |
| <p>This method is being called just after the response line has |
| been parsed, and before the response headers are available.</p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html#accept-org.eclipse.jetty.client.api.Request-org.eclipse.jetty.client.api.Response-">accept</a></code> in interface <code><a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html" title="interface in org.eclipse.jetty.client">ProtocolHandler</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>request</code> - the request to accept</dd> |
| <dd><code>response</code> - the response to accept</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if this protocol handler can handle the given request and response</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getResponseListener--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getResponseListener</h4> |
| <pre>public <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.html" title="interface in org.eclipse.jetty.client.api">Response.Listener</a> getResponseListener()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html#getResponseListener--">getResponseListener</a></code> in interface <code><a href="../../../../org/eclipse/jetty/client/ProtocolHandler.html" title="interface in org.eclipse.jetty.client">ProtocolHandler</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a response listener that will handle the request and response |
| on behalf of the application.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onHeader-org.eclipse.jetty.client.api.Response-org.eclipse.jetty.http.HttpField-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onHeader</h4> |
| <pre>public boolean onHeader(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a> response, |
| <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a> field)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/eclipse/jetty/client/api/Response.HeaderListener.html#onHeader-org.eclipse.jetty.client.api.Response-org.eclipse.jetty.http.HttpField-">Response.HeaderListener</a></code></span></div> |
| <div class="block">Callback method invoked when a response header has been received, |
| returning whether the header should be processed or not.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.HeaderListener.html#onHeader-org.eclipse.jetty.client.api.Response-org.eclipse.jetty.http.HttpField-">onHeader</a></code> in interface <code><a href="../../../../org/eclipse/jetty/client/api/Response.HeaderListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeaderListener</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onHeader-org.eclipse.jetty.client.api.Response-org.eclipse.jetty.http.HttpField-">onHeader</a></code> in class <code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>response</code> - the response containing the response line data and the headers so far</dd> |
| <dd><code>field</code> - the header received</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true to process the header, false to skip processing of the header</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onComplete-org.eclipse.jetty.client.api.Result-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>onComplete</h4> |
| <pre>public void onComplete(<a href="../../../../org/eclipse/jetty/client/api/Result.html" title="class in org.eclipse.jetty.client.api">Result</a> result)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/eclipse/jetty/client/api/Response.CompleteListener.html#onComplete-org.eclipse.jetty.client.api.Result-">Response.CompleteListener</a></code></span></div> |
| <div class="block">Callback method invoked when the request <em><b>and</b></em> the response have been processed, |
| either successfully or not. |
| <p> |
| The <code>result</code> parameter contains the request, the response, and eventual failures. |
| <p> |
| Requests may complete <em>after</em> response, for example in case of big uploads that are |
| discarded or read asynchronously by the server. |
| This method is always invoked <em>after</em> <a href="../../../../org/eclipse/jetty/client/api/Response.SuccessListener.html#onSuccess-org.eclipse.jetty.client.api.Response-"><code>Response.SuccessListener.onSuccess(Response)</code></a> or |
| <a href="../../../../org/eclipse/jetty/client/api/Response.FailureListener.html#onFailure-org.eclipse.jetty.client.api.Response-java.lang.Throwable-"><code>Response.FailureListener.onFailure(Response, Throwable)</code></a>, and only when request indicates that |
| it is completed.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.CompleteListener.html#onComplete-org.eclipse.jetty.client.api.Result-">onComplete</a></code> in interface <code><a href="../../../../org/eclipse/jetty/client/api/Response.CompleteListener.html" title="interface in org.eclipse.jetty.client.api">Response.CompleteListener</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onComplete-org.eclipse.jetty.client.api.Result-">onComplete</a></code> in class <code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>result</code> - the result of the request / response exchange</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/RedirectProtocolHandler.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/eclipse/jetty/client/ProxyConfiguration.Proxy.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/jetty/client/RequestNotifier.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/jetty/client/RedirectProtocolHandler.html" target="_top">Frames</a></li> |
| <li><a href="RedirectProtocolHandler.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 1995–2018 <a href="http://webtide.com">Webtide</a>. All rights reserved.</small></p> |
| </body> |
| </html> |