- java.lang.Object
-
- org.eclipse.jetty.http.HttpFields.Mutable
-
- org.eclipse.jetty.http.HttpTester.Message
-
- All Implemented Interfaces:
java.lang.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 Constructor Description Message()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
badMessage(BadMessageException failure)
Called to signal that a bad HTTP message has been received.boolean
content(java.nio.ByteBuffer ref)
boolean
contentComplete()
void
earlyEOF()
Called to signal that an EOF was received unexpectedly during the parsing of an HTTP messagejava.nio.ByteBuffer
generate()
java.lang.String
getContent()
byte[]
getContentBytes()
abstract MetaData
getInfo()
HttpVersion
getVersion()
boolean
headerComplete()
boolean
isComplete()
boolean
isEarlyEOF()
boolean
messageComplete()
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(java.lang.String content)
void
setContent(java.nio.ByteBuffer content)
void
setVersion(java.lang.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
-
-
-
-
Method Detail
-
isComplete
public boolean isComplete()
-
getVersion
public HttpVersion getVersion()
-
setVersion
public void setVersion(java.lang.String version)
-
setVersion
public void setVersion(HttpVersion version)
-
setContent
public void setContent(byte[] bytes)
-
setContent
public void setContent(java.lang.String content)
-
setContent
public void setContent(java.nio.ByteBuffer content)
-
getContentBytes
public byte[] getContentBytes()
-
getContent
public java.lang.String getContent()
-
parsedHeader
public void parsedHeader(HttpField field)
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
public boolean content(java.nio.ByteBuffer ref)
- Specified by:
content
in interfaceHttpParser.HttpHandler
-
badMessage
public void badMessage(BadMessageException failure)
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
public java.nio.ByteBuffer generate()
-
getInfo
public abstract MetaData getInfo()
-
-