public static class HttpTester.Request extends HttpTester.Message implements HttpParser.RequestHandler<ByteBuffer>
__separators
Constructor and Description |
---|
HttpTester.Request() |
Modifier and Type | Method and Description |
---|---|
HttpGenerator.RequestInfo |
getInfo() |
String |
getMethod() |
String |
getUri() |
boolean |
parsedHostHeader(String host,
int port)
This is the method called by the parser after it has parsed the host header (and checked it's format).
|
void |
setHeader(String name,
String value) |
void |
setMethod(String method) |
void |
setURI(String uri) |
boolean |
startRequest(HttpMethod method,
String methodString,
ByteBuffer uri,
HttpVersion version)
This is the method called by parser when the HTTP request line is parsed
|
String |
toString() |
badMessage, content, earlyEOF, generate, getHeaderCacheSize, getVersion, headerComplete, messageComplete, parsedHeader, setContent, setContent, setContent, setVersion, setVersion
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, valueParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
badMessage, content, earlyEOF, getHeaderCacheSize, headerComplete, messageComplete, parsedHeader
public boolean startRequest(HttpMethod method, String methodString, ByteBuffer uri, HttpVersion version)
HttpParser.RequestHandler
startRequest
in interface HttpParser.RequestHandler<ByteBuffer>
method
- The method as enum if of a known typemethodString
- The method as a stringuri
- The raw bytes of the URI. These are copied into a ByteBuffer that will not be changed until this parser is reset and reused.public String getMethod()
public String getUri()
public void setMethod(String method)
public void setURI(String uri)
public HttpGenerator.RequestInfo getInfo()
getInfo
in class HttpTester.Message
public String toString()
toString
in class HttpFields
public boolean parsedHostHeader(String host, int port)
HttpParser.RequestHandler
HttpParser.HttpHandler.parsedHeader(HttpField)
methods and before
HttpHandler#headerComplete();parsedHostHeader
in interface HttpParser.RequestHandler<ByteBuffer>
Copyright © 1995-2015 Webtide. All Rights Reserved.