public abstract class HttpRequestParser extends Object
io.undertow.annotationprocessor.AbstractParserGenerator
annotation processor.
The actual processor is a state machine, that means that for common header, method, protocol values it will return an interned string, rather than creating a new string for each one.
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_LENGTH |
Constructor and Description |
---|
HttpRequestParser(OptionMap options) |
Modifier and Type | Method and Description |
---|---|
void |
handle(ByteBuffer buffer,
io.undertow.server.protocol.http.ParseState currentState,
HttpServerExchange builder) |
protected void |
handleAfterVersion(ByteBuffer buffer,
io.undertow.server.protocol.http.ParseState state) |
protected boolean |
handleCachedHeader(String existing,
ByteBuffer buffer,
io.undertow.server.protocol.http.ParseState state,
HttpServerExchange builder) |
protected static Map<String,HttpString> |
httpStrings()
This is a bit of hack to enable the parser to get access to the HttpString's that are sorted
in the static fields of the relevant classes.
|
static HttpRequestParser |
instance(OptionMap options) |
public HttpRequestParser(OptionMap options)
public static final HttpRequestParser instance(OptionMap options)
public void handle(ByteBuffer buffer, io.undertow.server.protocol.http.ParseState currentState, HttpServerExchange builder)
protected boolean handleCachedHeader(String existing, ByteBuffer buffer, io.undertow.server.protocol.http.ParseState state, HttpServerExchange builder)
protected void handleAfterVersion(ByteBuffer buffer, io.undertow.server.protocol.http.ParseState state)
protected static Map<String,HttpString> httpStrings()
Copyright © 2016 JBoss by Red Hat. All rights reserved.