|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.wasync.transport.StreamTransport<T>
public class StreamTransport<T>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.ning.http.client.AsyncHandler |
|---|
com.ning.http.client.AsyncHandler.STATE |
| Field Summary | |
|---|---|
protected String |
charSet
|
protected Future |
f
|
protected List<FunctionWrapper> |
functions
|
| Constructor Summary | |
|---|---|
StreamTransport(Options options,
List<Decoder<? extends Object,?>> decoders,
List<FunctionWrapper> functions,
FunctionResolver resolver)
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(Request request)
Return true if the transport can handle the request. |
void |
close()
Close the underlying transport} |
Transport |
future(Future f)
The current Socket's Future |
Request.TRANSPORT |
name()
The transport name |
com.ning.http.client.AsyncHandler.STATE |
onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
|
String |
onCompleted()
|
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)
|
void |
onThrowable(Throwable t)
Called when an unexpected exception ocurred. |
Transport |
registerF(FunctionWrapper function)
Register a new FunctionResolver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Future f
protected final List<FunctionWrapper> functions
protected String charSet
| Constructor Detail |
|---|
public StreamTransport(Options options,
List<Decoder<? extends Object,?>> decoders,
List<FunctionWrapper> functions,
FunctionResolver resolver)
| Method Detail |
|---|
public Transport future(Future f)
TransportSocket's Future
future in interface Transportpublic Transport registerF(FunctionWrapper function)
TransportFunctionResolver
registerF in interface Transportfunction - FunctionResolver
public void onThrowable(Throwable t)
onThrowable in interface com.ning.http.client.AsyncHandler<String>onThrowable in interface Transportt - a Throwable
public com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
throws Exception
onBodyPartReceived in interface com.ning.http.client.AsyncHandler<String>Exception
public com.ning.http.client.AsyncHandler.STATE onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
throws Exception
onHeadersReceived in interface com.ning.http.client.AsyncHandler<String>Exception
public com.ning.http.client.AsyncHandler.STATE onStatusReceived(com.ning.http.client.HttpResponseStatus responseStatus)
throws Exception
onStatusReceived in interface com.ning.http.client.AsyncHandler<String>Exception
public String onCompleted()
throws Exception
onCompleted in interface com.ning.http.client.AsyncHandler<String>Exceptionpublic Request.TRANSPORT name()
Transport
name in interface Transportpublic void close()
Transport
close in interface Transportpublic boolean canHandle(Request request)
Transport
canHandle in interface Transportrequest - Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||