public interface ImmutableListenerInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROTOCOL_STR_TYPE_HTTP
The constant for the HTTP protocol.
|
static java.lang.String |
PROTOCOL_STR_TYPE_HTTPS
The constant for the HTTPS protocol.
|
static java.lang.String |
PROTOCOL_STR_TYPE_RAW_TCP
The constant for a custom protocol based on TCP.
|
static java.lang.String |
PROTOCOL_STR_TYPE_RAW_UDP
The constant for a custom protocol based on UDP.
|
static java.lang.String |
PROTOCOL_STR_TYPE_RAW_UNIX
The constant for the HTTP protocol.
|
static java.lang.String |
PROTOCOL_STR_TYPE_SOCKS
The constant for the HTTP protocol.
|
static java.lang.String |
PROTOCOL_STR_TYPE_UNKNOWN
The constant for the 'unknown' protocol.
|
static int |
PROTOCOL_TYPE_FTP |
static int |
PROTOCOL_TYPE_HTTP |
static int |
PROTOCOL_TYPE_HTTPS |
static int |
PROTOCOL_TYPE_RAW_TCP |
static int |
PROTOCOL_TYPE_RAW_UDP |
static int |
PROTOCOL_TYPE_RAW_UNIX |
static int |
PROTOCOL_TYPE_SOCKS |
static int |
PROTOCOL_TYPE_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost()
Get the host (hostname or IP) of this interface as a String.
|
int |
getPort()
Get the port of this interface.
|
int |
getProtocol()
Gets the protocol of this ListenerInterface.
|
boolean |
isValid()
Get the validity of this interface.
|
static final java.lang.String PROTOCOL_STR_TYPE_UNKNOWN
static final int PROTOCOL_TYPE_UNKNOWN
static final java.lang.String PROTOCOL_STR_TYPE_HTTP
static final int PROTOCOL_TYPE_HTTP
static final java.lang.String PROTOCOL_STR_TYPE_HTTPS
static final int PROTOCOL_TYPE_HTTPS
static final java.lang.String PROTOCOL_STR_TYPE_RAW_UNIX
static final int PROTOCOL_TYPE_RAW_UNIX
static final java.lang.String PROTOCOL_STR_TYPE_SOCKS
static final int PROTOCOL_TYPE_SOCKS
static final java.lang.String PROTOCOL_STR_TYPE_RAW_TCP
static final int PROTOCOL_TYPE_RAW_TCP
static final java.lang.String PROTOCOL_STR_TYPE_RAW_UDP
static final int PROTOCOL_TYPE_RAW_UDP
static final int PROTOCOL_TYPE_FTP
int getProtocol()
java.lang.String getHost()
int getPort()
boolean isValid()
Copyright © 2023. All rights reserved.