blob: bc96f97516e1ec5618cbb632bda300cb31788c46 [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:53 EDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>HttpReceiver (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="HttpReceiver (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/HttpReceiver.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/client/HttpProxy.html" title="class in org.eclipse.jetty.client"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/eclipse/jetty/client/HttpRedirector.html" title="class in org.eclipse.jetty.client"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/client/HttpReceiver.html" target="_top">Frames</a></li>
<li><a href="HttpReceiver.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><a href="#field_summary">Field</a>&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><a href="#field_detail">Field</a>&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.client</div>
<h2 title="Class HttpReceiver" class="title">Class HttpReceiver</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>org.eclipse.jetty.client.HttpReceiver</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/eclipse/jetty/fcgi/client/http/HttpReceiverOverFCGI.html" title="class in org.eclipse.jetty.fcgi.client.http">HttpReceiverOverFCGI</a>, <a href="../../../../org/eclipse/jetty/client/http/HttpReceiverOverHTTP.html" title="class in org.eclipse.jetty.client.http">HttpReceiverOverHTTP</a>, <a href="../../../../org/eclipse/jetty/spdy/client/http/HttpReceiverOverSPDY.html" title="class in org.eclipse.jetty.spdy.client.http">HttpReceiverOverSPDY</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="strong">HttpReceiver</span>
extends <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></pre>
<div class="block"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html" title="class in org.eclipse.jetty.client"><code>HttpReceiver</code></a> provides the abstract code to implement the various steps of the receive of HTTP responses.
<p />
<a href="../../../../org/eclipse/jetty/client/HttpReceiver.html" title="class in org.eclipse.jetty.client"><code>HttpReceiver</code></a> maintains a state machine that is updated when the steps of receiving a response are executed.
<p />
Subclasses must handle the transport-specific details, for example how to read from the raw socket and how to parse
the bytes read from the socket. Then they have to call the methods defined in this class in the following order:
<ol>
<li><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseBegin(org.eclipse.jetty.client.HttpExchange)"><code>responseBegin(HttpExchange)</code></a>, when the HTTP response data containing the HTTP status code
is available</li>
<li><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseHeader(org.eclipse.jetty.client.HttpExchange,%20org.eclipse.jetty.http.HttpField)"><code>responseHeader(HttpExchange, HttpField)</code></a>, when a HTTP field is available</li>
<li><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseHeaders(org.eclipse.jetty.client.HttpExchange)"><code>responseHeaders(HttpExchange)</code></a>, when all HTTP headers are available</li>
<li><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseContent(org.eclipse.jetty.client.HttpExchange,%20java.nio.ByteBuffer,%20org.eclipse.jetty.util.Callback)"><code>responseContent(HttpExchange, ByteBuffer, Callback)</code></a>, when HTTP content is available</li>
<li><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseSuccess(org.eclipse.jetty.client.HttpExchange)"><code>responseSuccess(HttpExchange)</code></a>, when the response is successful</li>
</ol>
At any time, subclasses may invoke <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseFailure(java.lang.Throwable)"><code>responseFailure(Throwable)</code></a> to indicate that the response has failed
(for example, because of I/O exceptions).
At any time, user threads may abort the response which will cause <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseFailure(java.lang.Throwable)"><code>responseFailure(Throwable)</code></a> to be
invoked.
<p />
The state machine maintained by this class ensures that the response steps are not executed by an I/O thread
if the response has already been failed.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/eclipse/jetty/client/HttpSender.html" title="class in org.eclipse.jetty.client"><code>HttpSender</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</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>protected static <a href="../../../../org/eclipse/jetty/util/log/Logger.html" title="interface in org.eclipse.jetty.util.log">Logger</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#LOG">LOG</a></strong></code>&nbsp;</td>
</tr>
</table>
</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/client/HttpReceiver.html#HttpReceiver(org.eclipse.jetty.client.HttpChannel)">HttpReceiver</a></strong>(<a href="../../../../org/eclipse/jetty/client/HttpChannel.html" title="class in org.eclipse.jetty.client">HttpChannel</a>&nbsp;channel)</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>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#abort(org.eclipse.jetty.client.HttpExchange,%20java.lang.Throwable)">abort</a></strong>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange,
<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>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#dispose()">dispose</a></strong>()</code>
<div class="block">Disposes this <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html" title="class in org.eclipse.jetty.client"><code>HttpReceiver</code></a> state.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/eclipse/jetty/client/HttpChannel.html" title="class in org.eclipse.jetty.client">HttpChannel</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#getHttpChannel()">getHttpChannel</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/eclipse/jetty/client/HttpDestination.html" title="class in org.eclipse.jetty.client">HttpDestination</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#getHttpDestination()">getHttpDestination</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#getHttpExchange()">getHttpExchange</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#reset()">reset</a></strong>()</code>
<div class="block">Resets this <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html" title="class in org.eclipse.jetty.client"><code>HttpReceiver</code></a> state.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseBegin(org.eclipse.jetty.client.HttpExchange)">responseBegin</a></strong>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange)</code>
<div class="block">Method to be invoked when the response status code is available.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseContent(org.eclipse.jetty.client.HttpExchange,%20java.nio.ByteBuffer,%20org.eclipse.jetty.util.Callback)">responseContent</a></strong>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange,
<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;buffer,
<a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a>&nbsp;callback)</code>
<div class="block">Method to be invoked when response HTTP content is available.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseFailure(java.lang.Throwable)">responseFailure</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">Method to be invoked when the response is failed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseHeader(org.eclipse.jetty.client.HttpExchange,%20org.eclipse.jetty.http.HttpField)">responseHeader</a></strong>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange,
<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>&nbsp;field)</code>
<div class="block">Method to be invoked when a response HTTP header is available.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseHeaders(org.eclipse.jetty.client.HttpExchange)">responseHeaders</a></strong>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange)</code>
<div class="block">Method to be invoked after all response HTTP headers are available.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseSuccess(org.eclipse.jetty.client.HttpExchange)">responseSuccess</a></strong>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange)</code>
<div class="block">Method to be invoked when the response is successful.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#storeCookie(java.net.URI,%20org.eclipse.jetty.http.HttpField)">storeCookie</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a>&nbsp;uri,
<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>&nbsp;field)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#toString()">toString</a></strong>()</code>&nbsp;</td>
</tr>
</table>
<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#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">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="LOG">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LOG</h4>
<pre>protected static final&nbsp;<a href="../../../../org/eclipse/jetty/util/log/Logger.html" title="interface in org.eclipse.jetty.util.log">Logger</a> LOG</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="HttpReceiver(org.eclipse.jetty.client.HttpChannel)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HttpReceiver</h4>
<pre>protected&nbsp;HttpReceiver(<a href="../../../../org/eclipse/jetty/client/HttpChannel.html" title="class in org.eclipse.jetty.client">HttpChannel</a>&nbsp;channel)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getHttpChannel()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHttpChannel</h4>
<pre>protected&nbsp;<a href="../../../../org/eclipse/jetty/client/HttpChannel.html" title="class in org.eclipse.jetty.client">HttpChannel</a>&nbsp;getHttpChannel()</pre>
</li>
</ul>
<a name="getHttpExchange()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHttpExchange</h4>
<pre>protected&nbsp;<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;getHttpExchange()</pre>
</li>
</ul>
<a name="getHttpDestination()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHttpDestination</h4>
<pre>protected&nbsp;<a href="../../../../org/eclipse/jetty/client/HttpDestination.html" title="class in org.eclipse.jetty.client">HttpDestination</a>&nbsp;getHttpDestination()</pre>
</li>
</ul>
<a name="responseBegin(org.eclipse.jetty.client.HttpExchange)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>responseBegin</h4>
<pre>protected&nbsp;boolean&nbsp;responseBegin(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange)</pre>
<div class="block">Method to be invoked when the response status code is available.
<p />
Subclasses must have set the response status code on the <a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api"><code>Response</code></a> object of the <a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client"><code>HttpExchange</code></a>
prior invoking this method.
<p />
This method takes case of notifying <a href="../../../../org/eclipse/jetty/client/api/Response.BeginListener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.BeginListener</code></a>s.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the HTTP exchange</dd>
<dt><span class="strong">Returns:</span></dt><dd>whether the processing should continue</dd></dl>
</li>
</ul>
<a name="responseHeader(org.eclipse.jetty.client.HttpExchange, org.eclipse.jetty.http.HttpField)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>responseHeader</h4>
<pre>protected&nbsp;boolean&nbsp;responseHeader(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange,
<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>&nbsp;field)</pre>
<div class="block">Method to be invoked when a response HTTP header is available.
<p />
Subclasses must not have added the header to the <a href="../../../../org/eclipse/jetty/client/api/Response.html" title="interface in org.eclipse.jetty.client.api"><code>Response</code></a> object of the <a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client"><code>HttpExchange</code></a>
prior invoking this method.
<p />
This method takes case of notifying <a href="../../../../org/eclipse/jetty/client/api/Response.HeaderListener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.HeaderListener</code></a>s and storing cookies.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the HTTP exchange</dd><dd><code>field</code> - the response HTTP field</dd>
<dt><span class="strong">Returns:</span></dt><dd>whether the processing should continue</dd></dl>
</li>
</ul>
<a name="storeCookie(java.net.URI, org.eclipse.jetty.http.HttpField)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>storeCookie</h4>
<pre>protected&nbsp;void&nbsp;storeCookie(<a href="http://docs.oracle.com/javase/7/docs/api/java/net/URI.html?is-external=true" title="class or interface in java.net">URI</a>&nbsp;uri,
<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>&nbsp;field)</pre>
</li>
</ul>
<a name="responseHeaders(org.eclipse.jetty.client.HttpExchange)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>responseHeaders</h4>
<pre>protected&nbsp;boolean&nbsp;responseHeaders(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange)</pre>
<div class="block">Method to be invoked after all response HTTP headers are available.
<p />
This method takes case of notifying <a href="../../../../org/eclipse/jetty/client/api/Response.HeadersListener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.HeadersListener</code></a>s.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the HTTP exchange</dd>
<dt><span class="strong">Returns:</span></dt><dd>whether the processing should continue</dd></dl>
</li>
</ul>
<a name="responseContent(org.eclipse.jetty.client.HttpExchange, java.nio.ByteBuffer, org.eclipse.jetty.util.Callback)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>responseContent</h4>
<pre>protected&nbsp;boolean&nbsp;responseContent(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange,
<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;buffer,
<a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a>&nbsp;callback)</pre>
<div class="block">Method to be invoked when response HTTP content is available.
<p />
This method takes case of decoding the content, if necessary, and notifying <a href="../../../../org/eclipse/jetty/client/api/Response.ContentListener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.ContentListener</code></a>s.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the HTTP exchange</dd><dd><code>buffer</code> - the response HTTP content buffer</dd>
<dt><span class="strong">Returns:</span></dt><dd>whether the processing should continue</dd></dl>
</li>
</ul>
<a name="responseSuccess(org.eclipse.jetty.client.HttpExchange)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>responseSuccess</h4>
<pre>protected&nbsp;boolean&nbsp;responseSuccess(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange)</pre>
<div class="block">Method to be invoked when the response is successful.
<p />
This method takes case of notifying <a href="../../../../org/eclipse/jetty/client/api/Response.SuccessListener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.SuccessListener</code></a>s and possibly
<a href="../../../../org/eclipse/jetty/client/api/Response.CompleteListener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.CompleteListener</code></a>s (if the exchange is completed).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>exchange</code> - the HTTP exchange</dd>
<dt><span class="strong">Returns:</span></dt><dd>whether the response was processed as successful</dd></dl>
</li>
</ul>
<a name="responseFailure(java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>responseFailure</h4>
<pre>protected&nbsp;boolean&nbsp;responseFailure(<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">Method to be invoked when the response is failed.
<p />
This method takes care of notifying <a href="../../../../org/eclipse/jetty/client/api/Response.FailureListener.html" title="interface in org.eclipse.jetty.client.api"><code>Response.FailureListener</code></a>s.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>failure</code> - the response failure</dd>
<dt><span class="strong">Returns:</span></dt><dd>whether the response was processed as failed</dd></dl>
</li>
</ul>
<a name="reset()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>protected&nbsp;void&nbsp;reset()</pre>
<div class="block">Resets this <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html" title="class in org.eclipse.jetty.client"><code>HttpReceiver</code></a> state.
<p />
Subclasses should override (but remember to call <code>super</code>) to reset their own state.
<p />
Either this method or <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#dispose()"><code>dispose()</code></a> is called.</div>
</li>
</ul>
<a name="dispose()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dispose</h4>
<pre>protected&nbsp;void&nbsp;dispose()</pre>
<div class="block">Disposes this <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html" title="class in org.eclipse.jetty.client"><code>HttpReceiver</code></a> state.
<p />
Subclasses should override (but remember to call <code>super</code>) to dispose their own state.
<p />
Either this method or <a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#reset()"><code>reset()</code></a> is called.</div>
</li>
</ul>
<a name="abort(org.eclipse.jetty.client.HttpExchange, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>abort</h4>
<pre>public&nbsp;boolean&nbsp;abort(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a>&nbsp;exchange,
<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>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;toString()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><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></code>&nbsp;in class&nbsp;<code><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></code></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/HttpReceiver.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/client/HttpProxy.html" title="class in org.eclipse.jetty.client"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/eclipse/jetty/client/HttpRedirector.html" title="class in org.eclipse.jetty.client"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/eclipse/jetty/client/HttpReceiver.html" target="_top">Frames</a></li>
<li><a href="HttpReceiver.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><a href="#field_summary">Field</a>&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><a href="#field_detail">Field</a>&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>