public class Interface
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
port |
byte |
protocol |
static byte |
SP_HDL_HTTP |
static byte |
SP_HDL_TCP |
static byte |
SP_HDL_UDP |
static byte |
ST_ADMIN |
static byte |
ST_ADMIN_AND_QUERY |
static byte |
ST_OUT_OF_SERVICE |
static byte |
ST_QUERY |
byte |
type |
Constructor and Description |
---|
Interface() |
Interface(byte type,
byte protocol,
int port) |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleRequest(AbstractRequest req)
Return true if this interface will respond to request
|
Interface |
cloneInterface() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static java.lang.String |
protocolName(byte protocol) |
java.lang.String |
toString() |
static java.lang.String |
typeName(byte type) |
public static final byte ST_OUT_OF_SERVICE
public static final byte ST_ADMIN
public static final byte ST_QUERY
public static final byte ST_ADMIN_AND_QUERY
public static final byte SP_HDL_UDP
public static final byte SP_HDL_TCP
public static final byte SP_HDL_HTTP
public byte type
public int port
public byte protocol
public Interface(byte type, byte protocol, int port)
public Interface()
public Interface cloneInterface()
public boolean canHandleRequest(AbstractRequest req)
public java.lang.String toString()
toString
in class java.lang.Object
public static final java.lang.String typeName(byte type)
public static final java.lang.String protocolName(byte protocol)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object