Package io.undertow.server.protocol.ajp
Class AjpRequestParser
- java.lang.Object
-
- io.undertow.server.protocol.ajp.AjpRequestParser
-
public class AjpRequestParser extends java.lang.Object
- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AjpRequestParser.IntegerHolder
protected static class
AjpRequestParser.StringHolder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AJP_REMOTE_PORT
static java.lang.String
AUTH_TYPE
static java.lang.String
CONTEXT
static int
CPING
static int
CPONG
static int
FORWARD_REQUEST
static java.lang.String
QUERY_STRING
static java.lang.String
REMOTE_USER
static java.lang.String
REQ_ATTRIBUTE
static java.lang.String
ROUTE
static java.lang.String
SECRET
static java.lang.String
SERVLET_PATH
static int
SHUTDOWN
static java.lang.String
SSL_CERT
static java.lang.String
SSL_CIPHER
static java.lang.String
SSL_KEY_SIZE
static java.lang.String
SSL_SESSION
static java.lang.String
STORED_METHOD
static int
STRING_LENGTH_MASK
-
Constructor Summary
Constructors Constructor Description AjpRequestParser(java.lang.String encoding, boolean doDecode, int maxParameters, int maxHeaders, boolean allowEncodedSlash, boolean allowUnescapedCharactersInUrl)
AjpRequestParser(java.lang.String encoding, boolean doDecode, int maxParameters, int maxHeaders, boolean allowEncodedSlash, boolean allowUnescapedCharactersInUrl, java.lang.String allowedRequestAttributesPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpString
headers(int offset)
void
parse(java.nio.ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state, HttpServerExchange exchange)
protected AjpRequestParser.IntegerHolder
parse16BitInteger(java.nio.ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state)
protected AjpRequestParser.StringHolder
parseString(java.nio.ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state, io.undertow.server.protocol.ajp.AjpRequestParser.StringType type)
-
-
-
Field Detail
-
FORWARD_REQUEST
public static final int FORWARD_REQUEST
- See Also:
- Constant Field Values
-
CPONG
public static final int CPONG
- See Also:
- Constant Field Values
-
CPING
public static final int CPING
- See Also:
- Constant Field Values
-
SHUTDOWN
public static final int SHUTDOWN
- See Also:
- Constant Field Values
-
QUERY_STRING
public static final java.lang.String QUERY_STRING
- See Also:
- Constant Field Values
-
SSL_CERT
public static final java.lang.String SSL_CERT
- See Also:
- Constant Field Values
-
CONTEXT
public static final java.lang.String CONTEXT
- See Also:
- Constant Field Values
-
SERVLET_PATH
public static final java.lang.String SERVLET_PATH
- See Also:
- Constant Field Values
-
REMOTE_USER
public static final java.lang.String REMOTE_USER
- See Also:
- Constant Field Values
-
AUTH_TYPE
public static final java.lang.String AUTH_TYPE
- See Also:
- Constant Field Values
-
ROUTE
public static final java.lang.String ROUTE
- See Also:
- Constant Field Values
-
SSL_CIPHER
public static final java.lang.String SSL_CIPHER
- See Also:
- Constant Field Values
-
SSL_SESSION
public static final java.lang.String SSL_SESSION
- See Also:
- Constant Field Values
-
REQ_ATTRIBUTE
public static final java.lang.String REQ_ATTRIBUTE
- See Also:
- Constant Field Values
-
SSL_KEY_SIZE
public static final java.lang.String SSL_KEY_SIZE
- See Also:
- Constant Field Values
-
SECRET
public static final java.lang.String SECRET
- See Also:
- Constant Field Values
-
STORED_METHOD
public static final java.lang.String STORED_METHOD
- See Also:
- Constant Field Values
-
AJP_REMOTE_PORT
public static final java.lang.String AJP_REMOTE_PORT
- See Also:
- Constant Field Values
-
STRING_LENGTH_MASK
public static final int STRING_LENGTH_MASK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AjpRequestParser
public AjpRequestParser(java.lang.String encoding, boolean doDecode, int maxParameters, int maxHeaders, boolean allowEncodedSlash, boolean allowUnescapedCharactersInUrl)
-
AjpRequestParser
public AjpRequestParser(java.lang.String encoding, boolean doDecode, int maxParameters, int maxHeaders, boolean allowEncodedSlash, boolean allowUnescapedCharactersInUrl, java.lang.String allowedRequestAttributesPattern)
-
-
Method Detail
-
parse
public void parse(java.nio.ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state, HttpServerExchange exchange) throws java.io.IOException, BadRequestException
- Throws:
java.io.IOException
BadRequestException
-
headers
protected HttpString headers(int offset)
-
parse16BitInteger
protected AjpRequestParser.IntegerHolder parse16BitInteger(java.nio.ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state)
-
parseString
protected AjpRequestParser.StringHolder parseString(java.nio.ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state, io.undertow.server.protocol.ajp.AjpRequestParser.StringType type) throws java.io.UnsupportedEncodingException, BadRequestException
- Throws:
java.io.UnsupportedEncodingException
BadRequestException
-
-