public class ConnectionFilter extends InputWrapper implements AfterConsequenceFilter
| Constructor and Description |
|---|
ConnectionFilter(ConnectionHandler connHandler) |
ConnectionFilter(ConnectionHandler connHandler,
String connKey) |
ConnectionFilter(String connKey,
ConnectionHandler connHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConsequence(Action action,
Consequence c,
boolean conseqExecuted,
boolean actionExecuted,
String result) |
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed.
|
String |
filter(InvocationChain chain)
Executes the filter.
|
Object |
getValue(String key)
Gets a parameter value (any object) with the given name.
|
void |
setKey(String key) |
clear, containsKey, containsValue, entries, entrySet, get, getBoolean, getBoolean, getBooleanValue, getBooleanValue, getDate, getDate, getDate, getDouble, getDouble, getDoubleValue, getDoubleValue, getEnum, getEnums, getFloat, getFloat, getFloatValue, getFloatValue, getHeader, getHeaderKeys, getInt, getInt, getInts, getIntValue, getIntValue, getIntValues, getLong, getLong, getLongs, getLongValue, getLongValue, getObject, getObject, getProperty, getRoot, getString, getStrings, getStringValue, getStringValues, has, hasValue, inject, inject, isEmpty, keys, keySet, put, putAll, remove, removeInput, removeValue, setInput, setValue, size, valuespublic static final String KEY
public ConnectionFilter(String connKey, ConnectionHandler connHandler)
public ConnectionFilter(ConnectionHandler connHandler)
public ConnectionFilter(ConnectionHandler connHandler, String connKey)
public void setKey(String key)
public String filter(InvocationChain chain) throws Exception
Filterpublic void afterConsequence(Action action, Consequence c, boolean conseqExecuted, boolean actionExecuted, String result)
afterConsequence in interface AfterConsequenceFilterpublic Object getValue(String key)
InputgetValue in interface InputgetValue in class InputWrapperkey - the name of the parameterpublic void destroy()
FilterCopyright © 2015. All Rights Reserved.