public static enum ConnectionEntry.Protocol extends java.lang.Enum<ConnectionEntry.Protocol>
Enum Constant and Description |
---|
DIRECTORY |
FILE |
HTTP |
HTTPS |
RAW |
RTMP |
RTMPS |
RTP |
RTSP |
SRT |
TCP |
UDP |
Modifier and Type | Method and Description |
---|---|
static ConnectionEntry.Protocol |
fromString(java.lang.String proto)
Turns a string representation into a Protocol.
|
int |
getDefaultPort() |
static ConnectionEntry.Protocol |
getProtocol(java.lang.String url)
Given a URL return the protocol that is represented
|
java.lang.String |
toString() |
java.lang.String |
toURL() |
static ConnectionEntry.Protocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionEntry.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionEntry.Protocol RAW
public static final ConnectionEntry.Protocol UDP
public static final ConnectionEntry.Protocol RTSP
public static final ConnectionEntry.Protocol RTMP
public static final ConnectionEntry.Protocol RTMPS
public static final ConnectionEntry.Protocol HTTP
public static final ConnectionEntry.Protocol HTTPS
public static final ConnectionEntry.Protocol FILE
public static final ConnectionEntry.Protocol TCP
public static final ConnectionEntry.Protocol RTP
public static final ConnectionEntry.Protocol DIRECTORY
public static final ConnectionEntry.Protocol SRT
public static ConnectionEntry.Protocol[] values()
for (ConnectionEntry.Protocol c : ConnectionEntry.Protocol.values()) System.out.println(c);
public static ConnectionEntry.Protocol 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 java.lang.String toString()
toString
in class java.lang.Enum<ConnectionEntry.Protocol>
public java.lang.String toURL()
public int getDefaultPort()
public static ConnectionEntry.Protocol fromString(java.lang.String proto)
public static ConnectionEntry.Protocol getProtocol(java.lang.String url)