public enum TransportProtocol extends Enum<TransportProtocol>
Enum Constant and Description |
---|
FILE |
FTP |
FTPS |
GIT |
HTTP |
HTTPS |
RSYNC |
SSH |
Modifier and Type | Field and Description |
---|---|
static String |
SCHEME_DELIMITER |
Modifier and Type | Method and Description |
---|---|
static TransportProtocol |
of(String url)
Returns the transport protocol of the supplied URL, null if the protocol is unknown.
|
static TransportProtocol |
of(String url,
TransportProtocol defaultProtocol) |
static TransportProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransportProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransportProtocol SSH
public static final TransportProtocol GIT
public static final TransportProtocol HTTP
public static final TransportProtocol HTTPS
public static final TransportProtocol FTP
public static final TransportProtocol FTPS
public static final TransportProtocol RSYNC
public static final TransportProtocol FILE
public static String SCHEME_DELIMITER
public static TransportProtocol[] values()
for (TransportProtocol c : TransportProtocol.values()) System.out.println(c);
public static TransportProtocol 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 null@Nullable public static TransportProtocol of(@NotNull String url)
@NotNull public static TransportProtocol of(@NotNull String url, TransportProtocol defaultProtocol)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.