|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.netcomm.rules.Rule
public final class Rule
Field Summary | |
---|---|
static int |
ACCEPT
Accept the connection |
static java.lang.String |
DOT
Unicode dot. |
static int |
REFUSE
Refuse the connection. |
static int |
REJECT
Reject the connection. |
Constructor Summary | |
---|---|
Rule(java.lang.String regexp,
int action,
java.lang.Object arg)
|
Method Summary | |
---|---|
boolean |
contains(java.lang.String protocol)
Checks if the Protocol protocol is present in this rule. |
int |
getAction()
Gets the associated action to the hosts matching this rule. |
java.lang.Object |
getArgument()
Returns the Argument. |
Protocollnformation |
getProtocolInformation()
Gets the protocol information of this rule, or creates a new one containning the refuse reason |
boolean |
matches(java.lang.String host)
Checks if the host host matches this rule |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ACCEPT
public static final int REJECT
public static final int REFUSE
public static final java.lang.String DOT
Constructor Detail |
---|
public Rule(java.lang.String regexp, int action, java.lang.Object arg)
Method Detail |
---|
public int getAction()
public boolean matches(java.lang.String host)
host
matches this rule
host
- host to check
public java.lang.String toString()
toString
in class java.lang.Object
public boolean contains(java.lang.String protocol)
protocol
is present in this rule.
protocol
-
public Protocollnformation getProtocolInformation()
public java.lang.Object getArgument()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |