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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
badMessage
(BadMessageException failure) Called to signal that a bad HTTP message has been received.boolean
content
(ByteBuffer ref) boolean
void
earlyEOF()
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messagegenerate()
byte[]
abstract MetaData
getInfo()
boolean
boolean
boolean
boolean
void
parsedHeader
(HttpField field) This is the method called by parser when an HTTP Header name and value is foundvoid
setContent
(byte[] bytes) void
setContent
(String content) void
setContent
(ByteBuffer content) void
setVersion
(String version) void
setVersion
(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, toString
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
parsedTrailer
Methods 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.HttpHandler
This is the method called by parser when an HTTP Header name and value is found- Specified by:
parsedHeader
in interfaceHttpParser.HttpHandler
- Parameters:
field
- The field parsed
-
contentComplete
public boolean contentComplete()- Specified by:
contentComplete
in interfaceHttpParser.HttpHandler
-
messageComplete
public boolean messageComplete()- Specified by:
messageComplete
in interfaceHttpParser.HttpHandler
-
headerComplete
public boolean headerComplete()- Specified by:
headerComplete
in interfaceHttpParser.HttpHandler
-
earlyEOF
public void earlyEOF()Description copied from interface:HttpParser.HttpHandler
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP message- Specified by:
earlyEOF
in interfaceHttpParser.HttpHandler
-
isEarlyEOF
public boolean isEarlyEOF() -
content
- Specified by:
content
in interfaceHttpParser.HttpHandler
-
badMessage
Description copied from interface:HttpParser.HttpHandler
Called to signal that a bad HTTP message has been received.- Specified by:
badMessage
in interfaceHttpParser.HttpHandler
- Parameters:
failure
- the failure with the bad message information
-
generate
-
getInfo
-