public enum Transport extends Enum<Transport>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReliable() |
boolean |
isSCTP() |
boolean |
isTCP() |
boolean |
isTLS() |
boolean |
isUDP() |
boolean |
isWS() |
boolean |
isWSS() |
static Transport |
of(Buffer buffer)
Get the transport off of the given buffer
|
static Transport |
of(String buffer) |
Buffer |
toBuffer() |
Buffer |
toUpperCaseBuffer() |
static Transport |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transport[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transport udp
public static final Transport tcp
public static final Transport tls
public static final Transport sctp
public static final Transport ws
public static final Transport wss
public static Transport[] values()
for (Transport c : Transport.values()) System.out.println(c);
public static Transport 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 boolean isReliable()
public boolean isUDP()
public boolean isTCP()
public boolean isTLS()
public boolean isSCTP()
public boolean isWS()
public boolean isWSS()
public static Transport of(Buffer buffer) throws IllegalArgumentException
buffer - IllegalArgumentException - in case the supplied buffer isn't a recognized transportpublic static Transport of(String buffer) throws IllegalArgumentException
IllegalArgumentExceptionpublic Buffer toBuffer()
public Buffer toUpperCaseBuffer()
Copyright © 2020. All Rights Reserved.