public class UndertowXhrTransport.SockJsResponseListener extends Object implements ChannelListener<StreamSourceChannel>
ChannelListener.Setter<T extends Channel>, ChannelListener.SimpleSetter<T extends Channel>
Constructor and Description |
---|
SockJsResponseListener(io.undertow.client.ClientConnection connection,
URI url,
HttpHeaders headers,
XhrClientSockJsSession sockJsSession,
SettableListenableFuture<WebSocketSession> connectFuture) |
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(StreamSourceChannel channel) |
void |
onFailure(Throwable failure) |
void |
onSuccess() |
void |
setup(StreamSourceChannel channel) |
public SockJsResponseListener(io.undertow.client.ClientConnection connection, URI url, HttpHeaders headers, XhrClientSockJsSession sockJsSession, SettableListenableFuture<WebSocketSession> connectFuture)
public void setup(StreamSourceChannel channel)
public void handleEvent(StreamSourceChannel channel)
handleEvent
in interface ChannelListener<StreamSourceChannel>
public void onSuccess()
public void onFailure(Throwable failure)