|
||||||||||
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.root.db.DefaultRepositoryClient org.norther.tammi.spray.db.DefaultRepositoryFilter
public class DefaultRepositoryFilter
A default implementation of RepositoryFilter.
Field Summary | |
---|---|
static String |
LOB_KEY
The default key. |
Fields inherited from class org.norther.tammi.root.db.DefaultRepositoryClient |
---|
AUTHENTICATED_SIGNATURE, DEFAULT_PERSISTER, KEY_SIGNATURE |
Fields inherited from class org.norther.tammi.core.base.Adaptee |
---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
Constructor Summary | |
---|---|
DefaultRepositoryFilter()
The default constructor. |
|
DefaultRepositoryFilter(RepositoryFilter filter)
Constructs a new filter adapter. |
Method Summary | |
---|---|
void |
destroy()
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
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. |
void |
init(FilterConfig config)
|
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.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 |
Field Detail |
---|
public static final String LOB_KEY
Constructor Detail |
---|
public DefaultRepositoryFilter()
public DefaultRepositoryFilter(RepositoryFilter filter)
filter
- the adaptee.Method Detail |
---|
public void init(FilterConfig config) throws ServletException
init
in interface Filter
ServletException
public void destroy()
destroy
in interface Filter
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.
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException
doFilter
in interface Filter
ServletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |