| Modifier and Type | Class and Description |
|---|---|
| private static class | Protocol.
Holds the global lazily-loaded instance of the ProtocolDB |
| Modifier and Type | Field and Description |
|---|---|
| private final Collection | aliases
All the aliases for this protocol |
| private final int | |
| private final String | protocolName
Official protocol name |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final Collection | Returns: ACollection of Strings for aliases this ProtocolReturns a list of aliases this |
| public final String | Returns: The name of thisProtocol as a StringReturns the official IANA name of this |
| public final int | Returns: The protocol number for thisProtocol as an intReturns the official IANA protocol number for this |
| public static final Protocol | Returns: aProtocol instance, or null if the protocol could not be found.the official IANA name for the protocol, or an alias. name)Locates a protocol by name. |
| public static final Protocol | Returns: aProtocol instance, or null if the protocol could not be found.the internet protocol number of the protocol. proto)Locates a protocol by number. |
| private static final ProtocolsDB | |
| public String |
| aliases | back to summary |
|---|---|
| private final Collection<String> aliases All the aliases for this protocol | |
| proto | back to summary |
|---|---|
| private final int proto | |
| protocolName | back to summary |
|---|---|
| private final String protocolName Official protocol name | |
| Protocol | back to summary |
|---|---|
| pack-priv Protocol(String name, int proto, Collection<String> aliases) | |
| getAliases | back to summary |
|---|---|
| public final Collection Returns a list of aliases this
| |
| getName | back to summary |
|---|---|
| public final String getName() Returns the official IANA name of this
| |
| getProto | back to summary |
|---|---|
| public final int getProto() Returns the official IANA protocol number for this
| |
| getProtocolByName | back to summary |
|---|---|
| public static final Protocol getProtocolByName(String name) Locates a protocol by name. | |
| getProtocolByNumber | back to summary |
|---|---|
| public static final Protocol getProtocolByNumber(int proto) Locates a protocol by number.
| |
| getProtocolDB | back to summary |
|---|---|
| private static final ProtocolsDB getProtocolDB() Returns the currently loaded ProtocolDB
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ProtocolsDB |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static final ProtocolsDB |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final ProtocolsDB INSTANCE | |
| ProtocolDBSingletonHolder | back to summary |
|---|---|
| private ProtocolDBSingletonHolder() | |
| load | back to summary |
|---|---|
| private static final ProtocolsDB load() | |