blob: a857b8ef465bea95eb8d7b78fc5ce2eda8a0227f [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu Sep 15 14:13:16 CDT 2022 -->
<title>Response.Listener (Eclipse Jetty API Doc - v11.0.12)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2022-09-15">
<meta name="description" content="declaration: package: org.eclipse.jetty.client.api, interface: Response, interface: Listener">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">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#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<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="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.eclipse.jetty.client.api</a></div>
<h1 title="Interface Response.Listener" class="title">Interface Response.Listener</h1>
</div>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>All Superinterfaces:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/EventListener.html" title="class or interface in java.util" class="external-link">EventListener</a></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 class="notes">
<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 class="notes">
<dt>Enclosing interface:</dt>
<dd><a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public static interface </span><span class="element-name type-name-label">Response.Listener</span><span class="extends-implements">
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></span></div>
<div class="block">Listener for all response events.</div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<li>
<section class="nested-class-summary" id="nested-class-summary">
<h2>Nested Class Summary</h2>
<div class="caption"><span>Nested Classes</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Interface</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>static class&nbsp;</code></div>
<div class="col-second even-row-color"><code><a href="Response.Listener.Adapter.html" class="type-name-link" title="class in org.eclipse.jetty.client.api">Response.Listener.Adapter</a></code></div>
<div class="col-last even-row-color">
<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>
</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab5" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab5', 3)" class="table-tab">Default Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#onBegin(org.eclipse.jetty.client.api.Response)" class="member-name-link">onBegin</a><wbr>(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Callback method invoked when the response line containing HTTP version,
HTTP status code and reason has been received and parsed.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#onComplete(org.eclipse.jetty.client.api.Result)" class="member-name-link">onComplete</a><wbr>(<a href="Result.html" title="class in org.eclipse.jetty.client.api">Result</a>&nbsp;result)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Callback method invoked when the request <em><b>and</b></em> the response have been processed,
either successfully or not.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#onContent(org.eclipse.jetty.client.api.Response,java.nio.ByteBuffer)" class="member-name-link">onContent</a><wbr>(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a>&nbsp;content)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Callback method invoked when the response content has been received, parsed and there is demand.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#onFailure(org.eclipse.jetty.client.api.Response,java.lang.Throwable)" class="member-name-link">onFailure</a><wbr>(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Throwable.html" title="class or interface in java.lang" class="external-link">Throwable</a>&nbsp;failure)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Callback method invoked when the response has failed in the process of being received</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#onHeader(org.eclipse.jetty.client.api.Response,org.eclipse.jetty.http.HttpField)" class="member-name-link">onHeader</a><wbr>(<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></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<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>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#onHeaders(org.eclipse.jetty.client.api.Response)" class="member-name-link">onHeaders</a><wbr>(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Callback method invoked when all the response headers have been received and parsed.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#onSuccess(org.eclipse.jetty.client.api.Response)" class="member-name-link">onSuccess</a><wbr>(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Callback method invoked when the whole response has been successfully received.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.eclipse.jetty.client.api.Response.AsyncContentListener">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></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.eclipse.jetty.client.api.Response.ContentListener">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></div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.eclipse.jetty.client.api.Response.DemandedContentListener">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></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="onBegin(org.eclipse.jetty.client.api.Response)">
<h3>onBegin</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">onBegin</span><wbr><span class="parameters">(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</span></div>
<div class="block"><span class="descfrm-type-label">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 class="notes">
<dt>Specified by:</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>Parameters:</dt>
<dd><code>response</code> - the response containing the response line data</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="onHeader(org.eclipse.jetty.client.api.Response,org.eclipse.jetty.http.HttpField)">
<h3>onHeader</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">onHeader</span><wbr><span class="parameters">(<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)</span></div>
<div class="block"><span class="descfrm-type-label">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 class="notes">
<dt>Specified by:</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>Parameters:</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>Returns:</dt>
<dd>true to process the header, false to skip processing of the header</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="onHeaders(org.eclipse.jetty.client.api.Response)">
<h3>onHeaders</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">onHeaders</span><wbr><span class="parameters">(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</span></div>
<div class="block"><span class="descfrm-type-label">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 class="notes">
<dt>Specified by:</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>Parameters:</dt>
<dd><code>response</code> - the response containing the response line data and the headers</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="onContent(org.eclipse.jetty.client.api.Response,java.nio.ByteBuffer)">
<h3>onContent</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">onContent</span><wbr><span class="parameters">(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a>&nbsp;content)</span></div>
<div class="block"><span class="descfrm-type-label">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 class="notes">
<dt>Specified by:</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>Parameters:</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>
</section>
</li>
<li>
<section class="detail" id="onSuccess(org.eclipse.jetty.client.api.Response)">
<h3>onSuccess</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">onSuccess</span><wbr><span class="parameters">(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response)</span></div>
<div class="block"><span class="descfrm-type-label">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 class="notes">
<dt>Specified by:</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>Parameters:</dt>
<dd><code>response</code> - the response containing the response line data and the headers</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="onFailure(org.eclipse.jetty.client.api.Response,java.lang.Throwable)">
<h3>onFailure</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">onFailure</span><wbr><span class="parameters">(<a href="Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;response,
<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Throwable.html" title="class or interface in java.lang" class="external-link">Throwable</a>&nbsp;failure)</span></div>
<div class="block"><span class="descfrm-type-label">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 class="notes">
<dt>Specified by:</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>Parameters:</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>
</section>
</li>
<li>
<section class="detail" id="onComplete(org.eclipse.jetty.client.api.Result)">
<h3>onComplete</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">onComplete</span><wbr><span class="parameters">(<a href="Result.html" title="class in org.eclipse.jetty.client.api">Result</a>&nbsp;result)</span></div>
<div class="block"><span class="descfrm-type-label">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 class="notes">
<dt>Specified by:</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>Parameters:</dt>
<dd><code>result</code> - the result of the request / response exchange</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &#169; 1995&#x2013;2022 <a href="https://webtide.com">Webtide</a>. All rights reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>