Serializable
, Comparable<Port>
, org.refcodes.mixin.PortAccessor
public enum Port extends Enum<Port> implements org.refcodes.mixin.PortAccessor
Enum Constant | Description |
---|---|
DNS |
Domain Name System (DNS) service:.
|
FTP |
File Transfer Protocol (FTP):.
|
HTTP |
Hypertext Transfer Protocol (HTTP) used in the World Wide Web:.
|
HTTP_ALTERNATE |
HTTP alternate (http_alt).
|
HTTPS |
HTTP Secure (HTTPS):.
|
IMAP |
Internet Message Access Protocol (IMAP):.
|
IRC |
Internet Relay Chat (IRC):.
|
NNTP |
Network News Transfer Protocol (NNTP):.
|
NTP |
Network Time Protocol (NTP):.
|
POP3 |
Post Office Protocol (POP3):.
|
REFCODES |
REFCODES.ORG:
|
SMTP |
Simple Mail Transfer Protocol (SMTP):.
|
SNMP |
Simple Network Management Protocol (SNMP):.
|
SSH |
Secure Shell (SSH):.
|
TELNET |
Telnet remote login service:.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getPort() |
Gets the value.
|
static Port |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Port[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Port FTP
public static final Port SSH
public static final Port TELNET
public static final Port SMTP
public static final Port DNS
public static final Port HTTP
public static final Port POP3
public static final Port NNTP
public static final Port NTP
public static final Port IMAP
public static final Port SNMP
public static final Port IRC
public static final Port HTTPS
public static final Port REFCODES
public static final Port HTTP_ALTERNATE
public static Port[] values()
for (Port c : Port.values()) System.out.println(c);
public static Port 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 int getPort()
getPort
in interface org.refcodes.mixin.PortAccessor
Copyright © 2018. All rights reserved.