Class HttpHeaderParser
- java.lang.Object
-
- org.apache.tomcat.util.http.parser.HttpHeaderParser
-
public class HttpHeaderParser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHttpHeaderParser.HeaderDataSourcestatic classHttpHeaderParser.HeaderParsePositionstatic classHttpHeaderParser.HeaderParseStatus
-
Constructor Summary
Constructors Constructor Description HttpHeaderParser(HttpHeaderParser.HeaderDataSource source, MimeHeaders headers, boolean tolerantEol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHeaderParser.HeaderParseStatusparseHeader()Parse an HTTP header.voidrecycle()
-
-
-
Constructor Detail
-
HttpHeaderParser
public HttpHeaderParser(HttpHeaderParser.HeaderDataSource source, MimeHeaders headers, boolean tolerantEol)
-
-
Method Detail
-
recycle
public void recycle()
-
parseHeader
public HttpHeaderParser.HeaderParseStatus parseHeader() throws java.io.IOException
Parse an HTTP header.- Returns:
- One of
HttpHeaderParser.HeaderParseStatus.NEED_MORE_DATA,HttpHeaderParser.HeaderParseStatus.HAVE_MORE_HEADERSorHttpHeaderParser.HeaderParseStatus.DONE. - Throws:
java.io.IOException- If an error occurs during the parsing of the headers
-
-