blob: d966dece16170ddaec6d9d03af2e0259e89bc0f5 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.13) on Tue Feb 08 12:40:05 CST 2022 -->
<title>Response.Listener (Eclipse Jetty API Doc - v10.0.8)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2022-02-08">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Response.Listener (Eclipse Jetty API Doc - v10.0.8)";
}
}
catch(err) {
}
//-->
var data = {"i0":18,"i1":18,"i2":18,"i3":18,"i4":18,"i5":18,"i6":18};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Response.Listener.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" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.eclipse.jetty.client.api</a></div>
<h2 title="Interface Response.Listener" class="title">Interface Response.Listener</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code>java.util.EventListener</code>, <code><a href="Response.AsyncContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.AsyncContentListener</a></code>, <code><a href="Response.BeginListener.html" title="interface in org.eclipse.jetty.client.api">Response.BeginListener</a></code>, <code><a href="Response.CompleteListener.html" title="interface in org.eclipse.jetty.client.api">Response.CompleteListener</a></code>, <code><a href="Response.ContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.ContentListener</a></code>, <code><a href="Response.DemandedContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.DemandedContentListener</a></code>, <code><a href="Response.FailureListener.html" title="interface in org.eclipse.jetty.client.api">Response.FailureListener</a></code>, <code><a href="Response.HeaderListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeaderListener</a></code>, <code><a href="Response.HeadersListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeadersListener</a></code>, <code><a href="Response.ResponseListener.html" title="interface in org.eclipse.jetty.client.api">Response.ResponseListener</a></code>, <code><a href="Response.SuccessListener.html" title="interface in org.eclipse.jetty.client.api">Response.SuccessListener</a></code></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><code><a href="../../proxy/AsyncMiddleManServlet.ProxyResponseListener.html" title="class in org.eclipse.jetty.proxy">AsyncMiddleManServlet.ProxyResponseListener</a></code>, <code><a href="../util/BufferingResponseListener.html" title="class in org.eclipse.jetty.client.util">BufferingResponseListener</a></code>, <code><a href="../ContinueProtocolHandler.ContinueListener.html" title="class in org.eclipse.jetty.client">ContinueProtocolHandler.ContinueListener</a></code>, <code><a href="../util/FutureResponseListener.html" title="class in org.eclipse.jetty.client.util">FutureResponseListener</a></code>, <code><a href="../util/InputStreamResponseListener.html" title="class in org.eclipse.jetty.client.util">InputStreamResponseListener</a></code>, <code><a href="../../proxy/ProxyServlet.ProxyResponseListener.html" title="class in org.eclipse.jetty.proxy">ProxyServlet.ProxyResponseListener</a></code>, <code><a href="../RedirectProtocolHandler.html" title="class in org.eclipse.jetty.client">RedirectProtocolHandler</a></code>, <code><a href="Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a></code></dd>
</dl>
<dl>
<dt>Enclosing interface:</dt>
<dd><a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a></dd>
</dl>
<hr>
<pre>public static interface <span class="typeNameLabel">Response.Listener</span>
extends <a href="Response.BeginListener.html" title="interface in org.eclipse.jetty.client.api">Response.BeginListener</a>, <a href="Response.HeaderListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeaderListener</a>, <a href="Response.HeadersListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeadersListener</a>, <a href="Response.ContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.ContentListener</a>, <a href="Response.SuccessListener.html" title="interface in org.eclipse.jetty.client.api">Response.SuccessListener</a>, <a href="Response.FailureListener.html" title="interface in org.eclipse.jetty.client.api">Response.FailureListener</a>, <a href="Response.CompleteListener.html" title="interface in org.eclipse.jetty.client.api">Response.CompleteListener</a></pre>
<div class="block">Listener for all response events.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Response.Listener.Adapter.html" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a></span></code></th>
<td class="colLast">
<div class="block">An empty implementation of <a href="Response.Listener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.Listener</code></a></div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>default void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onBegin(org.eclipse.jetty.client.api.Response)">onBegin</a></span>&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</code></th>
<td class="colLast">
<div class="block">Callback method invoked when the response line containing HTTP version,
HTTP status code and reason has been received and parsed.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>default void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onComplete(org.eclipse.jetty.client.api.Result)">onComplete</a></span>&#8203;(<a href="Result.html" title="class in org.eclipse.jetty.client.api">Result</a>&nbsp;result)</code></th>
<td class="colLast">
<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="i2" class="altColor">
<td class="colFirst"><code>default void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onContent(org.eclipse.jetty.client.api.Response,java.nio.ByteBuffer)">onContent</a></span>&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
java.nio.ByteBuffer&nbsp;content)</code></th>
<td class="colLast">
<div class="block">Callback method invoked when the response content has been received, parsed and there is demand.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>default void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onFailure(org.eclipse.jetty.client.api.Response,java.lang.Throwable)">onFailure</a></span>&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
java.lang.Throwable&nbsp;failure)</code></th>
<td class="colLast">
<div class="block">Callback method invoked when the response has failed in the process of being received</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>default boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onHeader(org.eclipse.jetty.client.api.Response,org.eclipse.jetty.http.HttpField)">onHeader</a></span>&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
<a href="../../http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>&nbsp;field)</code></th>
<td class="colLast">
<div class="block">Callback method invoked when a response header has been received and parsed,
returning whether the header should be processed or not.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>default void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onHeaders(org.eclipse.jetty.client.api.Response)">onHeaders</a></span>&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</code></th>
<td class="colLast">
<div class="block">Callback method invoked when all the response headers have been received and parsed.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>default void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#onSuccess(org.eclipse.jetty.client.api.Response)">onSuccess</a></span>&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</code></th>
<td class="colLast">
<div class="block">Callback method invoked when the whole response has been successfully received.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.client.api.Response.AsyncContentListener">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.client.api.<a href="Response.AsyncContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.AsyncContentListener</a></h3>
<code><a href="Response.AsyncContentListener.html#onContent(org.eclipse.jetty.client.api.Response,java.util.function.LongConsumer,java.nio.ByteBuffer,org.eclipse.jetty.util.Callback)">onContent</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.client.api.Response.ContentListener">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.client.api.<a href="Response.ContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.ContentListener</a></h3>
<code><a href="Response.ContentListener.html#onContent(org.eclipse.jetty.client.api.Response,java.nio.ByteBuffer,org.eclipse.jetty.util.Callback)">onContent</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.eclipse.jetty.client.api.Response.DemandedContentListener">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.jetty.client.api.<a href="Response.DemandedContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.DemandedContentListener</a></h3>
<code><a href="Response.DemandedContentListener.html#onBeforeContent(org.eclipse.jetty.client.api.Response,java.util.function.LongConsumer)">onBeforeContent</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="onBegin(org.eclipse.jetty.client.api.Response)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onBegin</h4>
<pre class="methodSignature">default&nbsp;void&nbsp;onBegin&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Response.BeginListener.html#onBegin(org.eclipse.jetty.client.api.Response)">Response.BeginListener</a></code></span></div>
<div class="block">Callback method invoked when the response line containing HTTP version,
HTTP status code and reason has been received and parsed.
<p>
This method is the best approximation to detect when the first bytes of the response arrived to the client.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Response.BeginListener.html#onBegin(org.eclipse.jetty.client.api.Response)">onBegin</a></code>&nbsp;in interface&nbsp;<code><a href="Response.BeginListener.html" title="interface in org.eclipse.jetty.client.api">Response.BeginListener</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>response</code> - the response containing the response line data</dd>
</dl>
</li>
</ul>
<a id="onHeader(org.eclipse.jetty.client.api.Response,org.eclipse.jetty.http.HttpField)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onHeader</h4>
<pre class="methodSignature">default&nbsp;boolean&nbsp;onHeader&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
<a href="../../http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>&nbsp;field)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="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 and parsed,
returning whether the header should be processed or not.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Response.HeaderListener.html#onHeader(org.eclipse.jetty.client.api.Response,org.eclipse.jetty.http.HttpField)">onHeader</a></code>&nbsp;in interface&nbsp;<code><a href="Response.HeaderListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeaderListener</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 id="onHeaders(org.eclipse.jetty.client.api.Response)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onHeaders</h4>
<pre class="methodSignature">default&nbsp;void&nbsp;onHeaders&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Response.HeadersListener.html#onHeaders(org.eclipse.jetty.client.api.Response)">Response.HeadersListener</a></code></span></div>
<div class="block">Callback method invoked when all the response headers have been received and parsed.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Response.HeadersListener.html#onHeaders(org.eclipse.jetty.client.api.Response)">onHeaders</a></code>&nbsp;in interface&nbsp;<code><a href="Response.HeadersListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeadersListener</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>response</code> - the response containing the response line data and the headers</dd>
</dl>
</li>
</ul>
<a id="onContent(org.eclipse.jetty.client.api.Response,java.nio.ByteBuffer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onContent</h4>
<pre class="methodSignature">default&nbsp;void&nbsp;onContent&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
java.nio.ByteBuffer&nbsp;content)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Response.ContentListener.html#onContent(org.eclipse.jetty.client.api.Response,java.nio.ByteBuffer)">Response.ContentListener</a></code></span></div>
<div class="block">Callback method invoked when the response content has been received, parsed and there is demand.
This method may be invoked multiple times, and the <code>content</code> buffer
must be consumed (or copied) before returning from this method.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Response.ContentListener.html#onContent(org.eclipse.jetty.client.api.Response,java.nio.ByteBuffer)">onContent</a></code>&nbsp;in interface&nbsp;<code><a href="Response.ContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.ContentListener</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>response</code> - the response containing the response line data and the headers</dd>
<dd><code>content</code> - the content bytes received</dd>
</dl>
</li>
</ul>
<a id="onSuccess(org.eclipse.jetty.client.api.Response)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onSuccess</h4>
<pre class="methodSignature">default&nbsp;void&nbsp;onSuccess&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Response.SuccessListener.html#onSuccess(org.eclipse.jetty.client.api.Response)">Response.SuccessListener</a></code></span></div>
<div class="block">Callback method invoked when the whole response has been successfully received.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Response.SuccessListener.html#onSuccess(org.eclipse.jetty.client.api.Response)">onSuccess</a></code>&nbsp;in interface&nbsp;<code><a href="Response.SuccessListener.html" title="interface in org.eclipse.jetty.client.api">Response.SuccessListener</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>response</code> - the response containing the response line data and the headers</dd>
</dl>
</li>
</ul>
<a id="onFailure(org.eclipse.jetty.client.api.Response,java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onFailure</h4>
<pre class="methodSignature">default&nbsp;void&nbsp;onFailure&#8203;(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
java.lang.Throwable&nbsp;failure)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="Response.FailureListener.html#onFailure(org.eclipse.jetty.client.api.Response,java.lang.Throwable)">Response.FailureListener</a></code></span></div>
<div class="block">Callback method invoked when the response has failed in the process of being received</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="Response.FailureListener.html#onFailure(org.eclipse.jetty.client.api.Response,java.lang.Throwable)">onFailure</a></code>&nbsp;in interface&nbsp;<code><a href="Response.FailureListener.html" title="interface in org.eclipse.jetty.client.api">Response.FailureListener</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>response</code> - the response containing data up to the point the failure happened</dd>
<dd><code>failure</code> - the failure happened</dd>
</dl>
</li>
</ul>
<a id="onComplete(org.eclipse.jetty.client.api.Result)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>onComplete</h4>
<pre class="methodSignature">default&nbsp;void&nbsp;onComplete&#8203;(<a href="Result.html" title="class in org.eclipse.jetty.client.api">Result</a>&nbsp;result)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="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="Response.SuccessListener.html#onSuccess(org.eclipse.jetty.client.api.Response)"><code>Response.SuccessListener.onSuccess(Response)</code></a> or
<a href="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="Response.CompleteListener.html#onComplete(org.eclipse.jetty.client.api.Result)">onComplete</a></code>&nbsp;in interface&nbsp;<code><a href="Response.CompleteListener.html" title="interface in org.eclipse.jetty.client.api">Response.CompleteListener</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>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/Response.Listener.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" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 1995&#x2013;2022 <a href="https://webtide.com">Webtide</a>. All rights reserved.</small></p>
</footer>
</body>
</html>