public class HttpRequestParser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
crlf |
static java.util.TimeZone |
GMT |
static java.nio.charset.Charset |
UTF8 |
| Constructor and Description |
|---|
HttpRequestParser() |
| Modifier and Type | Method and Description |
|---|---|
static int |
encodeRange(int start,
int end)
encode the start pos and length as ints;
|
static void |
err(java.lang.String msg) |
static void |
initHeader(HttpRequest req,
int headerLength) |
static java.lang.String |
kw_lookup(byte[] data,
int start,
int len) |
static void |
main(java.lang.String[] args) |
static long |
parseDate(byte[] data,
int pos,
int len) |
public static final java.nio.charset.Charset UTF8
public static java.util.TimeZone GMT
public static java.lang.String crlf
public static void err(java.lang.String msg)
throws java.io.IOException
java.io.IOExceptionpublic static void initHeader(HttpRequest req, int headerLength) throws java.io.IOException
java.io.IOExceptionpublic static int encodeRange(int start,
int end)
public static java.lang.String kw_lookup(byte[] data,
int start,
int len)
public static long parseDate(byte[] data,
int pos,
int len)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception