public enum DeliveryMode extends Enum<DeliveryMode>
| Enum Constant and Description |
|---|
PING
Ping mode, a backchannel token delivery mode where a client is notified
via its client notification endpoint and then gets tokens from the token
endpoint.
|
POLL
Poll mode, a backchannel token delivery mode where a client polls the
token endpoint until it gets tokens.
|
PUSH
Push mode, a backchannel token delivery mode where a client receives
tokens at its client notification endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
static DeliveryMode |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static DeliveryMode |
parse(String grantType)
Convert
String to DeliveryMode. |
static DeliveryMode[] |
toArray(int bits) |
static int |
toBits(EnumSet<DeliveryMode> set) |
static EnumSet<DeliveryMode> |
toSet(DeliveryMode[] array) |
static EnumSet<DeliveryMode> |
toSet(int bits) |
String |
toString() |
static DeliveryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeliveryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeliveryMode POLL
public static final DeliveryMode PING
public static final DeliveryMode PUSH
public static DeliveryMode[] values()
for (DeliveryMode c : DeliveryMode.values()) System.out.println(c);
public static DeliveryMode 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 short getValue()
public String toString()
toString in class Enum<DeliveryMode>public static DeliveryMode getByValue(short value)
value - The integer representation of the instance to find.null if not found.public static DeliveryMode parse(String grantType)
String to DeliveryMode.grantType - A backchannel token delivery mode. For example, "poll".DeliveryMode instance, or null.public static int toBits(EnumSet<DeliveryMode> set)
public static DeliveryMode[] toArray(int bits)
public static EnumSet<DeliveryMode> toSet(int bits)
public static EnumSet<DeliveryMode> toSet(DeliveryMode[] array)
Copyright © 2019. All rights reserved.