Package org.atmosphere.cpr
Enum Action.TYPE
- java.lang.Object
-
- java.lang.Enum<Action.TYPE>
-
- org.atmosphere.cpr.Action.TYPE
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Action.TYPE>
- Enclosing class:
- Action
public static enum Action.TYPE extends java.lang.Enum<Action.TYPE>
The action's type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLEDCancel the current connection/response and close it.CONTINUEContinue the processing of the request.CREATEDMark this action as created.DESTROYEDMark this action as destroyed.RESUMEResume the underlying connection/response.SKIP_ATMOSPHEREHANDLERSkip the invocation ofAtmosphereHandlerand interrupt the invocation of allAtmosphereInterceptor.SUSPENDSUSPEND the underlying connection/response.SUSPEND_MESSAGEFake suspend for WebSocket MessageTIMEOUTTimeout the underlying connection/response and invoke theAtmosphereResource.resume().
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Action.TYPEvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Action.TYPE[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUSPEND
public static final Action.TYPE SUSPEND
SUSPEND the underlying connection/response. The request will be dispatched to framework/container viaAtmosphereHandler.onStateChange(AtmosphereResourceEvent)
-
RESUME
public static final Action.TYPE RESUME
Resume the underlying connection/response. The request will be dispatched to framework/container viaAtmosphereHandler.onStateChange(AtmosphereResourceEvent)
-
TIMEOUT
public static final Action.TYPE TIMEOUT
Timeout the underlying connection/response and invoke theAtmosphereResource.resume(). The request will be dispatched to framework/container viaAtmosphereHandler.onStateChange(AtmosphereResourceEvent)
-
CANCELLED
public static final Action.TYPE CANCELLED
Cancel the current connection/response and close it. The request will NOT be dispatched to framework/container viaAtmosphereHandler
-
CONTINUE
public static final Action.TYPE CONTINUE
Continue the processing of the request. The request will still be dispatched to framework/container viaAtmosphereHandler
-
CREATED
public static final Action.TYPE CREATED
Mark this action as created. The request will still be dispatched to framework/container viaAtmosphereHandler
-
DESTROYED
public static final Action.TYPE DESTROYED
Mark this action as destroyed. All objects associated with this action will be candidate for being garbage collected.
-
SUSPEND_MESSAGE
public static final Action.TYPE SUSPEND_MESSAGE
Fake suspend for WebSocket Message
-
SKIP_ATMOSPHEREHANDLER
public static final Action.TYPE SKIP_ATMOSPHEREHANDLER
Skip the invocation ofAtmosphereHandlerand interrupt the invocation of allAtmosphereInterceptor.
-
-
Method Detail
-
values
public static Action.TYPE[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Action.TYPE c : Action.TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Action.TYPE valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-