|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpRequestParser
Parses a HttpRequest.
| Method Summary | |
|---|---|
InputBufferStream |
getBody()
Obtains the InputBufferStream to the body of the
HttpRequest. |
List<HttpHeader> |
getHeaders()
Obtains the HttpHeader instances in the order supplied. |
String |
getHttpVersion()
Obtains the HTTP version. |
String |
getMethod()
Obtains the method. |
String |
getRequestURI()
Obtains the request URI. |
boolean |
parse(InputBufferStream inputBufferStream,
char[] tempBuffer)
Parses the HttpRequest bytes from the InputBufferStream. |
void |
reset()
Resets for parsing another HttpRequest. |
| Method Detail |
|---|
boolean parse(InputBufferStream inputBufferStream,
char[] tempBuffer)
throws IOException,
HttpRequestParseException
HttpRequest bytes from the InputBufferStream.
inputBufferStream - InputBufferStream containing the data to be parsed for
the HttpRequest.tempBuffer - Temporary char buffer that is used to translate bytes into a
String. This allows reducing memory size and creation
of arrays. The size of the buffer indicates the maximum size
for parts of the HttpRequest (except the body).
true if the HttpRequest has been fully
parsed. InputBufferStream to obtain the full HttpRequest.
IOException - If fails to read bytes.
HttpRequestParseException - If failure to parse HttpRequest.void reset()
HttpRequest.
String getMethod()
String getRequestURI()
String getHttpVersion()
List<HttpHeader> getHeaders()
HttpHeader instances in the order supplied.
HttpHeader instances in the order supplied.InputBufferStream getBody()
InputBufferStream to the body of the
HttpRequest.
InputBufferStream to the body of the HttpRequest.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||