public class HttpStreamOpened extends WebStreamOpened implements IdMessage
A message sent to a web actor indicating that a new stream has been opened. This message is sent as a result of the web actor replying to an HttpRequest
with an HttpResponse
whose startActor
method has been called. The actor sending this message writes all received WebDataMessage
to the HTTP response stream that’s been left open after the HttpResponse
.
Constructor and Description |
---|
HttpStreamOpened(ActorRef<WebDataMessage> actor,
HttpResponse response) |
Modifier and Type | Method and Description |
---|---|
Object |
getId()
Returns the
HttpResponse passed to the constructor. |
getByteBufferBody, getFrom, getStringBody
contentString
toString
public HttpStreamOpened(ActorRef<WebDataMessage> actor, HttpResponse response)
public Object getId()
Returns the
HttpResponse
passed to the constructor.