Package org.eclipse.jetty.http
Class HttpTester.Message
java.lang.Object
org.eclipse.jetty.http.HttpFields.Mutable
org.eclipse.jetty.http.HttpTester.Message
- All Implemented Interfaces:
Iterable<HttpField>,HttpFields,HttpParser.HttpHandler
- Direct Known Subclasses:
HttpTester.Request,HttpTester.Response
- Enclosing class:
- HttpTester
public abstract static class HttpTester.Message
extends HttpFields.Mutable
implements HttpParser.HttpHandler
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbadMessage(BadMessageException failure) Called to signal that a bad HTTP message has been received.booleancontent(ByteBuffer ref) booleanvoidearlyEOF()Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messagegenerate()byte[]abstract MetaDatagetInfo()booleanbooleanbooleanbooleanvoidparsedHeader(HttpField field) This is the method called by parser when an HTTP Header name and value is foundvoidsetContent(byte[] bytes) voidsetContent(String content) voidsetContent(ByteBuffer content) voidsetVersion(String version) voidsetVersion(HttpVersion version) 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, toStringMethods 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, getCSV, getCSV, getDateField, getField, getField, getFieldNames, getFieldNamesCollection, getFields, getFields, getLongField, getLongField, getQualityCSV, getQualityCSV, getQualityCSV, getValues, getValuesList, getValuesList, isEqualToMethods inherited from interface org.eclipse.jetty.http.HttpParser.HttpHandler
parsedTrailerMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
isComplete
public boolean isComplete() -
getVersion
-
setVersion
-
setVersion
-
setContent
public void setContent(byte[] bytes) -
setContent
-
setContent
-
getContentBytes
public byte[] getContentBytes() -
getContent
-
parsedHeader
Description copied from interface:HttpParser.HttpHandlerThis is the method called by parser when an HTTP Header name and value is found- Specified by:
parsedHeaderin interfaceHttpParser.HttpHandler- Parameters:
field- The field parsed
-
contentComplete
public boolean contentComplete()- Specified by:
contentCompletein interfaceHttpParser.HttpHandler
-
messageComplete
public boolean messageComplete()- Specified by:
messageCompletein interfaceHttpParser.HttpHandler
-
headerComplete
public boolean headerComplete()- Specified by:
headerCompletein interfaceHttpParser.HttpHandler
-
earlyEOF
public void earlyEOF()Description copied from interface:HttpParser.HttpHandlerCalled to signal that an EOF was received unexpectedly during the parsing of an HTTP message- Specified by:
earlyEOFin interfaceHttpParser.HttpHandler
-
isEarlyEOF
public boolean isEarlyEOF() -
content
- Specified by:
contentin interfaceHttpParser.HttpHandler
-
badMessage
Description copied from interface:HttpParser.HttpHandlerCalled to signal that a bad HTTP message has been received.- Specified by:
badMessagein interfaceHttpParser.HttpHandler- Parameters:
failure- the failure with the bad message information
-
generate
-
getInfo
-