public abstract static class HttpTester.Message extends HttpFields implements HttpParser.HttpHandler<ByteBuffer>
__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() |
boolean |
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, addDateField, clear, contains, contains, contains, containsKey, get, get, getDateField, getField, getField, getField, getFieldNames, getFieldNamesCollection, getLongField, getQuality, getStringField, getStringField, getValues, getValues, getValuesList, iterator, put, put, put, put, put, putDateField, putDateField, putLongField, putLongField, qualityList, remove, remove, size, toString, valueParameters
public 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 boolean parsedHeader(HttpField field)
HttpParser.HttpHandler
parsedHeader
in interface HttpParser.HttpHandler<ByteBuffer>
field
- The field parsedpublic boolean messageComplete()
messageComplete
in interface HttpParser.HttpHandler<ByteBuffer>
public boolean headerComplete()
headerComplete
in interface HttpParser.HttpHandler<ByteBuffer>
public void earlyEOF()
HttpParser.HttpHandler
earlyEOF
in interface HttpParser.HttpHandler<ByteBuffer>
public boolean content(ByteBuffer ref)
content
in interface HttpParser.HttpHandler<ByteBuffer>
public void badMessage(int status, String reason)
HttpParser.HttpHandler
badMessage
in interface HttpParser.HttpHandler<ByteBuffer>
status
- The bad status to sendreason
- The textual reason for badnesspublic ByteBuffer generate()
public abstract HttpGenerator.Info getInfo()
public int getHeaderCacheSize()
getHeaderCacheSize
in interface HttpParser.HttpHandler<ByteBuffer>
Copyright © 1995-2015 Webtide. All Rights Reserved.