public abstract static class HttpTester.Message extends HttpFields implements HttpParser.HttpHandler<ByteBuffer>
HttpFields.DateGenerator
__01Jan1970, __01Jan1970_BUFFER, __01Jan1970_COOKIE, __COOKIE_DELIM, __dateCache, __GMT, __separators
Constructor and Description |
---|
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(ByteBuffer content) |
void |
setContent(String content) |
void |
setVersion(HttpVersion version) |
void |
setVersion(String version) |
add, add, add, add, add, addDateField, addSetCookie, addSetCookie, clear, contains, contains, containsKey, formatCookieDate, formatCookieDate, formatDate, get, get, getDateField, getField, getField, getField, getFieldNames, getFieldNamesCollection, getLongField, getQuality, getStringField, getStringField, getValues, getValues, getValuesCollection, iterator, parseDate, put, put, put, put, put, putDateField, putDateField, putLongField, putLongField, putTo, qualityList, remove, remove, size, toString, valueParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public HttpVersion getVersion()
public void setVersion(String version)
public void setVersion(HttpVersion version)
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-2019 Mort Bay Consulting. All Rights Reserved.