Package com.mastfrog.netty.http.client
Class State<T>
java.lang.Object
com.mastfrog.netty.http.client.State<T>
- Direct Known Subclasses:
State.Connected,State.ContentReceived,State.Error,State.Finished,State.FullContentReceived,State.HeadersReceived,State.Redirect,State.SendRequest,State.Timeout
Represents the current state of a request, used in notifications.
Subclass types can be used as keys for describing what events
to listen to in a way that carries type information.
- Author:
- Tim Boudreau
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classState event when a connection has been achieved; payload is the Channel; invoking close() on it will abort.static final classState event triggered when one chunk of content has arrived; if the server is using chunked transfer encoding, this state will be fired once for each chunk; when the FullContentReceived event is fired, there will be no more ContentReceived events.static final classState event triggered when an exception is thrown somewhere in processing of the request or response.static final classConvenience state event providing the entire response and its body as a FullHttpResponse.static final classState event triggered when the entire response body has arrived.static final classState event triggered when the response header has arrived, but not the response body.static final classState event triggered when a redirect is followed.static final classState event when the HTTP request is about to be sent; payload is the HTTP request (you can still modify headers, etc at this point).static final classState event triggered when a timeout occurs. -
Method Summary