blob: 0bf371f403fa491c8e2c87c5b25e88e1db6c9b89 [file] [log] [blame]
<!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 (version 1.7.0_80) on Wed Jun 07 15:10:54 EDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AsyncMiddleManServlet.ProxyResponseListener (Jetty :: Project 9.2.22.v20170606 API)</title>
<meta name="date" content="2017-06-07">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="AsyncMiddleManServlet.ProxyResponseListener (Jetty :: Project 9.2.22.v20170606 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/AsyncMiddleManServlet.ProxyResponseListener.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 class="aboutLanguage"><em><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1149868-7']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyReader.html" title="class in org.eclipse.jetty.proxy"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyWriter.html" title="class in org.eclipse.jetty.proxy"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html" target="_top">Frames</a></li>
<li><a href="AsyncMiddleManServlet.ProxyResponseListener.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&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><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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.proxy</div>
<h2 title="Class AsyncMiddleManServlet.ProxyResponseListener" class="title">Class AsyncMiddleManServlet.ProxyResponseListener</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></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.proxy.AsyncMiddleManServlet.ProxyResponseListener</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/util/EventListener.html?is-external=true" title="class or interface in java.util">EventListener</a>, <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/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a></dd>
</dl>
<dl>
<dt>Enclosing class:</dt>
<dd><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.html" title="class in org.eclipse.jetty.proxy">AsyncMiddleManServlet</a></dd>
</dl>
<hr>
<br>
<pre>protected class <span class="strong">AsyncMiddleManServlet.ProxyResponseListener</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/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a></pre>
</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.util.Callback">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.eclipse.jetty.util.<a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a></h3>
<code><a href="../../../../org/eclipse/jetty/util/Callback.Adapter.html" title="class in org.eclipse.jetty.util">Callback.Adapter</a></code></li>
</ul>
<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&nbsp;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>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#AsyncMiddleManServlet.ProxyResponseListener(javax.servlet.http.HttpServletRequest,%20javax.servlet.http.HttpServletResponse)">AsyncMiddleManServlet.ProxyResponseListener</a></strong>(<a href="http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a>&nbsp;clientRequest,
<a href="http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServletResponse.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletResponse</a>&nbsp;proxyResponse)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#failed(java.lang.Throwable)">failed</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;failure)</code>
<div class="block">Callback invoked when the operation fails.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#onBegin(org.eclipse.jetty.client.api.Response)">onBegin</a></strong>(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse)</code>
<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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#onComplete(org.eclipse.jetty.client.api.Result)">onComplete</a></strong>(<a href="../../../../org/eclipse/jetty/client/api/Result.html" title="class in org.eclipse.jetty.client.api">Result</a>&nbsp;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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#onContent(org.eclipse.jetty.client.api.Response,%20java.nio.ByteBuffer,%20org.eclipse.jetty.util.Callback)">onContent</a></strong>(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;content,
<a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a>&nbsp;callback)</code>
<div class="block">Callback method invoked asynchronously when the response content has been received.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#onHeaders(org.eclipse.jetty.client.api.Response)">onHeaders</a></strong>(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse)</code>
<div class="block">Callback method invoked when the response headers have been received and parsed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#onSuccess(org.eclipse.jetty.client.api.Response)">onSuccess</a></strong>(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse)</code>
<div class="block">Callback method invoked when the whole response has been successfully received.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html#succeeded()">succeeded</a></strong>()</code>
<div class="block">Callback invoked when the operation completes.</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&nbsp;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#onContent(org.eclipse.jetty.client.api.Response,%20java.nio.ByteBuffer)">onContent</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onFailure(org.eclipse.jetty.client.api.Response,%20java.lang.Throwable)">onFailure</a>, <a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onHeader(org.eclipse.jetty.client.api.Response,%20org.eclipse.jetty.http.HttpField)">onHeader</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&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="AsyncMiddleManServlet.ProxyResponseListener(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AsyncMiddleManServlet.ProxyResponseListener</h4>
<pre>protected&nbsp;AsyncMiddleManServlet.ProxyResponseListener(<a href="http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServletRequest.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletRequest</a>&nbsp;clientRequest,
<a href="http://docs.oracle.com/javaee/7/api/javax/servlet/http/HttpServletResponse.html?is-external=true" title="class or interface in javax.servlet.http">HttpServletResponse</a>&nbsp;proxyResponse)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="onBegin(org.eclipse.jetty.client.api.Response)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onBegin</h4>
<pre>public&nbsp;void&nbsp;onBegin(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.BeginListener.html#onBegin(org.eclipse.jetty.client.api.Response)">Response.BeginListener</a></code></strong></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><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.BeginListener.html#onBegin(org.eclipse.jetty.client.api.Response)">onBegin</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.BeginListener.html" title="interface in org.eclipse.jetty.client.api">Response.BeginListener</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onBegin(org.eclipse.jetty.client.api.Response)">onBegin</a></code>&nbsp;in class&nbsp;<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="strong">Parameters:</span></dt><dd><code>serverResponse</code> - the response containing the response line data</dd></dl>
</li>
</ul>
<a name="onHeaders(org.eclipse.jetty.client.api.Response)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onHeaders</h4>
<pre>public&nbsp;void&nbsp;onHeaders(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.HeadersListener.html#onHeaders(org.eclipse.jetty.client.api.Response)">Response.HeadersListener</a></code></strong></div>
<div class="block">Callback method invoked when the response headers have been received and parsed.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.HeadersListener.html#onHeaders(org.eclipse.jetty.client.api.Response)">onHeaders</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.HeadersListener.html" title="interface in org.eclipse.jetty.client.api">Response.HeadersListener</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onHeaders(org.eclipse.jetty.client.api.Response)">onHeaders</a></code>&nbsp;in class&nbsp;<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="strong">Parameters:</span></dt><dd><code>serverResponse</code> - the response containing the response line data and the headers</dd></dl>
</li>
</ul>
<a name="onContent(org.eclipse.jetty.client.api.Response, java.nio.ByteBuffer, org.eclipse.jetty.util.Callback)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onContent</h4>
<pre>public&nbsp;void&nbsp;onContent(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse,
<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;content,
<a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a>&nbsp;callback)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.AsyncContentListener.html#onContent(org.eclipse.jetty.client.api.Response,%20java.nio.ByteBuffer,%20org.eclipse.jetty.util.Callback)">Response.AsyncContentListener</a></code></strong></div>
<div class="block">Callback method invoked asynchronously when the response content has been received.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.AsyncContentListener.html#onContent(org.eclipse.jetty.client.api.Response,%20java.nio.ByteBuffer,%20org.eclipse.jetty.util.Callback)">onContent</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.AsyncContentListener.html" title="interface in org.eclipse.jetty.client.api">Response.AsyncContentListener</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onContent(org.eclipse.jetty.client.api.Response,%20java.nio.ByteBuffer,%20org.eclipse.jetty.util.Callback)">onContent</a></code>&nbsp;in class&nbsp;<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="strong">Parameters:</span></dt><dd><code>serverResponse</code> - the response containing the response line data and the headers</dd><dd><code>content</code> - the content bytes received</dd><dd><code>callback</code> - the callback to call when the content is consumed.</dd></dl>
</li>
</ul>
<a name="onSuccess(org.eclipse.jetty.client.api.Response)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onSuccess</h4>
<pre>public&nbsp;void&nbsp;onSuccess(<a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api">Response</a>&nbsp;serverResponse)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.SuccessListener.html#onSuccess(org.eclipse.jetty.client.api.Response)">Response.SuccessListener</a></code></strong></div>
<div class="block">Callback method invoked when the whole response has been successfully received.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.SuccessListener.html#onSuccess(org.eclipse.jetty.client.api.Response)">onSuccess</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.SuccessListener.html" title="interface in org.eclipse.jetty.client.api">Response.SuccessListener</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onSuccess(org.eclipse.jetty.client.api.Response)">onSuccess</a></code>&nbsp;in class&nbsp;<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="strong">Parameters:</span></dt><dd><code>serverResponse</code> - the response containing the response line data and the headers</dd></dl>
</li>
</ul>
<a name="onComplete(org.eclipse.jetty.client.api.Result)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>onComplete</h4>
<pre>public&nbsp;void&nbsp;onComplete(<a href="../../../../org/eclipse/jetty/client/api/Result.html" title="class in org.eclipse.jetty.client.api">Result</a>&nbsp;result)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/client/api/Response.CompleteListener.html#onComplete(org.eclipse.jetty.client.api.Result)">Response.CompleteListener</a></code></strong></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,%20java.lang.Throwable)"><code>Response.FailureListener.onFailure(Response, Throwable)</code></a>, and only when request indicates that
it is completed.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.CompleteListener.html#onComplete(org.eclipse.jetty.client.api.Result)">onComplete</a></code>&nbsp;in interface&nbsp;<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><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/client/api/Response.Listener.Adapter.html#onComplete(org.eclipse.jetty.client.api.Result)">onComplete</a></code>&nbsp;in class&nbsp;<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="strong">Parameters:</span></dt><dd><code>result</code> - the result of the request / response exchange</dd></dl>
</li>
</ul>
<a name="succeeded()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>succeeded</h4>
<pre>public&nbsp;void&nbsp;succeeded()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/util/Callback.html#succeeded()">Callback</a></code></strong></div>
<div class="block"><p>Callback invoked when the operation completes.</p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/util/Callback.html#succeeded()">succeeded</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a></code></dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/eclipse/jetty/util/Callback.html#failed(java.lang.Throwable)"><code>Callback.failed(Throwable)</code></a></dd></dl>
</li>
</ul>
<a name="failed(java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>failed</h4>
<pre>public&nbsp;void&nbsp;failed(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;failure)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../org/eclipse/jetty/util/Callback.html#failed(java.lang.Throwable)">Callback</a></code></strong></div>
<div class="block"><p>Callback invoked when the operation fails.</p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/eclipse/jetty/util/Callback.html#failed(java.lang.Throwable)">failed</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>failure</code> - the reason for the operation failure</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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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/AsyncMiddleManServlet.ProxyResponseListener.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 class="aboutLanguage"><em><script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1149868-7']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyReader.html" title="class in org.eclipse.jetty.proxy"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyWriter.html" title="class in org.eclipse.jetty.proxy"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/proxy/AsyncMiddleManServlet.ProxyResponseListener.html" target="_top">Frames</a></li>
<li><a href="AsyncMiddleManServlet.ProxyResponseListener.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&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><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 1995-2017 <a href="http://webtide.com">Webtide</a>. All Rights Reserved.</small></p>
</body>
</html>