|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KeyFilter
KeyFilter extends Filter by adding support for a filter key, which the filter implementation can use to obtain a parameter, attribute or other entity from the current request.
| Method Summary | |
|---|---|
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 interface javax.servlet.Filter |
|---|
destroy, doFilter, init |
| Method Detail |
|---|
String getKey()
void setKey(String key)
key - the filter key.boolean isLinkedKey()
void setLinkedKey(boolean flag)
flag - the linked key flag.
String getKeyValue(ServletRequest request,
ServletResponse response,
FilterChain chain)
request - the request.response - the response.chain - the filter chain.
String[] getKeyValues(ServletRequest request,
ServletResponse response,
FilterChain chain)
request - the request.response - the response.chain - the filter chain.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||