| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_92) on Thu Jun 07 14:26:31 EDT 2018 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>HttpReceiver (Jetty :: Project 9.3.24.v20180605 API)</title> |
| <meta name="date" content="2018-06-07"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="HttpReceiver (Jetty :: Project 9.3.24.v20180605 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/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> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/eclipse/jetty/client/HttpProxy.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/jetty/client/HttpRedirector.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/jetty/client/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: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.jetty.client</div> |
| <h2 title="Class HttpReceiver" class="title">Class HttpReceiver</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</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/http2/client/http/HttpReceiverOverHTTP2.html" title="class in org.eclipse.jetty.http2.client.http">HttpReceiverOverHTTP2</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="typeNameLabel">HttpReceiver</span> |
| extends java.lang.Object</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-org.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-java.nio.ByteBuffer-org.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="seeLabel">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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>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><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#LOG">LOG</a></span></code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="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><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#HttpReceiver-org.eclipse.jetty.client.HttpChannel-">HttpReceiver</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpChannel.html" title="class in org.eclipse.jetty.client">HttpChannel</a> channel)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#abort-org.eclipse.jetty.client.HttpExchange-java.lang.Throwable-">abort</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange, |
| java.lang.Throwable failure)</code> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#dispose--">dispose</a></span>()</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 id="i2" 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><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#getHttpChannel--">getHttpChannel</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" 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><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#getHttpDestination--">getHttpDestination</a></span>()</code> </td> |
| </tr> |
| <tr id="i4" 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><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#getHttpExchange--">getHttpExchange</a></span>()</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#reset--">reset</a></span>()</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 id="i6" class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseBegin-org.eclipse.jetty.client.HttpExchange-">responseBegin</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange)</code> |
| <div class="block">Method to be invoked when the response status code is available.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseContent-org.eclipse.jetty.client.HttpExchange-java.nio.ByteBuffer-org.eclipse.jetty.util.Callback-">responseContent</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange, |
| java.nio.ByteBuffer buffer, |
| <a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a> callback)</code> |
| <div class="block">Method to be invoked when response HTTP content is available.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseFailure-java.lang.Throwable-">responseFailure</a></span>(java.lang.Throwable failure)</code> |
| <div class="block">Method to be invoked when the response is failed.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseHeader-org.eclipse.jetty.client.HttpExchange-org.eclipse.jetty.http.HttpField-">responseHeader</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange, |
| <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a> field)</code> |
| <div class="block">Method to be invoked when a response HTTP header is available.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseHeaders-org.eclipse.jetty.client.HttpExchange-">responseHeaders</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange)</code> |
| <div class="block">Method to be invoked after all response HTTP headers are available.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#responseSuccess-org.eclipse.jetty.client.HttpExchange-">responseSuccess</a></span>(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange)</code> |
| <div class="block">Method to be invoked when the response is successful.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#storeCookie-java.net.URI-org.eclipse.jetty.http.HttpField-">storeCookie</a></span>(java.net.URI uri, |
| <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a> field)</code> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/jetty/client/HttpReceiver.html#toString--">toString</a></span>()</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="LOG"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>LOG</h4> |
| <pre>protected static final <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 HttpReceiver(<a href="../../../../org/eclipse/jetty/client/HttpChannel.html" title="class in org.eclipse.jetty.client">HttpChannel</a> 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 <a href="../../../../org/eclipse/jetty/client/HttpChannel.html" title="class in org.eclipse.jetty.client">HttpChannel</a> getHttpChannel()</pre> |
| </li> |
| </ul> |
| <a name="getHttpExchange--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHttpExchange</h4> |
| <pre>protected <a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> getHttpExchange()</pre> |
| </li> |
| </ul> |
| <a name="getHttpDestination--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHttpDestination</h4> |
| <pre>protected <a href="../../../../org/eclipse/jetty/client/HttpDestination.html" title="class in org.eclipse.jetty.client">HttpDestination</a> getHttpDestination()</pre> |
| </li> |
| </ul> |
| <a name="responseBegin-org.eclipse.jetty.client.HttpExchange-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>responseBegin</h4> |
| <pre>protected boolean responseBegin(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> 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="paramLabel">Parameters:</span></dt> |
| <dd><code>exchange</code> - the HTTP exchange</dd> |
| <dt><span class="returnLabel">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 boolean responseHeader(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange, |
| <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a> 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="paramLabel">Parameters:</span></dt> |
| <dd><code>exchange</code> - the HTTP exchange</dd> |
| <dd><code>field</code> - the response HTTP field</dd> |
| <dt><span class="returnLabel">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 void storeCookie(java.net.URI uri, |
| <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a> field)</pre> |
| </li> |
| </ul> |
| <a name="responseHeaders-org.eclipse.jetty.client.HttpExchange-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>responseHeaders</h4> |
| <pre>protected boolean responseHeaders(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> 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="paramLabel">Parameters:</span></dt> |
| <dd><code>exchange</code> - the HTTP exchange</dd> |
| <dt><span class="returnLabel">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 boolean responseContent(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange, |
| java.nio.ByteBuffer buffer, |
| <a href="../../../../org/eclipse/jetty/util/Callback.html" title="interface in org.eclipse.jetty.util">Callback</a> 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="paramLabel">Parameters:</span></dt> |
| <dd><code>exchange</code> - the HTTP exchange</dd> |
| <dd><code>buffer</code> - the response HTTP content buffer</dd> |
| <dd><code>callback</code> - the callback</dd> |
| <dt><span class="returnLabel">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 boolean responseSuccess(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> 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="paramLabel">Parameters:</span></dt> |
| <dd><code>exchange</code> - the HTTP exchange</dd> |
| <dt><span class="returnLabel">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 boolean responseFailure(java.lang.Throwable 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="paramLabel">Parameters:</span></dt> |
| <dd><code>failure</code> - the response failure</dd> |
| <dt><span class="returnLabel">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 void 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 void 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 boolean abort(<a href="../../../../org/eclipse/jetty/client/HttpExchange.html" title="class in org.eclipse.jetty.client">HttpExchange</a> exchange, |
| java.lang.Throwable failure)</pre> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public java.lang.String toString()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code>toString</code> in class <code>java.lang.Object</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> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/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> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/eclipse/jetty/client/HttpProxy.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/jetty/client/HttpRedirector.html" title="class in org.eclipse.jetty.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/jetty/client/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: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 1995–2018 <a href="http://webtide.com">Webtide</a>. All rights reserved.</small></p> |
| </body> |
| </html> |