|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.talika.tarsis.filters.AbstractFilter
public abstract class AbstractFilter
Base implementation of Filter
interface for all web application
filters of Tarsis MV Framework architecture.
Constructor Summary | |
---|---|
AbstractFilter()
|
Method Summary | |
---|---|
void |
destroy()
Called by the web container to indicate to a filter that it is being taken out of service. |
abstract void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
The doFilter method of the Filter is called by the container each
time a request/response pair is passed through the chain due to a client
request for a resource at the end of the chain. |
protected Context |
getContext()
Returns the Tarsis context. |
protected javax.servlet.FilterConfig |
getFilterConfig()
Returns filter configuration. |
protected Logger |
getLogger()
Returns the Tarsis logger. |
void |
init(javax.servlet.FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
filterConfig
- FilterConfig filter configutarion.
javax.servlet.ServletException
- if an exception has occurred that interferes with the
filter's normal operationFilter.init(FilterConfig)
public void destroy()
destroy
in interface javax.servlet.Filter
Filter.destroy()
public abstract void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws java.io.IOException, javax.servlet.ServletException
doFilter
method of the Filter is called by the container each
time a request/response pair is passed through the chain due to a client
request for a resource at the end of the chain.
doFilter
in interface javax.servlet.Filter
servletRequest
- ServletRequest the ServletRequest
object
that contains the client's request.servletResponse
- ServletResponse the ServletResponse
object
that contains the servlet's response.filterChain
- FilterChain invocation chain of filtered request.
java.io.IOException
- if an input or output exception occurs.
javax.servlet.ServletException
- if an exception has occurred that interferes with the
filter's normal operationFilter.doFilter(ServletRequest, ServletResponse, FilterChain)
protected final javax.servlet.FilterConfig getFilterConfig()
protected final Context getContext()
protected final Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |