|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.pool.RecyclableSupport
org.norther.tammi.core.pool.PoolableSupport
org.norther.tammi.spray.engine.tool.GlobalTool
org.norther.tammi.spray.engine.tool.ContextTool
public abstract class ContextTool
An abstract request context tool extending the global tool.
| Constructor Summary | |
|---|---|
ContextTool()
Contructs a new tool. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the object by setting its disposed flag. |
protected Filter |
getFilter(Class clazz)
Gets the first specific filter from the filter chain. |
protected HttpFilterChain |
getFilterChain()
Gets the current filter chain if available. |
protected String |
getFilterKey(Class clazz)
Gets the key of the first specific key filter from the filter chain. |
protected Principal |
getPrincipal()
Gets the current principal if available. |
protected ServletRequest |
getRequest()
Gets the current request if available. |
protected ServletResponse |
getResponse()
Gets the current response if available. |
protected boolean |
isFilterChanged()
Checks whether the current filter has changed since the previous check. |
| Methods inherited from class org.norther.tammi.spray.engine.tool.GlobalTool |
|---|
clone, getContext, getContextToolFilter, getMBeanServer, getName, isBound, nop, toString, valueBound, valueUnbound |
| Methods inherited from class org.norther.tammi.core.pool.PoolableSupport |
|---|
disposed, recycled |
| Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport |
|---|
isDisposed, recycle |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.pool.Recyclable |
|---|
isDisposed, recycle |
| Constructor Detail |
|---|
public ContextTool()
| Method Detail |
|---|
public void dispose()
RecyclableSupport
dispose in interface Recyclabledispose in class GlobalToolprotected ServletRequest getRequest()
protected ServletResponse getResponse()
protected HttpFilterChain getFilterChain()
protected Principal getPrincipal()
protected Filter getFilter(Class clazz)
clazz - the class or interface of the filter.
protected String getFilterKey(Class clazz)
clazz - the class or interface of the key filter.
protected boolean isFilterChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||