|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.terasoluna.fw.web.thin.EvidenceLogFilter
public class EvidenceLogFilter
Performs the output process of evidence log.
Evidence log outputs the log of request parameter information.
<filter>
<filter-name>evidenceLogFilter</filter-name>
<filter-class>
jp.terasoluna.fw.web.thin.EvidenceLogFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>evidenceLogFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Field Summary | |
---|---|
static java.lang.String |
EVIDENCELOG_THRU_KEY
Key of request attribute which indicates that the request has passed through filter. |
private static org.apache.commons.logging.Log |
log
Log class |
Constructor Summary | |
---|---|
EvidenceLogFilter()
|
Method Summary | |
---|---|
void |
destroy()
It is called at the time of filter processing. Processing is not performed in this class. |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
Outputs evidence log. |
private void |
evidenceLog(java.lang.String s)
Outputs evidence log. |
void |
init(javax.servlet.FilterConfig config)
This method is called by the container when the filter changes to Service start state. After creating an instance of the filter, container calls init method only once. In order to request the filter to execute the filter process, init method should finish normally. Container cannot change the Filter to service state when the init method is any of the following. ServletException is thrown or It does not get recovered within the time defined by container. *Processsing is not performed in this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EVIDENCELOG_THRU_KEY
private static org.apache.commons.logging.Log log
Constructor Detail |
---|
public EvidenceLogFilter()
Method Detail |
---|
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
config
- FilterConfig instance.
javax.servlet.ServletException
- Exception which is thrown at the time of abnormal initialization.Filter.init(javax.servlet.FilterConfig)
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
req
- HTTP requestres
- HTTP responsechain
- Filter chain
java.io.IOException
- I/O error
javax.servlet.ServletException
- Servlet exceptionFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
private void evidenceLog(java.lang.String s)
s
- String which is output to log.public void destroy()
destroy
in interface javax.servlet.Filter
Filter.destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |