public abstract class HttpRequestParser extends Object
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(org.xnio.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(org.xnio.OptionMap options) |
public static final HttpRequestParser instance(org.xnio.OptionMap options)
public void handle(ByteBuffer buffer, io.undertow.server.protocol.http.ParseState currentState, HttpServerExchange builder) throws BadRequestException
BadRequestException
protected boolean handleCachedHeader(String existing, ByteBuffer buffer, io.undertow.server.protocol.http.ParseState state, HttpServerExchange builder) throws BadRequestException
BadRequestException
protected void handleAfterVersion(ByteBuffer buffer, io.undertow.server.protocol.http.ParseState state) throws BadRequestException
BadRequestException
protected static Map<String,HttpString> httpStrings()
Copyright © 2020 JBoss by Red Hat. All rights reserved.