anon.infoservice
Interface ImmutableListenerInterface

All Known Subinterfaces:
ImmutableProxyInterface
All Known Implementing Classes:
ListenerInterface, ProxyInterface

public interface ImmutableListenerInterface

Objects of this type only contain immutable methods.

Author:
Rolf Wendolsky

Field Summary
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 HTTP 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_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_HTTP
           
static int PROTOCOL_TYPE_HTTPS
           
static int PROTOCOL_TYPE_RAW_TCP
           
static int PROTOCOL_TYPE_RAW_UNIX
           
static int PROTOCOL_TYPE_SOCKS
           
static int PROTOCOL_TYPE_UNKNOWN
           
 
Method Summary
 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.
 

Field Detail

PROTOCOL_STR_TYPE_UNKNOWN

static final java.lang.String PROTOCOL_STR_TYPE_UNKNOWN
The constant for the 'unknown' protocol.

See Also:
Constant Field Values

PROTOCOL_TYPE_UNKNOWN

static final int PROTOCOL_TYPE_UNKNOWN
See Also:
Constant Field Values

PROTOCOL_STR_TYPE_HTTP

static final java.lang.String PROTOCOL_STR_TYPE_HTTP
The constant for the HTTP protocol.

See Also:
Constant Field Values

PROTOCOL_TYPE_HTTP

static final int PROTOCOL_TYPE_HTTP
See Also:
Constant Field Values

PROTOCOL_STR_TYPE_HTTPS

static final java.lang.String PROTOCOL_STR_TYPE_HTTPS
The constant for the HTTP protocol.

See Also:
Constant Field Values

PROTOCOL_TYPE_HTTPS

static final int PROTOCOL_TYPE_HTTPS
See Also:
Constant Field Values

PROTOCOL_STR_TYPE_RAW_UNIX

static final java.lang.String PROTOCOL_STR_TYPE_RAW_UNIX
The constant for the HTTP protocol.

See Also:
Constant Field Values

PROTOCOL_TYPE_RAW_UNIX

static final int PROTOCOL_TYPE_RAW_UNIX
See Also:
Constant Field Values

PROTOCOL_STR_TYPE_SOCKS

static final java.lang.String PROTOCOL_STR_TYPE_SOCKS
The constant for the HTTP protocol.

See Also:
Constant Field Values

PROTOCOL_TYPE_SOCKS

static final int PROTOCOL_TYPE_SOCKS
See Also:
Constant Field Values

PROTOCOL_STR_TYPE_RAW_TCP

static final java.lang.String PROTOCOL_STR_TYPE_RAW_TCP
The constant for a custom protocol based on TCP.

See Also:
Constant Field Values

PROTOCOL_TYPE_RAW_TCP

static final int PROTOCOL_TYPE_RAW_TCP
See Also:
Constant Field Values
Method Detail

getProtocol

int getProtocol()
Gets the protocol of this ListenerInterface.

Returns:
the protocol of this ListenerInterface

getHost

java.lang.String getHost()
Get the host (hostname or IP) of this interface as a String.

Returns:
The host of this interface.

getPort

int getPort()
Get the port of this interface.

Returns:
The port of this interface.

isValid

boolean isValid()
Get the validity of this interface.

Returns:
Whether this interface is valid or not.