Package kilim.http

Class HttpRequestParser

java.lang.Object
kilim.http.HttpRequestParser

public class HttpRequestParser extends Object
  • Field Details

    • UTF8

      public static final 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:
    • 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

      public static TimeZone GMT
    • crlf

      public static String 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

      public static void err(String msg) throws IOException
      Throws:
      IOException
    • initHeader

      public static void initHeader(HttpRequest req, int headerLength) throws IOException
      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

      public static 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(String[] args) throws Exception
      Throws:
      Exception