Package com.vaadin.flow.server
Enum HandlerHelper.RequestType
- java.lang.Object
-
- java.lang.Enum<HandlerHelper.RequestType>
-
- com.vaadin.flow.server.HandlerHelper.RequestType
-
- All Implemented Interfaces:
Serializable
,Comparable<HandlerHelper.RequestType>
- Enclosing class:
- HandlerHelper
public static enum HandlerHelper.RequestType extends Enum<HandlerHelper.RequestType>
Framework internal enum for tracking the type of a request.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HEARTBEAT
Heartbeat requests.INIT
INIT requests.PUSH
Push requests (any transport).UIDL
UIDL requests.WEBCOMPONENT_RESYNC
WebComponent resynchronization requests.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIdentifier()
Returns the identifier for the request type.static HandlerHelper.RequestType
valueOf(String name)
Returns the enum constant of this type with the specified name.static HandlerHelper.RequestType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final HandlerHelper.RequestType INIT
INIT requests.
-
UIDL
public static final HandlerHelper.RequestType UIDL
UIDL requests.
-
WEBCOMPONENT_RESYNC
public static final HandlerHelper.RequestType WEBCOMPONENT_RESYNC
WebComponent resynchronization requests.
-
HEARTBEAT
public static final HandlerHelper.RequestType HEARTBEAT
Heartbeat requests.
-
PUSH
public static final HandlerHelper.RequestType PUSH
Push requests (any transport).
-
-
Method Detail
-
values
public static HandlerHelper.RequestType[] 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 (HandlerHelper.RequestType c : HandlerHelper.RequestType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HandlerHelper.RequestType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIdentifier
public String getIdentifier()
Returns the identifier for the request type.- Returns:
- the identifier
-
-