org.atmosphere.wasync.transport
Class SSETransport

java.lang.Object
  extended by org.atmosphere.wasync.transport.StreamTransport
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface com.ning.http.client.AsyncHandler
com.ning.http.client.AsyncHandler.STATE
 
Field Summary
 
Fields inherited from class org.atmosphere.wasync.transport.StreamTransport
charSet, closed, connectdFuture, decoders, errorHandled, functions, isBinary, options, protocolEnabled, protocolReceived, request, requestBuilder, resolver, status, underlyingFuture
 
Constructor Summary
SSETransport(com.ning.http.client.RequestBuilder requestBuilder, Options options, Request request, List<FunctionWrapper> functions)
           
 
Method Summary
 Request.TRANSPORT name()
          The transport name
 com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
          
 com.ning.http.client.AsyncHandler.STATE onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
          
 
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
 

Constructor Detail

SSETransport

public SSETransport(com.ning.http.client.RequestBuilder requestBuilder,
                    Options options,
                    Request request,
                    List<FunctionWrapper> functions)
Method Detail

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.