|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectutils.gate.cow.LocalHostFilter
class LocalHostFilter
Simple filter to bar all requests not from localhost. Adapted from this roseindia.net example (thanks folks!).
Property Summary | |
---|---|
static Pattern |
LOCAL_IP
Regular expression for IPs we consider local. |
private FilterConfig |
filterConfig
Config. |
private static Logger |
log
|
Constructor Summary | |
LocalHostFilter()
Construction. |
Method Summary | |
---|---|
void
|
destroy()
Destruction. |
void
|
doFilter(ServletRequest request, ServletResponse response, FilterChain filterchain)
Do the work. |
void
|
init(FilterConfig config)
Initialisation. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
public static final Pattern LOCAL_IP
private FilterConfig filterConfig
private static final Logger log
Constructor Detail |
---|
public LocalHostFilter()
Method Detail |
---|
public void destroy()
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterchain)
public void init(FilterConfig config)
Groovy Documentation