org.atmosphere.wasync.transport
Class SSETransport
java.lang.Object
org.atmosphere.wasync.transport.StreamTransport
org.atmosphere.wasync.transport.SSETransport
- All Implemented Interfaces:
- com.ning.http.client.AsyncHandler<String>, Transport
public class SSETransport
- extends StreamTransport
Server Side Events Transport implementation
- Author:
- Jeanfrancois Arcand
| Nested classes/interfaces inherited from interface com.ning.http.client.AsyncHandler |
com.ning.http.client.AsyncHandler.STATE |
| Fields inherited from class org.atmosphere.wasync.transport.StreamTransport |
charSet, closed, connectdFuture, decoders, errorHandled, functions, isBinary, options, protocolEnabled, protocolReceived, request, requestBuilder, resolver, status, underlyingFuture |
| Methods inherited from class org.atmosphere.wasync.transport.StreamTransport |
close, connectedFuture, error, errorHandled, future, onCompleted, onStatusReceived, onThrowable, registerF, status, whiteSpace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSETransport
public SSETransport(com.ning.http.client.RequestBuilder requestBuilder,
Options options,
Request request,
List<FunctionWrapper> functions)
name
public Request.TRANSPORT name()
- The transport name
- Specified by:
name in interface Transport- Overrides:
name in class StreamTransport
- Returns:
- transport name
onHeadersReceived
public com.ning.http.client.AsyncHandler.STATE onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
throws Exception
-
- Specified by:
onHeadersReceived in interface com.ning.http.client.AsyncHandler<String>- Overrides:
onHeadersReceived in class StreamTransport
- Throws:
Exception
onBodyPartReceived
public com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
throws Exception
-
- Specified by:
onBodyPartReceived in interface com.ning.http.client.AsyncHandler<String>- Overrides:
onBodyPartReceived in class StreamTransport
- Throws:
Exception
Copyright © 2013. All Rights Reserved.