org.atmosphere.cpr
Class AsyncSupportListenerAdapter

java.lang.Object
  extended by org.atmosphere.cpr.AsyncSupportListenerAdapter
All Implemented Interfaces:
AsyncSupportListener

public class AsyncSupportListenerAdapter
extends Object
implements AsyncSupportListener

A default implementation of AsyncSupportListener

Author:
Jeanfrancois Arcand

Constructor Summary
AsyncSupportListenerAdapter()
           
 
Method Summary
 void onClose(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets closed.
 void onDestroyed(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets destroyed.
 void onResume(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets resumed.
 void onSuspend(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource gets suspended.
 void onTimeout(AtmosphereRequest request, AtmosphereResponse response)
          Invoked when an AtmosphereResource times out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncSupportListenerAdapter

public AsyncSupportListenerAdapter()
Method Detail

onSuspend

public void onSuspend(AtmosphereRequest request,
                      AtmosphereResponse response)
Description copied from interface: AsyncSupportListener
Invoked when an AtmosphereResource gets suspended.

Specified by:
onSuspend in interface AsyncSupportListener
Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onResume

public void onResume(AtmosphereRequest request,
                     AtmosphereResponse response)
Description copied from interface: AsyncSupportListener
Invoked when an AtmosphereResource gets resumed.

Specified by:
onResume in interface AsyncSupportListener
Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onTimeout

public void onTimeout(AtmosphereRequest request,
                      AtmosphereResponse response)
Description copied from interface: AsyncSupportListener
Invoked when an AtmosphereResource times out.

Specified by:
onTimeout in interface AsyncSupportListener
Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onClose

public void onClose(AtmosphereRequest request,
                    AtmosphereResponse response)
Description copied from interface: AsyncSupportListener
Invoked when an AtmosphereResource gets closed.

Specified by:
onClose in interface AsyncSupportListener
Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse

onDestroyed

public void onDestroyed(AtmosphereRequest request,
                        AtmosphereResponse response)
Description copied from interface: AsyncSupportListener
Invoked when an AtmosphereResource gets destroyed.

Specified by:
onDestroyed in interface AsyncSupportListener
Parameters:
request - an AtmosphereRequest
response - an AtmosphereResponse


Copyright © 2013. All Rights Reserved.