public static enum FrameInterceptor.PropertyClass extends Enum<FrameInterceptor.PropertyClass>
This enum is dedicated to properties that represents a class to instantiate.
| Enum Constant and Description |
|---|
STOMP_FORMAT_CLASS
Setting that specifies the
StompFormat implementation class used by the interceptor. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
retrieve(Class<T> desiredType,
org.atmosphere.cpr.AtmosphereConfig config)
Checks in the
AtmosphereConfig if the propertyName is defined as an init-param and instantiate
the appropriate class. |
String |
toString() |
static FrameInterceptor.PropertyClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FrameInterceptor.PropertyClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FrameInterceptor.PropertyClass STOMP_FORMAT_CLASS
StompFormat implementation class used by the interceptor.public static FrameInterceptor.PropertyClass[] values()
for (FrameInterceptor.PropertyClass c : FrameInterceptor.PropertyClass.values()) System.out.println(c);
public static FrameInterceptor.PropertyClass valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T> T retrieve(Class<T> desiredType, org.atmosphere.cpr.AtmosphereConfig config)
Checks in the AtmosphereConfig if the propertyName is defined as an init-param and instantiate
the appropriate class.
If instantiation fails, the exception is logged and null is returned.
T - the generic for modular calldesiredType - the type to be returnedconfig - the configuration that provides parametersnull if an error occurspublic String toString()
toString in class Enum<FrameInterceptor.PropertyClass>Copyright © 2015. All Rights Reserved.