|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.jwebkit.HeaderFilter
public class HeaderFilter
Filter that sets response headers.
| Constructor Summary | |
|---|---|
HeaderFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy this filter. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Add all of the configuration specified headers to the response and then process the rest of the chain. |
void |
init(javax.servlet.FilterConfig config)
Load all of the headers from the config. |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeaderFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
<init-param>
<param-name>SomeHeader</param-name>
<param-value>SomeValue</param-value>
</init-param>
-or-
<init-param>
<param-name>SomeHeader:n</param-name>
<param-value>SomeValue</param-value>
</init-param>
Where n is some arbitrary value that provides uniqueness since
the servlet API doesn't allow for duplicate headers.
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.Filterjava.io.IOException
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||