public abstract static class HttpTester.Message extends HttpFields implements HttpParser.HttpHandler
__separators| Constructor and Description |
|---|
HttpTester.Message() |
| Modifier and Type | Method and Description |
|---|---|
void |
badMessage(int status,
String reason)
Called to signal that a bad HTTP message has been received.
|
boolean |
content(ByteBuffer ref) |
void |
earlyEOF()
Called to signal that an EOF was received unexpectedly
during the parsing of a HTTP message
|
ByteBuffer |
generate() |
int |
getHeaderCacheSize() |
abstract HttpGenerator.Info |
getInfo() |
HttpVersion |
getVersion() |
boolean |
headerComplete() |
boolean |
messageComplete() |
void |
parsedHeader(HttpField field)
This is the method called by parser when a HTTP Header name and value is found
|
void |
setContent(byte[] bytes) |
void |
setContent(ByteBuffer content) |
void |
setContent(String content) |
void |
setVersion(HttpVersion version) |
void |
setVersion(String version) |
add, add, add, add, add, addAll, addDateField, clear, contains, contains, contains, containsKey, equals, get, get, getDateField, getField, getField, getField, getFieldNames, getFieldNamesCollection, getLongField, getQuality, getValues, getValues, getValuesList, hashCode, iterator, put, put, put, put, put, putDateField, putDateField, putLongField, putLongField, qualityList, remove, remove, size, toString, valueParameterspublic HttpVersion getVersion()
public void setVersion(String version)
public void setVersion(HttpVersion version)
public void setContent(byte[] bytes)
public void setContent(String content)
public void setContent(ByteBuffer content)
public void parsedHeader(HttpField field)
HttpParser.HttpHandlerparsedHeader in interface HttpParser.HttpHandlerfield - The field parsedpublic boolean messageComplete()
messageComplete in interface HttpParser.HttpHandlerpublic boolean headerComplete()
headerComplete in interface HttpParser.HttpHandlerpublic void earlyEOF()
HttpParser.HttpHandlerearlyEOF in interface HttpParser.HttpHandlerpublic boolean content(ByteBuffer ref)
content in interface HttpParser.HttpHandlerpublic void badMessage(int status,
String reason)
HttpParser.HttpHandlerbadMessage in interface HttpParser.HttpHandlerstatus - The bad status to sendreason - The textual reason for badnesspublic ByteBuffer generate()
public abstract HttpGenerator.Info getInfo()
public int getHeaderCacheSize()
getHeaderCacheSize in interface HttpParser.HttpHandlerCopyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.