org.atmosphere.wasync.transport
Class LongPollingTransport

java.lang.Object
  extended by org.atmosphere.wasync.transport.StreamTransport
      extended by org.atmosphere.wasync.transport.LongPollingTransport
All Implemented Interfaces:
com.ning.http.client.AsyncHandler<String>, Transport

public class LongPollingTransport
extends StreamTransport

Long-Polling 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
LongPollingTransport(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)
          
 
Methods inherited from class org.atmosphere.wasync.transport.StreamTransport
close, connectedFuture, error, errorHandled, future, onCompleted, onHeadersReceived, 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

LongPollingTransport

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

onBodyPartReceived

public com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
                                                           throws Exception
Description copied from class: StreamTransport

Specified by:
onBodyPartReceived in interface com.ning.http.client.AsyncHandler<String>
Overrides:
onBodyPartReceived in class StreamTransport
Throws:
Exception

name

public Request.TRANSPORT name()
The transport name

Specified by:
name in interface Transport
Overrides:
name in class StreamTransport
Returns:
transport name


Copyright © 2013. All Rights Reserved.