|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereInterceptorAdapter
org.atmosphere.client.MessageLengthInterceptor
TrackMessageSizeInterceptor
public class MessageLengthInterceptor
An AtmosphereInterceptor that add a special String "|" at the end of a message, allowing the
atmosphere.js to detect if one or several messages where aggregated in one write operations.
ApplicationConfig.MESSAGE_DELIMITER
| Constructor Summary | |
|---|---|
MessageLengthInterceptor()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
configure(AtmosphereConfig config)
Deprecated. Allow this object to configure it's state when initialized |
Action |
inspect(AtmosphereResource r)
Deprecated. Invoked before an AtmosphereResource gets dispatched to AtmosphereHandler |
String |
toString()
Deprecated. |
| Methods inherited from class org.atmosphere.cpr.AtmosphereInterceptorAdapter |
|---|
postInspect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MessageLengthInterceptor()
| Method Detail |
|---|
public void configure(AtmosphereConfig config)
AtmosphereInterceptor
configure in interface AtmosphereInterceptorconfigure in class AtmosphereInterceptorAdapterconfig - an AtmosphereConfigpublic Action inspect(AtmosphereResource r)
AtmosphereInterceptorAtmosphereResource gets dispatched to AtmosphereHandler
inspect in interface AtmosphereInterceptorinspect in class AtmosphereInterceptorAdapterr - a AtmosphereResource
Action.CONTINUE or Action.SUSPEND
to dispatch the AtmosphereResource to other AtmosphereInterceptor or AtmosphereHandler.
Return Action.TYPE.CANCELLED to stop the processing.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||