|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.auth.Filter
public abstract class Filter
A raw servlet filter adapter implementation.
| Field Summary | |
|---|---|
protected FilterConfig |
filterConfig
A reference to the Servlet container's Filter configuration. |
protected static Logger |
logger
The logger that is used to log errors or other messages. |
static String |
USER
The HTTP request attribute that will be set with the User object. |
| Constructor Summary | |
|---|---|
Filter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Called by the web container to indicate to a filter that it is being taken out of service. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Filter action. |
void |
init(FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
protected void |
setFilterConfig(FilterConfig filterConfig)
Set filterConfig. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger logger
public static final String USER
User object.
protected FilterConfig filterConfig
| Constructor Detail |
|---|
public Filter()
| Method Detail |
|---|
public void init(FilterConfig filterConfig)
throws ServletException
init in interface FilterfilterConfig - - A reference to the configuration object
used by the servlet container to pass information to the filter.
ServletException - - If an exception is encountered while
fetching the initialisation parameters from the specified
filterConfig object reference.public void destroy()
filterConfig
reference to null.
destroy in interface Filter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
doFilter in interface FilterIOException
ServletExceptionprotected void setFilterConfig(FilterConfig filterConfig)
filterConfig.
filterConfig - The value to set.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||