Package kilim.http
Class HttpRequestParser
- java.lang.Object
-
- kilim.http.HttpRequestParser
-
public class HttpRequestParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]_http_date_actionsprivate static short[]_http_date_index_offsetsprivate static short[]_http_date_key_offsetsprivate static byte[]_http_date_range_lengthsprivate static byte[]_http_date_single_lengthsprivate static byte[]_http_date_trans_actionsprivate static char[]_http_date_trans_keysprivate static byte[]_http_date_trans_targsprivate static byte[]_http_keywords_actionsprivate static short[]_http_keywords_eof_transprivate static byte[]_http_keywords_from_state_actionsprivate static short[]_http_keywords_index_offsetsprivate static short[]_http_keywords_key_offsetsprivate static byte[]_http_keywords_range_lengthsprivate static byte[]_http_keywords_single_lengthsprivate static byte[]_http_keywords_to_state_actionsprivate static byte[]_http_keywords_trans_actionsprivate static char[]_http_keywords_trans_keysprivate static short[]_http_keywords_trans_targsprivate static byte[]_http_parser_actionsprivate static short[]_http_parser_index_offsetsprivate static byte[]_http_parser_indiciesprivate static short[]_http_parser_key_offsetsprivate static byte[]_http_parser_range_lengthsprivate static byte[]_http_parser_single_lengthsprivate static byte[]_http_parser_trans_actionsprivate static char[]_http_parser_trans_keysprivate static byte[]_http_parser_trans_targsstatic java.lang.Stringcrlfstatic java.util.TimeZoneGMT(package private) static inthttp_date_en_main(package private) static inthttp_date_error(package private) static inthttp_date_first_final(package private) static inthttp_date_start(package private) static inthttp_keywords_en_main(package private) static inthttp_keywords_error(package private) static inthttp_keywords_first_final(package private) static inthttp_keywords_start(package private) static inthttp_parser_en_main(package private) static inthttp_parser_error(package private) static inthttp_parser_first_final(package private) static inthttp_parser_startstatic java.nio.charset.CharsetUTF8
-
Constructor Summary
Constructors Constructor Description HttpRequestParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intencodeRange(int start, int end)encode the start pos and length as ints;static voiderr(java.lang.String msg)private static byte[]init__http_date_actions_0()private static short[]init__http_date_index_offsets_0()private static short[]init__http_date_key_offsets_0()private static byte[]init__http_date_range_lengths_0()private static byte[]init__http_date_single_lengths_0()private static byte[]init__http_date_trans_actions_0()private static char[]init__http_date_trans_keys_0()private static byte[]init__http_date_trans_targs_0()private static byte[]init__http_keywords_actions_0()private static short[]init__http_keywords_eof_trans_0()private static byte[]init__http_keywords_from_state_actions_0()private static short[]init__http_keywords_index_offsets_0()private static short[]init__http_keywords_key_offsets_0()private static byte[]init__http_keywords_range_lengths_0()private static byte[]init__http_keywords_single_lengths_0()private static byte[]init__http_keywords_to_state_actions_0()private static byte[]init__http_keywords_trans_actions_0()private static char[]init__http_keywords_trans_keys_0()private static short[]init__http_keywords_trans_targs_0()private static byte[]init__http_parser_actions_0()private static short[]init__http_parser_index_offsets_0()private static byte[]init__http_parser_indicies_0()private static short[]init__http_parser_key_offsets_0()private static byte[]init__http_parser_range_lengths_0()private static byte[]init__http_parser_single_lengths_0()private static byte[]init__http_parser_trans_actions_0()private static char[]init__http_parser_trans_keys_0()private static byte[]init__http_parser_trans_targs_0()static voidinitHeader(HttpRequest req, int headerLength)static java.lang.Stringkw_lookup(byte[] data, int start, int len)static voidmain(java.lang.String[] args)static longparseDate(byte[] data, int pos, int len)
-
-
-
Field Detail
-
UTF8
public static final java.nio.charset.Charset 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:
- Constant Field Values
-
http_parser_first_final
static final int http_parser_first_final
- See Also:
- Constant Field Values
-
http_parser_error
static final int http_parser_error
- See Also:
- Constant Field Values
-
http_parser_en_main
static final int http_parser_en_main
- See Also:
- Constant Field Values
-
_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:
- Constant Field Values
-
http_keywords_first_final
static final int http_keywords_first_final
- See Also:
- Constant Field Values
-
http_keywords_error
static final int http_keywords_error
- See Also:
- Constant Field Values
-
http_keywords_en_main
static final int http_keywords_en_main
- See Also:
- Constant Field Values
-
_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:
- Constant Field Values
-
http_date_first_final
static final int http_date_first_final
- See Also:
- Constant Field Values
-
http_date_error
static final int http_date_error
- See Also:
- Constant Field Values
-
http_date_en_main
static final int http_date_en_main
- See Also:
- Constant Field Values
-
GMT
public static java.util.TimeZone GMT
-
crlf
public static java.lang.String crlf
-
-
Method Detail
-
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
public static void err(java.lang.String msg) throws java.io.IOException- Throws:
java.io.IOException
-
initHeader
public static void initHeader(HttpRequest req, int headerLength) throws java.io.IOException
- Throws:
java.io.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
public static java.lang.String kw_lookup(byte[] data, int start, int len)
-
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
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-