net.handle.hdllib
Class Interface

java.lang.Object
  extended by net.handle.hdllib.Interface

public class Interface
extends java.lang.Object


Field Summary
 int port
           
 byte protocol
           
static byte SP_HDL_HTTP
           
static byte SP_HDL_HTTPS
           
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 Summary
Interface()
           
Interface(byte type, byte protocol, int port)
           
 
Method Summary
 boolean canHandleRequest(AbstractRequest req)
          Return true if this interface will respond to request
static java.lang.String canProcessMsg(AbstractRequest req, boolean processQueries, boolean processAdminRequests)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ST_OUT_OF_SERVICE

public static final byte ST_OUT_OF_SERVICE
See Also:
Constant Field Values

ST_ADMIN

public static final byte ST_ADMIN
See Also:
Constant Field Values

ST_QUERY

public static final byte ST_QUERY
See Also:
Constant Field Values

ST_ADMIN_AND_QUERY

public static final byte ST_ADMIN_AND_QUERY
See Also:
Constant Field Values

SP_HDL_UDP

public static final byte SP_HDL_UDP
See Also:
Constant Field Values

SP_HDL_TCP

public static final byte SP_HDL_TCP
See Also:
Constant Field Values

SP_HDL_HTTP

public static final byte SP_HDL_HTTP
See Also:
Constant Field Values

SP_HDL_HTTPS

public static final byte SP_HDL_HTTPS
See Also:
Constant Field Values

type

public byte type

port

public int port

protocol

public byte protocol
Constructor Detail

Interface

public Interface(byte type,
                 byte protocol,
                 int port)

Interface

public Interface()
Method Detail

cloneInterface

public Interface cloneInterface()

canHandleRequest

public boolean canHandleRequest(AbstractRequest req)
Return true if this interface will respond to request


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

typeName

public static final java.lang.String typeName(byte type)

protocolName

public static final java.lang.String protocolName(byte protocol)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

canProcessMsg

public static java.lang.String canProcessMsg(AbstractRequest req,
                                             boolean processQueries,
                                             boolean processAdminRequests)