Package akka.http.impl.engine.parsing
Class HttpResponseParser
- java.lang.Object
-
- akka.http.impl.engine.parsing.HttpResponseParser
-
- All Implemented Interfaces:
HttpMessageParser<ParserOutput.ResponseOutput>
public class HttpResponseParser extends java.lang.Object implements HttpMessageParser<ParserOutput.ResponseOutput>
INTERNAL API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpResponseParser.OneHundredContinueError$
static class
HttpResponseParser.ResponseContext
param: requestMethod the request's HTTP method param: oneHundredContinueTrigger if the request contains anExpect: 100-continue
header this option contains a promise whose completion either triggers the sending of the (suspended) request entity or the closing of the connection (for error completion)static class
HttpResponseParser.ResponseContext$
-
Nested classes/interfaces inherited from interface akka.http.impl.engine.parsing.HttpMessageParser
HttpMessageParser.StateResult, HttpMessageParser.Trampoline, HttpMessageParser.Trampoline$
-
-
Constructor Summary
Constructors Constructor Description HttpResponseParser(ParserSettings settings, HttpHeaderParser headerParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected scala.Function0<scala.Option<ParserOutput.ErrorOutput>>
completionHandling()
HttpResponseParser
createShallowCopy()
void
emit(ParserOutput.ResponseOutput output)
boolean
handleInformationalResponses()
protected HttpHeaderParser
headerParser()
boolean
isResponseParser()
scala.runtime.Nothing$
onBadProtocol(akka.util.ByteString input)
invoked if the specified protocol is unknownParserOutput.ResponseOutput
onPull()
boolean
onUpstreamFinish()
protected HttpMessageParser.StateResult
parseEntity(scala.collection.immutable.List<HttpHeader> headers, HttpProtocol protocol, akka.util.ByteString input, int bodyStart, scala.Option<Content$minusLength> clh, scala.Option<Content$minusType> cth, boolean isChunked, boolean expect100continue, boolean hostHeaderPresent, boolean closeAfterResponseCompletion, javax.net.ssl.SSLSession sslSession)
protected HttpMessageParser.StateResult
parseMessage(akka.util.ByteString input, int offset)
void
setContextForNextResponse(HttpResponseParser.ResponseContext responseContext)
protected ParserSettings
settings()
protected boolean
terminated()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.engine.parsing.HttpMessageParser
chunkedEntity, contentType, defaultEntity, done, doPull, emptyEntity, failEntityStream, failEntityStream, failEntityStream, failMessageStart, failMessageStart, failMessageStart, failMessageStart, failMessageStart, initialHeaderBuffer, parseBytes, parseChunk, parseFixedLengthBody, parseHeaderLines, parseHeaderLinesAux, parseProtocol, parseSessionBytes, setCompletionHandling, shouldComplete, startNewMessage, strictEntity, terminate
-
-
-
-
Constructor Detail
-
HttpResponseParser
public HttpResponseParser(ParserSettings settings, HttpHeaderParser headerParser)
-
-
Method Detail
-
completionHandling
protected scala.Function0<scala.Option<ParserOutput.ErrorOutput>> completionHandling()
- Specified by:
completionHandling
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
terminated
protected boolean terminated()
- Specified by:
terminated
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
settings
protected ParserSettings settings()
- Specified by:
settings
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
headerParser
protected HttpHeaderParser headerParser()
- Specified by:
headerParser
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
isResponseParser
public final boolean isResponseParser()
- Specified by:
isResponseParser
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
createShallowCopy
public final HttpResponseParser createShallowCopy()
-
setContextForNextResponse
public final void setContextForNextResponse(HttpResponseParser.ResponseContext responseContext)
-
onPull
public final ParserOutput.ResponseOutput onPull()
-
onUpstreamFinish
public final boolean onUpstreamFinish()
-
emit
public final void emit(ParserOutput.ResponseOutput output)
- Specified by:
emit
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
parseMessage
protected HttpMessageParser.StateResult parseMessage(akka.util.ByteString input, int offset)
- Specified by:
parseMessage
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
onBadProtocol
public final scala.runtime.Nothing$ onBadProtocol(akka.util.ByteString input)
Description copied from interface:HttpMessageParser
invoked if the specified protocol is unknown- Specified by:
onBadProtocol
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
handleInformationalResponses
public boolean handleInformationalResponses()
-
parseEntity
protected final HttpMessageParser.StateResult parseEntity(scala.collection.immutable.List<HttpHeader> headers, HttpProtocol protocol, akka.util.ByteString input, int bodyStart, scala.Option<Content$minusLength> clh, scala.Option<Content$minusType> cth, boolean isChunked, boolean expect100continue, boolean hostHeaderPresent, boolean closeAfterResponseCompletion, javax.net.ssl.SSLSession sslSession)
- Specified by:
parseEntity
in interfaceHttpMessageParser<ParserOutput.ResponseOutput>
-
-