Package io.undertow.server.protocol.ajp
Class AjpRequestParser
- java.lang.Object
-
- io.undertow.server.protocol.ajp.AjpRequestParser
-
public class AjpRequestParser extends Object
- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAjpRequestParser.IntegerHolderprotected static classAjpRequestParser.StringHolder
-
Field Summary
Fields Modifier and Type Field Description static StringAJP_REMOTE_PORTstatic StringAUTH_TYPEstatic StringCONTEXTstatic intCPINGstatic intCPONGstatic intFORWARD_REQUESTstatic StringQUERY_STRINGstatic StringREMOTE_USERstatic StringREQ_ATTRIBUTEstatic StringROUTEstatic StringSECRETstatic StringSERVLET_PATHstatic intSHUTDOWNstatic StringSSL_CERTstatic StringSSL_CIPHERstatic StringSSL_KEY_SIZEstatic StringSSL_SESSIONstatic StringSTORED_METHODstatic intSTRING_LENGTH_MASK
-
Constructor Summary
Constructors Constructor Description AjpRequestParser(String encoding, boolean doDecode, int maxParameters, int maxHeaders, boolean slashDecodingFlag, boolean allowUnescapedCharactersInUrl)AjpRequestParser(String encoding, boolean doDecode, int maxParameters, int maxHeaders, boolean slashDecodingFlag, boolean allowUnescapedCharactersInUrl, String allowedRequestAttributesPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpStringheaders(int offset)voidparse(ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state, HttpServerExchange exchange)protected AjpRequestParser.IntegerHolderparse16BitInteger(ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state)protected AjpRequestParser.StringHolderparseString(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 String QUERY_STRING
- See Also:
- Constant Field Values
-
SSL_CERT
public static final String SSL_CERT
- See Also:
- Constant Field Values
-
CONTEXT
public static final String CONTEXT
- See Also:
- Constant Field Values
-
SERVLET_PATH
public static final String SERVLET_PATH
- See Also:
- Constant Field Values
-
REMOTE_USER
public static final String REMOTE_USER
- See Also:
- Constant Field Values
-
AUTH_TYPE
public static final String AUTH_TYPE
- See Also:
- Constant Field Values
-
ROUTE
public static final String ROUTE
- See Also:
- Constant Field Values
-
SSL_CIPHER
public static final String SSL_CIPHER
- See Also:
- Constant Field Values
-
SSL_SESSION
public static final String SSL_SESSION
- See Also:
- Constant Field Values
-
REQ_ATTRIBUTE
public static final String REQ_ATTRIBUTE
- See Also:
- Constant Field Values
-
SSL_KEY_SIZE
public static final String SSL_KEY_SIZE
- See Also:
- Constant Field Values
-
SECRET
public static final String SECRET
- See Also:
- Constant Field Values
-
STORED_METHOD
public static final String STORED_METHOD
- See Also:
- Constant Field Values
-
AJP_REMOTE_PORT
public static final 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(String encoding, boolean doDecode, int maxParameters, int maxHeaders, boolean slashDecodingFlag, boolean allowUnescapedCharactersInUrl)
-
-
Method Detail
-
parse
public void parse(ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state, HttpServerExchange exchange) throws IOException, BadRequestException
- Throws:
IOExceptionBadRequestException
-
headers
protected HttpString headers(int offset)
-
parse16BitInteger
protected AjpRequestParser.IntegerHolder parse16BitInteger(ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state)
-
parseString
protected AjpRequestParser.StringHolder parseString(ByteBuffer buf, io.undertow.server.protocol.ajp.AjpRequestParseState state, io.undertow.server.protocol.ajp.AjpRequestParser.StringType type) throws UnsupportedEncodingException, BadRequestException
-
-