|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.p13n.servlets.NullFilter
public class NullFilter
This filter does nothing. The only reason you might need such a thing is to override a filter that has been deployed in a Library Module. Due to the way descriptor merging works for web.xml, you can not "turn off" a filter which is deployed in a library's web.xml. There is not anything available in your web app's web.xml to turn such a filter off. Therefore, the only thing you can do is override the filter with one that does nothing (that is why this filter exists). <p/> For example, maybe a library module contains a filter such as:
<filter> <filter-name>SomeFilter</filter-name> <filter-class>org.foo.TheFilter</filter-class> </filter>
You can override this in your application's web.xml using the same filter-name, like this:
<filter> <filter-name>SomeFilter</filter-name> <filter-class>com.bea.p13n.servlets.NullFilter</filter-class> </filter>
Constructor Summary | |
---|---|
NullFilter() |
Method Summary | |
---|---|
void |
destroy() does nothing |
void |
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) Simply calls chain.doFilter(request,response). |
void |
init(javax.servlet.FilterConfig config) does nothing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullFilter()
Method Detail |
---|
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.