- java.lang.Object
-
- org.eclipse.jetty.http.HttpFields.Mutable
-
- org.eclipse.jetty.http.HttpTester.Message
-
- org.eclipse.jetty.http.HttpTester.Response
-
- All Implemented Interfaces:
java.lang.Iterable<HttpField>
,HttpFields
,HttpParser.HttpHandler
,HttpParser.ResponseHandler
- Enclosing class:
- HttpTester
public static class HttpTester.Response extends HttpTester.Message implements HttpParser.ResponseHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpFields
HttpFields.Immutable, HttpFields.Mutable
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jetty.http.HttpFields
EMPTY
-
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaData.Response
getInfo()
java.lang.String
getReason()
int
getStatus()
void
startResponse(HttpVersion version, int status, java.lang.String reason)
This is the method called by parser when the HTTP request line is parsedjava.lang.String
toString()
-
Methods inherited from class org.eclipse.jetty.http.HttpTester.Message
badMessage, content, contentComplete, earlyEOF, generate, getContent, getContentBytes, getVersion, headerComplete, isComplete, isEarlyEOF, messageComplete, parsedHeader, setContent, setContent, setContent, setVersion, setVersion
-
Methods inherited from class org.eclipse.jetty.http.HttpFields.Mutable
add, add, add, add, add, addCSV, addCSV, addDateField, asImmutable, clear, computeField, computeField, ensureField, equals, getField, hashCode, iterator, listIterator, put, put, put, put, put, putDateField, putDateField, putLongField, putLongField, remove, remove, remove, size, stream
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.http.HttpFields
asString, contains, contains, contains, contains, contains, contains, get, get, getCSV, getCSV, getDateField, getField, getField, getFieldNames, getFieldNamesCollection, getFields, getFields, getLongField, getLongField, getQualityCSV, getQualityCSV, getQualityCSV, getValues, getValuesList, getValuesList, isEqualTo
-
Methods inherited from interface org.eclipse.jetty.http.HttpParser.HttpHandler
badMessage, content, contentComplete, earlyEOF, headerComplete, messageComplete, parsedHeader, parsedTrailer
-
-
-
-
Method Detail
-
startResponse
public void startResponse(HttpVersion version, int status, java.lang.String reason)
Description copied from interface:HttpParser.ResponseHandler
This is the method called by parser when the HTTP request line is parsed- Specified by:
startResponse
in interfaceHttpParser.ResponseHandler
- Parameters:
version
- the http version in usestatus
- the response statusreason
- the response reason phrase
-
getStatus
public int getStatus()
-
getReason
public java.lang.String getReason()
-
getInfo
public MetaData.Response getInfo()
- Specified by:
getInfo
in classHttpTester.Message
-
toString
public java.lang.String toString()
- Overrides:
toString
in classHttpFields.Mutable
-
-