org.atmosphere.wasync.transport
Class LongPollingTransport
java.lang.Object
org.atmosphere.wasync.transport.StreamTransport
org.atmosphere.wasync.transport.LongPollingTransport
- All Implemented Interfaces:
- com.ning.http.client.AsyncHandler<java.lang.String>, Transport
public class LongPollingTransport
- extends StreamTransport
Long-Polling 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, connectOperationFuture, decoders, errorHandled, functions, isBinary, options, protocolEnabled, request, requestBuilder, resolver, status, timer, underlyingFuture |
|
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)
|
com.ning.http.client.AsyncHandler.STATE |
onStatusReceived(com.ning.http.client.HttpResponseStatus responseStatus)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
protocolReceived
protected boolean protocolReceived
LongPollingTransport
public LongPollingTransport(com.ning.http.client.RequestBuilder requestBuilder,
Options options,
Request request,
java.util.List<FunctionWrapper> functions)
onHeadersReceived
public com.ning.http.client.AsyncHandler.STATE onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
throws java.lang.Exception
-
- Specified by:
onHeadersReceived in interface com.ning.http.client.AsyncHandler<java.lang.String>- Overrides:
onHeadersReceived in class StreamTransport
- Throws:
java.lang.Exception
onStatusReceived
public com.ning.http.client.AsyncHandler.STATE onStatusReceived(com.ning.http.client.HttpResponseStatus responseStatus)
throws java.lang.Exception
-
- Specified by:
onStatusReceived in interface com.ning.http.client.AsyncHandler<java.lang.String>- Overrides:
onStatusReceived in class StreamTransport
- Throws:
java.lang.Exception
onBodyPartReceived
public com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
throws java.lang.Exception
- Description copied from class:
StreamTransport
-
- Specified by:
onBodyPartReceived in interface com.ning.http.client.AsyncHandler<java.lang.String>- Overrides:
onBodyPartReceived in class StreamTransport
- Throws:
java.lang.Exception
name
public Request.TRANSPORT name()
- The transport name
- Specified by:
name in interface Transport- Overrides:
name in class StreamTransport
- Returns:
- transport name
Copyright © 2014. All Rights Reserved.