|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.wasync.Decoder.Decoded<T>
T - public static final class Decoder.Decoded<T>
A Decoder may return an instance of a Decoded object to prevent some messages from being delivered to a Function,
by returning a ABORT instance. Returning an instance of Decoded with the action set to Decoder.Decoded.ACTION.CONTINUE
will allow dispatching messages to Function
| Nested Class Summary | |
|---|---|
static class |
Decoder.Decoded.ACTION
|
| Field Summary | |
|---|---|
static Decoder.Decoded |
ABORT
Use this object to prevent the delivering of messages to Function |
| Constructor Summary | |
|---|---|
Decoder.Decoded(T decodedMessage)
Create a decoded object with action set to Decoder.Decoded.ACTION.CONTINUE |
|
Decoder.Decoded(T decodedMessage,
Decoder.Decoded.ACTION action)
Create a decoded object |
|
| Method Summary | |
|---|---|
Decoder.Decoded.ACTION |
action()
Return the action. |
T |
decoded()
Return the decoded message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Decoder.Decoded ABORT
Function
| Constructor Detail |
|---|
public Decoder.Decoded(T decodedMessage,
Decoder.Decoded.ACTION action)
decodedMessage - the decoded messageaction - the actionpublic Decoder.Decoded(T decodedMessage)
Decoder.Decoded.ACTION.CONTINUE
decodedMessage - | Method Detail |
|---|
public T decoded()
public Decoder.Decoded.ACTION action()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||