public enum CommunicationProtocol extends Enum<CommunicationProtocol>
Enumerable for the available communication protocols which the API (and in extension this library) can accept.
Modifier and Type | Method and Description |
---|---|
String |
getProtocol()
Returns the protocol.
|
static CommunicationProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommunicationProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommunicationProtocol HTTP
public static final CommunicationProtocol HTTPS
public static CommunicationProtocol[] values()
for (CommunicationProtocol c : CommunicationProtocol.values()) System.out.println(c);
public static CommunicationProtocol 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 String getProtocol()
Returns the protocol.
Copyright © 2018. All rights reserved.