public class ProxyFilter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTAINS
Indicates the type of the filter.
|
static java.lang.String |
ENDS_WITH |
static org.apache.log4j.Logger |
log
Used for logging.
|
static java.lang.String |
REGULAR_EXPRESSION |
static java.lang.String |
STARTS_WITH |
| Constructor and Description |
|---|
ProxyFilter()
Constructs a blank one.
|
ProxyFilter(int proxyFilterID,
java.lang.String filterText,
boolean isCaseSensitive,
java.lang.String filterType)
Constructs a new one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the proxy filter from the database.
|
java.lang.String |
getFilterText()
Gets the text for the filter.
|
java.lang.String |
getFilterType()
Indicates the type of the filter.
|
boolean |
getIsCaseSensitive()
Indicates whether or not the filter is case sensitive.
|
int |
getProxyFilterID()
Gets the database ID of the proxy filter.
|
void |
save()
Saves the proxy filter to the database.
|
void |
setFilterText(java.lang.String filterText)
Sets the text for the filter.
|
void |
setFilterType(java.lang.String filterType)
Determines the type of the filter.
|
void |
setIsCaseSensitive(boolean isCaseSensitive)
Determines whether or not the filter is case sensitive.
|
void |
setProxyFilterID(int proxyFilterID)
Sets the database ID of the proxy filter.
|
boolean |
shouldBeFiltered(java.lang.String url)
Indicates whether or not the given URL should be filtered.
|
public static org.apache.log4j.Logger log
public static final java.lang.String CONTAINS
public static final java.lang.String STARTS_WITH
public static final java.lang.String ENDS_WITH
public static final java.lang.String REGULAR_EXPRESSION
public ProxyFilter()
public ProxyFilter(int proxyFilterID,
java.lang.String filterText,
boolean isCaseSensitive,
java.lang.String filterType)
public int getProxyFilterID()
public void setProxyFilterID(int proxyFilterID)
proxyFilterID - The ID.public java.lang.String getFilterText()
public void setFilterText(java.lang.String filterText)
filterText - The filter text.public boolean getIsCaseSensitive()
public void setIsCaseSensitive(boolean isCaseSensitive)
isCaseSensitive - A boolean.public java.lang.String getFilterType()
public void setFilterType(java.lang.String filterType)
filterType - The type, as indicated by the constants.public boolean shouldBeFiltered(java.lang.String url)
url - The URL to check.public void save()
public void delete()