|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.base.Adaptee org.norther.tammi.core.base.DefaultContainer<V> org.norther.tammi.spray.filter.DefaultContainerFilter<V> org.norther.tammi.spray.filter.DefaultContainerKeyFilter<V>
V
- the registered MBean type.public class DefaultContainerKeyFilter<V>
A default implementation of ContainerKeyFilter.
Field Summary |
---|
Fields inherited from class org.norther.tammi.core.base.Adaptee |
---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
Constructor Summary | |
---|---|
|
DefaultContainerKeyFilter()
Constructs a new filter. |
protected |
DefaultContainerKeyFilter(KeyFilter filter)
Constructs a new filter with a filter adaptee. |
|
DefaultContainerKeyFilter(String className)
Constructs a new filter with a container class. |
protected |
DefaultContainerKeyFilter(String className,
KeyFilter filter)
Constructs a new filter with a container class and fitler adaptee. |
|
DefaultContainerKeyFilter(String className,
String key)
Constructs a new filter with an container class and key. |
Method Summary | |
---|---|
protected KeyFilter |
getFilter()
Gets the key filter adaptee. |
String |
getKey()
Gets the filter key. |
String |
getKeyValue(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the filter key value for the specified request. |
String[] |
getKeyValues(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets filter key values for the specified request. |
boolean |
isLinkedKey()
Checks whether the filter key is part of URL links built within filter chains including this filter. |
void |
setKey(String key)
Sets the filter key. |
void |
setLinkedKey(boolean flag)
Sets the linked key flag. |
Methods inherited from class org.norther.tammi.spray.filter.DefaultContainerFilter |
---|
destroy, doFilter, getFilterConfig, getRequestMap, getSessionMap, init |
Methods inherited from class org.norther.tammi.core.base.DefaultContainer |
---|
clear, containsKey, get, getContainerKey, getContainerKey, getContainerKey, getMBean, getMBeanHandle, getMBeanHandles, getMBeanInterface, getMBeanInterface, getObjectName, getObjectNames, getQueryPattern, registryKeySet, registryKeySet, registryKeySet, registryKeySet, registryMap, registrySize, remove, setMBeanInterface, setQueryPattern, setQueryPattern |
Methods inherited from class org.norther.tammi.core.base.Adaptee |
---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.norther.tammi.core.base.Container |
---|
clear, containsKey, get, getContainerKey, getContainerKey, getContainerKey, getMBean, getMBeanInterface, getMBeanInterface, getObjectName, getObjectNames, getQueryPattern, registryKeySet, registryKeySet, registryKeySet, registryKeySet, registryMap, registrySize, remove, setMBeanInterface, setQueryPattern, setQueryPattern |
Methods inherited from interface javax.servlet.Filter |
---|
destroy, doFilter, init |
Constructor Detail |
---|
public DefaultContainerKeyFilter()
public DefaultContainerKeyFilter(String className)
className
- the container class name.public DefaultContainerKeyFilter(String className, String key)
className
- the container class name (can be null).key
- the filter key.protected DefaultContainerKeyFilter(KeyFilter filter)
filter
- the key filter adaptee.protected DefaultContainerKeyFilter(String className, KeyFilter filter)
className
- the container class name.filter
- the key filter adaptee.Method Detail |
---|
public String getKey()
KeyFilter
getKey
in interface KeyFilter
public void setKey(String key)
KeyFilter
setKey
in interface KeyFilter
key
- the filter key.public boolean isLinkedKey()
KeyFilter
isLinkedKey
in interface KeyFilter
public void setLinkedKey(boolean flag)
KeyFilter
setLinkedKey
in interface KeyFilter
flag
- the linked key flag.public String getKeyValue(ServletRequest request, ServletResponse response, FilterChain chain)
KeyFilter
getKeyValue
in interface KeyFilter
request
- the request.response
- the response.chain
- the filter chain.
public String[] getKeyValues(ServletRequest request, ServletResponse response, FilterChain chain)
KeyFilter
getKeyValues
in interface KeyFilter
request
- the request.response
- the response.chain
- the filter chain.
protected KeyFilter getFilter()
getFilter
in class DefaultContainerFilter<V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |