|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.ServletResponseWrapper
org.norther.tammi.spray.filter.chain.ServletResponseWrapper
public class ServletResponseWrapper
A wrapper implementation of the javax.servlet.ServletResponse
interface providing a recyclable alternative to the
javax.servlet.ServletResponseWrapper class. By default, it
passes all method calls to the wrapped implementation of the interface.
| Constructor Summary | |
|---|---|
ServletResponseWrapper()
Contstructs a new wrapper. |
|
ServletResponseWrapper(ServletResponse res)
Constructs a new wrapper with a response. |
|
| Method Summary | |
|---|---|
void |
completed(FilterChainEvent event)
Notifies the object that a filter chain has completed. |
void |
dispose()
Disposes the object after use. |
void |
disposed()
A call back indicating that this instance is not needed any more and can be disposed. |
void |
filtered(FilterChainEvent event)
Notifies the object that it has been activated within a filter chain. |
protected Extension |
getExtension(String key)
Gets the specified extension. |
protected HttpFilterChain |
getFilterChain()
Gets the filter chain. |
protected ServletRequest |
getFilteredRequest()
Gets the filtered request. |
protected ServletResponse |
getFilteredResponse()
Gets the filtered response. |
boolean |
isDisposed()
Checks whether the recyclable has been disposed. |
void |
recycle()
Recycles the object for a new client. |
void |
recycle(ServletResponse res)
Recycles a wrapper with a response. |
void |
recycled(MBeanReference instance)
A callback specifying the pool, from which this instance was recycled. |
| Methods inherited from class javax.servlet.ServletResponseWrapper |
|---|
flushBuffer, getBufferSize, getCharacterEncoding, getContentType, getLocale, getOutputStream, getResponse, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setContentLength, setContentType, setLocale, setResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletResponseWrapper()
public ServletResponseWrapper(ServletResponse res)
res - the wrapped response.| Method Detail |
|---|
public void recycle(ServletResponse res)
res - the wrapped response.public void recycle()
Recyclable
recycle in interface Recyclablepublic void dispose()
Recyclable
dispose in interface Recyclablepublic boolean isDisposed()
Recyclable
isDisposed in interface Recyclablepublic void recycled(MBeanReference instance)
Poolable
recycled in interface Poolableinstance - the pool MBean reference.public void disposed()
Poolable
disposed in interface Poolablepublic void filtered(FilterChainEvent event)
FilterChainListener
filtered in interface FilterChainListenerevent - the filter chain event.public void completed(FilterChainEvent event)
FilterChainListener
completed in interface FilterChainListenerevent - the filter chain event.protected Extension getExtension(String key)
key - the extension key.
protected HttpFilterChain getFilterChain()
IllegalStateException - if not filtered.protected ServletRequest getFilteredRequest()
IllegalStateException - if not filtered.protected ServletResponse getFilteredResponse()
IllegalStateException - if not filtered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||