| <!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:49 EDT 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>HttpParser (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="HttpParser (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/HttpParser.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/http/HttpMethod.html" title="enum in org.eclipse.jetty.http"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/jetty/http/HttpParser.HttpHandler.html" title="interface in org.eclipse.jetty.http"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/jetty/http/HttpParser.html" target="_top">Frames</a></li> |
| <li><a href="HttpParser.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><a href="#nested_class_summary">Nested</a> | </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.http</div> |
| <h2 title="Class HttpParser" class="title">Class HttpParser</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.http.HttpParser</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">HttpParser</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 Parser for HTTP 0.9, 1.0 and 1.1 |
| <p> |
| This parser parses HTTP client and server messages from buffers |
| passed in the <a href="../../../../org/eclipse/jetty/http/HttpParser.html#parseNext(java.nio.ByteBuffer)"><code>parseNext(ByteBuffer)</code></a> method. The parsed |
| elements of the HTTP message are passed as event calls to the |
| <a href="../../../../org/eclipse/jetty/http/HttpParser.HttpHandler.html" title="interface in org.eclipse.jetty.http"><code>HttpParser.HttpHandler</code></a> instance the parser is constructed with. |
| If the passed handler is a <a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http"><code>HttpParser.RequestHandler</code></a> then server side |
| parsing is performed and if it is a <a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http"><code>HttpParser.ResponseHandler</code></a>, then |
| client side parsing is done. |
| </p> |
| <p> |
| The contract of the <a href="../../../../org/eclipse/jetty/http/HttpParser.HttpHandler.html" title="interface in org.eclipse.jetty.http"><code>HttpParser.HttpHandler</code></a> API is that if a call returns |
| true then the call to <a href="../../../../org/eclipse/jetty/http/HttpParser.html#parseNext(java.nio.ByteBuffer)"><code>parseNext(ByteBuffer)</code></a> will return as |
| soon as possible also with a true response. Typically this indicates |
| that the parsing has reached a stage where the caller should process |
| the events accumulated by the handler. It is the preferred calling |
| style that handling such as calling a servlet to process a request, |
| should be done after a true return from <a href="../../../../org/eclipse/jetty/http/HttpParser.html#parseNext(java.nio.ByteBuffer)"><code>parseNext(ByteBuffer)</code></a> |
| rather than from within the scope of a call like |
| <a href="../../../../org/eclipse/jetty/http/HttpParser.HttpHandler.html#messageComplete()"><code>HttpParser.HttpHandler.messageComplete()</code></a> |
| </p> |
| <p> |
| For performance, the parse is heavily dependent on the |
| <a href="../../../../org/eclipse/jetty/util/Trie.html#getBest(java.nio.ByteBuffer,%20int,%20int)"><code>Trie.getBest(ByteBuffer, int, int)</code></a> method to look ahead in a |
| single pass for both the structure ( : and CRLF ) and semantic (which |
| header and value) of a header. Specifically the static <a href="../../../../org/eclipse/jetty/http/HttpHeader.html#CACHE"><code>HttpHeader.CACHE</code></a> |
| is used to lookup common combinations of headers and values |
| (eg. "Connection: close"), or just header names (eg. "Connection:" ). |
| For headers who's value is not known statically (eg. Host, COOKIE) then a |
| per parser dynamic Trie of <a href="../../../../org/eclipse/jetty/http/HttpFields.html" title="class in org.eclipse.jetty.http"><code>HttpFields</code></a> from previous parsed messages |
| is used to help the parsing of subsequent messages. |
| </p> |
| <p> |
| If the system property "org.eclipse.jetty.http.HttpParser.STRICT" is set to true, |
| then the parser will strictly pass on the exact strings received for methods and header |
| fields. Otherwise a fast case insensitive string lookup is used that may alter the |
| case of the method and/or headers |
| </p></div> |
| </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> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.HttpHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.HttpHandler</a><<a href="../../../../org/eclipse/jetty/http/HttpParser.HttpHandler.html" title="type parameter in HttpParser.HttpHandler">T</a>></strong></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.ProxyHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ProxyHandler</a></strong></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.RequestHandler</a><<a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="type parameter in HttpParser.RequestHandler">T</a>></strong></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ResponseHandler</a><<a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="type parameter in HttpParser.ResponseHandler">T</a>></strong></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.State.html" title="enum in org.eclipse.jetty.http">HttpParser.State</a></strong></code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- =========== 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"> </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>static boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#__STRICT">__STRICT</a></strong></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/jetty/util/Trie.html" title="interface in org.eclipse.jetty.util">Trie</a><<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#CACHE">CACHE</a></strong></code> |
| <div class="block">Cache of common <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http"><code>HttpField</code></a>s including: |
| Common static combinations such as: |
| Connection: close |
| Accept-Encoding: gzip |
| Content-Length: 0 |
| |
| Combinations of Content-Type header for common mime types by common charsets |
| Most common headers with null values so that a lookup will at least |
| determine the header name even if the name:value combination is not cached |
| </div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#INITIAL_URI_LENGTH">INITIAL_URI_LENGTH</a></strong></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>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/http/HttpParser.html#LOG">LOG</a></strong></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="overviewSummary" 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="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#HttpParser(org.eclipse.jetty.http.HttpParser.RequestHandler)">HttpParser</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.RequestHandler</a><<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>> handler)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#HttpParser(org.eclipse.jetty.http.HttpParser.RequestHandler,%20int)">HttpParser</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.RequestHandler</a><<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>> handler, |
| int maxHeaderBytes)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#HttpParser(org.eclipse.jetty.http.HttpParser.RequestHandler,%20int,%20boolean)">HttpParser</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.RequestHandler</a><<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>> handler, |
| int maxHeaderBytes, |
| boolean strict)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#HttpParser(org.eclipse.jetty.http.HttpParser.ResponseHandler)">HttpParser</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ResponseHandler</a><<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>> handler)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#HttpParser(org.eclipse.jetty.http.HttpParser.ResponseHandler,%20int)">HttpParser</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ResponseHandler</a><<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>> handler, |
| int maxHeaderBytes)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#HttpParser(org.eclipse.jetty.http.HttpParser.ResponseHandler,%20int,%20boolean)">HttpParser</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ResponseHandler</a><<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>> handler, |
| int maxHeaderBytes, |
| boolean strict)</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </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/http/HttpParser.html#atEOF()">atEOF</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#close()">close</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#getContentLength()">getContentLength</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#getContentRead()">getContentRead</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/eclipse/jetty/util/Trie.html" title="interface in org.eclipse.jetty.util">Trie</a><<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#getFieldCache()">getFieldCache</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/eclipse/jetty/http/HttpParser.State.html" title="enum in org.eclipse.jetty.http">HttpParser.State</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#getState()">getState</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#inContentState()">inContentState</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#inHeaderState()">inHeaderState</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#isAtEOF()">isAtEOF</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#isChunking()">isChunking</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#isClosed()">isClosed</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#isComplete()">isComplete</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#isIdle()">isIdle</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#isStart()">isStart</a></strong>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#isState(org.eclipse.jetty.http.HttpParser.State)">isState</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.State.html" title="enum in org.eclipse.jetty.http">HttpParser.State</a> state)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#parseContent(java.nio.ByteBuffer)">parseContent</a></strong>(<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> buffer)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#parseHeaders(java.nio.ByteBuffer)">parseHeaders</a></strong>(<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> buffer)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#parseNext(java.nio.ByteBuffer)">parseNext</a></strong>(<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> buffer)</code> |
| <div class="block">Parse until next Event.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#reset()">reset</a></strong>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#setHeadResponse(boolean)">setHeadResponse</a></strong>(boolean head)</code> |
| <div class="block">Set if a HEAD response is expected</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#setResponseStatus(int)">setResponseStatus</a></strong>(int status)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/jetty/http/HttpParser.html#setState(org.eclipse.jetty.http.HttpParser.State)">setState</a></strong>(<a href="../../../../org/eclipse/jetty/http/HttpParser.State.html" title="enum in org.eclipse.jetty.http">HttpParser.State</a> state)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <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/http/HttpParser.html#toString()">toString</a></strong>()</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.<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="blockList"> |
| <li class="blockList"> |
| <h4>LOG</h4> |
| <pre>public 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> |
| <a name="__STRICT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>__STRICT</h4> |
| <pre>public static final boolean __STRICT</pre> |
| </li> |
| </ul> |
| <a name="INITIAL_URI_LENGTH"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>INITIAL_URI_LENGTH</h4> |
| <pre>public static final int INITIAL_URI_LENGTH</pre> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.eclipse.jetty.http.HttpParser.INITIAL_URI_LENGTH">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="CACHE"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>CACHE</h4> |
| <pre>public static final <a href="../../../../org/eclipse/jetty/util/Trie.html" title="interface in org.eclipse.jetty.util">Trie</a><<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>> CACHE</pre> |
| <div class="block">Cache of common <a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http"><code>HttpField</code></a>s including: <UL> |
| <LI>Common static combinations such as:<UL> |
| <li>Connection: close |
| <li>Accept-Encoding: gzip |
| <li>Content-Length: 0 |
| </ul> |
| <li>Combinations of Content-Type header for common mime types by common charsets |
| <li>Most common headers with null values so that a lookup will at least |
| determine the header name even if the name:value combination is not cached |
| </ul></div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="HttpParser(org.eclipse.jetty.http.HttpParser.RequestHandler)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>HttpParser</h4> |
| <pre>public HttpParser(<a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.RequestHandler</a><<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>> handler)</pre> |
| </li> |
| </ul> |
| <a name="HttpParser(org.eclipse.jetty.http.HttpParser.ResponseHandler)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>HttpParser</h4> |
| <pre>public HttpParser(<a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ResponseHandler</a><<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>> handler)</pre> |
| </li> |
| </ul> |
| <a name="HttpParser(org.eclipse.jetty.http.HttpParser.RequestHandler, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>HttpParser</h4> |
| <pre>public HttpParser(<a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.RequestHandler</a><<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>> handler, |
| int maxHeaderBytes)</pre> |
| </li> |
| </ul> |
| <a name="HttpParser(org.eclipse.jetty.http.HttpParser.ResponseHandler, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>HttpParser</h4> |
| <pre>public HttpParser(<a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ResponseHandler</a><<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>> handler, |
| int maxHeaderBytes)</pre> |
| </li> |
| </ul> |
| <a name="HttpParser(org.eclipse.jetty.http.HttpParser.RequestHandler, int, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>HttpParser</h4> |
| <pre>public HttpParser(<a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.RequestHandler</a><<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>> handler, |
| int maxHeaderBytes, |
| boolean strict)</pre> |
| </li> |
| </ul> |
| <a name="HttpParser(org.eclipse.jetty.http.HttpParser.ResponseHandler, int, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>HttpParser</h4> |
| <pre>public HttpParser(<a href="../../../../org/eclipse/jetty/http/HttpParser.ResponseHandler.html" title="interface in org.eclipse.jetty.http">HttpParser.ResponseHandler</a><<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>> handler, |
| int maxHeaderBytes, |
| boolean strict)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getContentLength()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getContentLength</h4> |
| <pre>public long getContentLength()</pre> |
| </li> |
| </ul> |
| <a name="getContentRead()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getContentRead</h4> |
| <pre>public long getContentRead()</pre> |
| </li> |
| </ul> |
| <a name="setHeadResponse(boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setHeadResponse</h4> |
| <pre>public void setHeadResponse(boolean head)</pre> |
| <div class="block">Set if a HEAD response is expected</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>head</code> - </dd></dl> |
| </li> |
| </ul> |
| <a name="setResponseStatus(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setResponseStatus</h4> |
| <pre>protected void setResponseStatus(int status)</pre> |
| </li> |
| </ul> |
| <a name="getState()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getState</h4> |
| <pre>public <a href="../../../../org/eclipse/jetty/http/HttpParser.State.html" title="enum in org.eclipse.jetty.http">HttpParser.State</a> getState()</pre> |
| </li> |
| </ul> |
| <a name="inContentState()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>inContentState</h4> |
| <pre>public boolean inContentState()</pre> |
| </li> |
| </ul> |
| <a name="inHeaderState()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>inHeaderState</h4> |
| <pre>public boolean inHeaderState()</pre> |
| </li> |
| </ul> |
| <a name="isChunking()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isChunking</h4> |
| <pre>public boolean isChunking()</pre> |
| </li> |
| </ul> |
| <a name="isStart()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isStart</h4> |
| <pre>public boolean isStart()</pre> |
| </li> |
| </ul> |
| <a name="isClosed()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isClosed</h4> |
| <pre>public boolean isClosed()</pre> |
| </li> |
| </ul> |
| <a name="isIdle()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isIdle</h4> |
| <pre>public boolean isIdle()</pre> |
| </li> |
| </ul> |
| <a name="isComplete()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isComplete</h4> |
| <pre>public boolean isComplete()</pre> |
| </li> |
| </ul> |
| <a name="isState(org.eclipse.jetty.http.HttpParser.State)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isState</h4> |
| <pre>public boolean isState(<a href="../../../../org/eclipse/jetty/http/HttpParser.State.html" title="enum in org.eclipse.jetty.http">HttpParser.State</a> state)</pre> |
| </li> |
| </ul> |
| <a name="parseHeaders(java.nio.ByteBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseHeaders</h4> |
| <pre>protected boolean parseHeaders(<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> buffer)</pre> |
| </li> |
| </ul> |
| <a name="parseNext(java.nio.ByteBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseNext</h4> |
| <pre>public boolean parseNext(<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> buffer)</pre> |
| <div class="block">Parse until next Event.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>True if an <a href="../../../../org/eclipse/jetty/http/HttpParser.RequestHandler.html" title="interface in org.eclipse.jetty.http"><code>HttpParser.RequestHandler</code></a> method was called and it returned true;</dd></dl> |
| </li> |
| </ul> |
| <a name="parseContent(java.nio.ByteBuffer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parseContent</h4> |
| <pre>protected boolean parseContent(<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> buffer)</pre> |
| </li> |
| </ul> |
| <a name="isAtEOF()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isAtEOF</h4> |
| <pre>public boolean isAtEOF()</pre> |
| </li> |
| </ul> |
| <a name="atEOF()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>atEOF</h4> |
| <pre>public void atEOF()</pre> |
| </li> |
| </ul> |
| <a name="close()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>close</h4> |
| <pre>public void close()</pre> |
| </li> |
| </ul> |
| <a name="reset()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre>public void reset()</pre> |
| </li> |
| </ul> |
| <a name="setState(org.eclipse.jetty.http.HttpParser.State)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setState</h4> |
| <pre>protected void setState(<a href="../../../../org/eclipse/jetty/http/HttpParser.State.html" title="enum in org.eclipse.jetty.http">HttpParser.State</a> state)</pre> |
| </li> |
| </ul> |
| <a name="getFieldCache()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFieldCache</h4> |
| <pre>public <a href="../../../../org/eclipse/jetty/util/Trie.html" title="interface in org.eclipse.jetty.util">Trie</a><<a href="../../../../org/eclipse/jetty/http/HttpField.html" title="class in org.eclipse.jetty.http">HttpField</a>> getFieldCache()</pre> |
| </li> |
| </ul> |
| <a name="toString()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public <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> 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> in class <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/HttpParser.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/http/HttpMethod.html" title="enum in org.eclipse.jetty.http"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/jetty/http/HttpParser.HttpHandler.html" title="interface in org.eclipse.jetty.http"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/jetty/http/HttpParser.html" target="_top">Frames</a></li> |
| <li><a href="HttpParser.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><a href="#nested_class_summary">Nested</a> | </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-2017 <a href="http://webtide.com">Webtide</a>. All Rights Reserved.</small></p> |
| </body> |
| </html> |