|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.ServletRequestWrapper
org.norther.tammi.spray.filter.chain.ServletRequestWrapper
public class ServletRequestWrapper
A wrapper implementation of the javax.servlet.ServletRequest
interface providing a recyclable alternative to the
javax.servlet.ServletRequestWrapper class. By default, it
passes all method calls to the wrapped implementation of the interface.
| Constructor Summary | |
|---|---|
ServletRequestWrapper()
Constructs a new wrapper with a request. |
|
ServletRequestWrapper(ServletRequest req)
Constructs a new wrapper with a request. |
|
| 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(ServletRequest req)
Recycles a wrapper with a request. |
void |
recycled(MBeanReference instance)
A callback specifying the pool, from which this instance was recycled. |
protected void |
setExtension(String key,
Extension impl)
Sets the specified extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletRequestWrapper()
req - the wrapped request.public ServletRequestWrapper(ServletRequest req)
req - the wrapped request.| Method Detail |
|---|
public void recycle(ServletRequest req)
req - the wrapped request.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 void setExtension(String key,
Extension impl)
key - the extension key.impl - the extension implementation.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 | |||||||||