|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.httpio.HttpHeaderParser
public class HttpHeaderParser
A parser of http headers
| Constructor Summary | |
|---|---|
HttpHeaderParser(boolean request,
boolean strictHttp)
Create a new HttpHeaderParser |
|
| Method Summary | |
|---|---|
HttpHeader |
getHeader()
Get the current header |
boolean |
handleBuffer(java.nio.ByteBuffer buffer)
Read the data from the buffer and try to build a http header. |
void |
lineRead(java.lang.String line)
Handle a newly read line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpHeaderParser(boolean request,
boolean strictHttp)
request - if true try to read a request, if false try to read a responsestrictHttp - if true http headers will be strictly parsed, if false
http newlines may be single \n| Method Detail |
|---|
public HttpHeader getHeader()
public boolean handleBuffer(java.nio.ByteBuffer buffer)
buffer - the ByteBuffer to parse
public void lineRead(java.lang.String line)
lineRead in interface LineListenerline - the line of text that have been read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||