public class Rule extends Object
| Modifier and Type | Field and Description |
|---|---|
static Rule |
DEFAULT |
static char |
EXCEPTION_TOKEN |
static String |
WILDCARD |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getLabelCount() |
String |
getPattern() |
int |
hashCode() |
boolean |
isExceptionRule()
Returns if this rule applies as an exception
|
String |
match(String domain)
Returns the match for a given domain.
|
void |
setExceptionRule(boolean exceptionRule)
Set true for exception rules.
|
String |
toString() |
public static final Rule DEFAULT
public static final char EXCEPTION_TOKEN
public static final String WILDCARD
public Rule(String pattern)
public int getLabelCount()
public String getPattern()
public void setExceptionRule(boolean exceptionRule)
public boolean isExceptionRule()
Copyright © 2014. All Rights Reserved.