org.atmosphere.interceptor
Class PaddingAtmosphereInterceptor.ForcePreSuspend

java.lang.Object
  extended by org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter
      extended by org.atmosphere.interceptor.PaddingAtmosphereInterceptor.ForcePreSuspend
All Implemented Interfaces:
AtmosphereResourceEventListener, AllowInterceptor
Enclosing class:
PaddingAtmosphereInterceptor

public final class PaddingAtmosphereInterceptor.ForcePreSuspend
extends AtmosphereResourceEventListenerAdapter
implements AllowInterceptor


Constructor Summary
PaddingAtmosphereInterceptor.ForcePreSuspend(AtmosphereResponse response)
           
 
Method Summary
 void onPreSuspend(AtmosphereResourceEvent event)
          Invoked when the AtmosphereResource.suspend() is in the process of being suspended but nothing has yet been written on the connection.
 
Methods inherited from class org.atmosphere.cpr.AtmosphereResourceEventListenerAdapter
onBroadcast, onClose, onDisconnect, onResume, onSuspend, onThrowable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaddingAtmosphereInterceptor.ForcePreSuspend

public PaddingAtmosphereInterceptor.ForcePreSuspend(AtmosphereResponse response)
Method Detail

onPreSuspend

public void onPreSuspend(AtmosphereResourceEvent event)
Description copied from interface: AtmosphereResourceEventListener
Invoked when the AtmosphereResource.suspend() is in the process of being suspended but nothing has yet been written on the connection. An implementation could configure the request's headers, flush some data, etc. during that stage.

Specified by:
onPreSuspend in interface AtmosphereResourceEventListener
Overrides:
onPreSuspend in class AtmosphereResourceEventListenerAdapter
Parameters:
event - a AtmosphereResourceEvent


Copyright © 2013. All Rights Reserved.