Package kilim.http
Class HttpRequestParser
java.lang.Object
kilim.http.HttpRequestParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private static final short[]private static final short[]private static final byte[]private static final byte[]private static final byte[]private static final char[]private static final byte[]private static final byte[]private static final short[]private static final byte[]private static final short[]private static final short[]private static final byte[]private static final byte[]private static final byte[]private static final byte[]private static final char[]private static final short[]private static final byte[]private static final short[]private static final byte[]private static final short[]private static final byte[]private static final byte[]private static final byte[]private static final char[]private static final byte[]static Stringstatic TimeZone(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final int(package private) static final intstatic final Charset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intencodeRange(int start, int end) encode the start pos and length as ints;static voidprivate static byte[]private static short[]private static short[]private static byte[]private static byte[]private static byte[]private static char[]private static byte[]private static byte[]private static short[]private static byte[]private static short[]private static short[]private static byte[]private static byte[]private static byte[]private static byte[]private static char[]private static short[]private static byte[]private static short[]private static byte[]private static short[]private static byte[]private static byte[]private static byte[]private static char[]private static byte[]static voidinitHeader(HttpRequest req, int headerLength) static Stringkw_lookup(byte[] data, int start, int len) static voidstatic longparseDate(byte[] data, int pos, int len)
-
Field Details
-
UTF8
-
_http_parser_actions
private static final byte[] _http_parser_actions -
_http_parser_key_offsets
private static final short[] _http_parser_key_offsets -
_http_parser_trans_keys
private static final char[] _http_parser_trans_keys -
_http_parser_single_lengths
private static final byte[] _http_parser_single_lengths -
_http_parser_range_lengths
private static final byte[] _http_parser_range_lengths -
_http_parser_index_offsets
private static final short[] _http_parser_index_offsets -
_http_parser_indicies
private static final byte[] _http_parser_indicies -
_http_parser_trans_targs
private static final byte[] _http_parser_trans_targs -
_http_parser_trans_actions
private static final byte[] _http_parser_trans_actions -
http_parser_start
static final int http_parser_start- See Also:
-
http_parser_first_final
static final int http_parser_first_final- See Also:
-
http_parser_error
static final int http_parser_error- See Also:
-
http_parser_en_main
static final int http_parser_en_main- See Also:
-
_http_keywords_actions
private static final byte[] _http_keywords_actions -
_http_keywords_key_offsets
private static final short[] _http_keywords_key_offsets -
_http_keywords_trans_keys
private static final char[] _http_keywords_trans_keys -
_http_keywords_single_lengths
private static final byte[] _http_keywords_single_lengths -
_http_keywords_range_lengths
private static final byte[] _http_keywords_range_lengths -
_http_keywords_index_offsets
private static final short[] _http_keywords_index_offsets -
_http_keywords_trans_targs
private static final short[] _http_keywords_trans_targs -
_http_keywords_trans_actions
private static final byte[] _http_keywords_trans_actions -
_http_keywords_to_state_actions
private static final byte[] _http_keywords_to_state_actions -
_http_keywords_from_state_actions
private static final byte[] _http_keywords_from_state_actions -
_http_keywords_eof_trans
private static final short[] _http_keywords_eof_trans -
http_keywords_start
static final int http_keywords_start- See Also:
-
http_keywords_first_final
static final int http_keywords_first_final- See Also:
-
http_keywords_error
static final int http_keywords_error- See Also:
-
http_keywords_en_main
static final int http_keywords_en_main- See Also:
-
_http_date_actions
private static final byte[] _http_date_actions -
_http_date_key_offsets
private static final short[] _http_date_key_offsets -
_http_date_trans_keys
private static final char[] _http_date_trans_keys -
_http_date_single_lengths
private static final byte[] _http_date_single_lengths -
_http_date_range_lengths
private static final byte[] _http_date_range_lengths -
_http_date_index_offsets
private static final short[] _http_date_index_offsets -
_http_date_trans_targs
private static final byte[] _http_date_trans_targs -
_http_date_trans_actions
private static final byte[] _http_date_trans_actions -
http_date_start
static final int http_date_start- See Also:
-
http_date_first_final
static final int http_date_first_final- See Also:
-
http_date_error
static final int http_date_error- See Also:
-
http_date_en_main
static final int http_date_en_main- See Also:
-
GMT
-
crlf
-
-
Constructor Details
-
HttpRequestParser
public HttpRequestParser()
-
-
Method Details
-
init__http_parser_actions_0
private static byte[] init__http_parser_actions_0() -
init__http_parser_key_offsets_0
private static short[] init__http_parser_key_offsets_0() -
init__http_parser_trans_keys_0
private static char[] init__http_parser_trans_keys_0() -
init__http_parser_single_lengths_0
private static byte[] init__http_parser_single_lengths_0() -
init__http_parser_range_lengths_0
private static byte[] init__http_parser_range_lengths_0() -
init__http_parser_index_offsets_0
private static short[] init__http_parser_index_offsets_0() -
init__http_parser_indicies_0
private static byte[] init__http_parser_indicies_0() -
init__http_parser_trans_targs_0
private static byte[] init__http_parser_trans_targs_0() -
init__http_parser_trans_actions_0
private static byte[] init__http_parser_trans_actions_0() -
err
- Throws:
IOException
-
initHeader
- Throws:
IOException
-
encodeRange
public static int encodeRange(int start, int end) encode the start pos and length as ints; -
init__http_keywords_actions_0
private static byte[] init__http_keywords_actions_0() -
init__http_keywords_key_offsets_0
private static short[] init__http_keywords_key_offsets_0() -
init__http_keywords_trans_keys_0
private static char[] init__http_keywords_trans_keys_0() -
init__http_keywords_single_lengths_0
private static byte[] init__http_keywords_single_lengths_0() -
init__http_keywords_range_lengths_0
private static byte[] init__http_keywords_range_lengths_0() -
init__http_keywords_index_offsets_0
private static short[] init__http_keywords_index_offsets_0() -
init__http_keywords_trans_targs_0
private static short[] init__http_keywords_trans_targs_0() -
init__http_keywords_trans_actions_0
private static byte[] init__http_keywords_trans_actions_0() -
init__http_keywords_to_state_actions_0
private static byte[] init__http_keywords_to_state_actions_0() -
init__http_keywords_from_state_actions_0
private static byte[] init__http_keywords_from_state_actions_0() -
init__http_keywords_eof_trans_0
private static short[] init__http_keywords_eof_trans_0() -
kw_lookup
-
init__http_date_actions_0
private static byte[] init__http_date_actions_0() -
init__http_date_key_offsets_0
private static short[] init__http_date_key_offsets_0() -
init__http_date_trans_keys_0
private static char[] init__http_date_trans_keys_0() -
init__http_date_single_lengths_0
private static byte[] init__http_date_single_lengths_0() -
init__http_date_range_lengths_0
private static byte[] init__http_date_range_lengths_0() -
init__http_date_index_offsets_0
private static short[] init__http_date_index_offsets_0() -
init__http_date_trans_targs_0
private static byte[] init__http_date_trans_targs_0() -
init__http_date_trans_actions_0
private static byte[] init__http_date_trans_actions_0() -
parseDate
public static long parseDate(byte[] data, int pos, int len) -
main
- Throws:
Exception
-