public enum EGitProtocol extends java.lang.Enum<EGitProtocol>
Enum Constant and Description |
---|
FILE
File protocol.
|
GIT
GIT protocol
|
HTTP
HTTP protocol.
|
HTTPS
HTTPS protocol.
|
SSH
SSH protocol
|
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<EGitProtocol> |
fromUrl(java.lang.String url)
Returns the protocol from the given url or empty if the url is invalid or the
protocol is unknown.
|
java.lang.String |
getUrlPrefix()
Returns the URL prefix corresponding to this protocol, e.g.
|
static EGitProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EGitProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EGitProtocol FILE
public static final EGitProtocol HTTP
public static final EGitProtocol HTTPS
public static final EGitProtocol SSH
public static final EGitProtocol GIT
public static EGitProtocol[] values()
for (EGitProtocol c : EGitProtocol.values()) System.out.println(c);
public static EGitProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.Optional<EGitProtocol> fromUrl(java.lang.String url)
public java.lang.String getUrlPrefix()