abstract class Http1ServerParser extends BodyAndHeaderParser
- Source
- Http1ServerParser.java
- Alphabetic
- By Inheritance
- Http1ServerParser
- BodyAndHeaderParser
- ParserBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Abstract Value Members
- abstract def headerComplete(name: String, value: String): Boolean
This is the method called by parser when a HTTP Header name and value is found
This is the method called by parser when a HTTP Header name and value is found
- name
The name of the header
- value
The value of the header
- returns
True if the parser should return to its caller
- Attributes
- protected[parser]
- Definition Classes
- BodyAndHeaderParser
- abstract def submitRequestLine(methodString: String, path: String, scheme: String, majorVersion: Int, minorVersion: Int): Boolean
This is the method called by parser when the HTTP request line is parsed
This is the method called by parser when the HTTP request line is parsed
- methodString
The method as a string
- path
The raw bytes of the PATH. These are copied into a ByteBuffer that will not be changed until this parser is reset and reused.
- scheme
the scheme of the request, either .http' or 'https'. Note that this doesn't necessarily correlate with using SSL/TLS.
- majorVersion
major version
- minorVersion
minor version
- returns
true if handling parsing should return.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def arrayMatches(chars: Array[Char]): Boolean
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def bufferPosition(): Int
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def clearBuffer(): Unit
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def contentComplete(): Boolean
Determine if the parser is in a state that is guaranteed to not produce any more body content
Determine if the parser is in a state that is guaranteed to not produce any more body content
- Definition Classes
- BodyAndHeaderParser
- final def definedContentLength(): Boolean
- Definition Classes
- BodyAndHeaderParser
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def getContentType(): EndOfContent
- Definition Classes
- BodyAndHeaderParser
- final def getString(start: Int, end: Int): String
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def getString(end: Int): String
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def getString(): String
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def getTrimmedString(): String
Returns the string in the buffer minus an leading or trailing whitespace or quotes
Returns the string in the buffer minus an leading or trailing whitespace or quotes
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def headersComplete(): Boolean
- Definition Classes
- BodyAndHeaderParser
- final def inChunkedHeaders(): Boolean
- Definition Classes
- BodyAndHeaderParser
- final def isChunked(): Boolean
- Definition Classes
- BodyAndHeaderParser
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isLenient(): Boolean
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def isStart(): Boolean
Whether the parser is in the initial state.
- def mustNotHaveBody(): Boolean
determines if a body must not follow the headers
determines if a body must not follow the headers
- Definition Classes
- Http1ServerParser → BodyAndHeaderParser
- Annotations
- @Override()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def next(buffer: ByteBuffer, allow8859: Boolean): Char
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def parseContent(in: ByteBuffer): ByteBuffer
Parses the buffer into body content
Parses the buffer into body content
- in
ByteBuffer to parse
- returns
a ByteBuffer with the parsed body content. Buffer in may not be depleted. If more data is needed, null is returned. In the case of content complete, an empty ByteBuffer is returned.
- Attributes
- protected[parser]
- Definition Classes
- BodyAndHeaderParser
- Exceptions thrown
- final def parseHeaders(in: ByteBuffer): Boolean
Parse headers
Parse headers
- in
input ByteBuffer
- returns
true if successful, false if more input is needed
- Attributes
- protected[parser]
- Definition Classes
- BodyAndHeaderParser
- Annotations
- @SuppressWarnings()
- Exceptions thrown
BaseExceptions.BadMessageon invalid inputBaseExceptions.InvalidStateif called when the parser is not ready to accept headers
- final def parseRequestLine(in: ByteBuffer): Boolean
parses the request line.
parses the request line. Returns true if completed successfully, false if needs input
- Attributes
- protected[parser]
- Annotations
- @SuppressWarnings()
- final def putChar(c: Char): Unit
Store the char in the internal buffer
Store the char in the internal buffer
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- final def requestLineComplete(): Boolean
- def reset(): Unit
- Definition Classes
- Http1ServerParser → BodyAndHeaderParser → ParserBase
- Annotations
- @Override()
- final def resetLimit(limit: Int): Unit
- Attributes
- protected[parser]
- Definition Classes
- ParserBase
- def shutdownParser(): Unit
for shutting down the parser and its state
for shutting down the parser and its state
- Definition Classes
- Http1ServerParser → BodyAndHeaderParser → ParserBase
- Annotations
- @Override()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()