public static class HttpTester.Request extends HttpTester.Message implements HttpParser.RequestHandler
__separators| Constructor and Description |
|---|
HttpTester.Request() |
| Modifier and Type | Method and Description |
|---|---|
HttpGenerator.RequestInfo |
getInfo() |
String |
getMethod() |
String |
getUri() |
void |
setHeader(String name,
String value) |
void |
setMethod(String method) |
void |
setURI(String uri) |
boolean |
startRequest(String method,
String 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, setVersionadd, 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, valueParametersclone, finalize, getClass, notify, notifyAll, wait, wait, waitbadMessage, content, earlyEOF, getHeaderCacheSize, headerComplete, messageComplete, parsedHeaderpublic boolean startRequest(String method, String uri, HttpVersion version)
HttpParser.RequestHandlerstartRequest in interface HttpParser.RequestHandlermethod - The methoduri - 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.Messagepublic String toString()
toString in class HttpFieldsCopyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.