public class HttpServerDecoder extends Object implements ProtocolDecoder
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
COOKIE_SEPARATOR_PATTERN
Regex to split cookie header following RFC6265 Section 5.4
|
static Pattern |
HEADER_VALUE_PATTERN
Regex to parse header name and value
|
static Pattern |
HEADERS_BODY_PATTERN
Regex to parse raw headers from body
|
static Pattern |
KEY_VALUE_PATTERN
Regex to parse out key/value pairs
|
static Pattern |
PARAM_STRING_PATTERN
Regex to parse out parameters from query string
|
static Pattern |
QUERY_STRING_PATTERN
Regex to parse out QueryString from HttpRequest
|
static Pattern |
RAW_VALUE_PATTERN
Regex to parse raw headers and body
|
static Pattern |
REQUEST_LINE_PATTERN
Regex to parse HttpRequest Request Line
|
| Constructor and Description |
|---|
HttpServerDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(IoSession session,
IoBuffer msg,
ProtocolDecoderOutput out) |
void |
dispose(IoSession session) |
void |
finishDecode(IoSession session,
ProtocolDecoderOutput out) |
public static final Pattern REQUEST_LINE_PATTERN
public static final Pattern QUERY_STRING_PATTERN
public static final Pattern PARAM_STRING_PATTERN
public static final Pattern KEY_VALUE_PATTERN
public static final Pattern RAW_VALUE_PATTERN
public static final Pattern HEADERS_BODY_PATTERN
public static final Pattern HEADER_VALUE_PATTERN
public static final Pattern COOKIE_SEPARATOR_PATTERN
public void decode(IoSession session, IoBuffer msg, ProtocolDecoderOutput out)
decode in interface ProtocolDecoderpublic void finishDecode(IoSession session, ProtocolDecoderOutput out) throws Exception
finishDecode in interface ProtocolDecoderExceptionpublic void dispose(IoSession session) throws Exception
dispose in interface ProtocolDecoderExceptionCopyright © 2004-2012 Apache MINA Project. All Rights Reserved.