java.lang.Object
org.eclipse.jetty.http.HttpFields.MutableHttpFields
org.eclipse.jetty.http.HttpTester.Message
org.eclipse.jetty.http.HttpTester.Response
- All Implemented Interfaces:
Iterable<HttpField>,Supplier<HttpFields>,HttpFields,HttpFields.Mutable,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.ImmutableHttpFields, HttpFields.Mutable, HttpFields.MutableHttpFieldsNested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpFields.Mutable
HttpFields.Mutable.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.http.HttpFields
CONNECTION_CLOSE, CONNECTION_KEEPALIVE, CONTENT_LENGTH_0, EMPTY, EXPIRES_01JAN1970 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidstartResponse(HttpVersion version, int status, String reason) This is the method called by parser when the HTTP request line is parsedtoString()Methods inherited from class org.eclipse.jetty.http.HttpTester.Message
badMessage, content, contentComplete, earlyEOF, generate, getContent, getContentByteBuffer, getContentBytes, getVersion, headerComplete, isComplete, isEarlyEOF, messageComplete, parsedHeader, setContent, setContent, setContent, setVersion, setVersionMethods inherited from class org.eclipse.jetty.http.HttpFields.MutableHttpFields
add, add, asImmutable, clear, computeField, computeField, computeField, equals, getField, hashCode, iterator, listIterator, put, put, put, put, put, remove, remove, remove, size, stream, takeAsImmutableMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.http.HttpFields
asString, contains, contains, contains, contains, contains, contains, get, get, get, getCSV, getCSV, getDateField, getDateField, getField, getField, getFieldNames, getFieldNamesCollection, getFields, getFields, getLongField, getLongField, getQualityCSV, getQualityCSV, getQualityCSV, getValues, getValuesList, getValuesList, isEqualToMethods inherited from interface org.eclipse.jetty.http.HttpFields.Mutable
add, add, add, add, add, addCSV, addCSV, addDateField, ensureField, put, put, putDate, putDateMethods inherited from interface org.eclipse.jetty.http.HttpParser.HttpHandler
badMessage, content, contentComplete, earlyEOF, headerComplete, messageComplete, parsedHeader, parsedTrailerMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
startResponse
Description copied from interface:HttpParser.ResponseHandlerThis is the method called by parser when the HTTP request line is parsed- Specified by:
startResponsein interfaceHttpParser.ResponseHandler- Parameters:
version- the http version in usestatus- the response statusreason- the response reason phrase
-
getStatus
public int getStatus() -
getReason
-
getMetaData
- Specified by:
getMetaDatain classHttpTester.Message
-
toString
- Overrides:
toStringin classHttpFields.MutableHttpFields
-