|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.filter.PushConnectionFilter
public class PushConnectionFilter
A filter to serve a ready-to-use database connection to its actions.
| Field Summary | |
|---|---|
static String |
KEY
The default key name to use when placing the connection in the action input. |
| Constructor Summary | |
|---|---|
PushConnectionFilter(ConnectionHandler connHandler)
Creates a ConnectionFilter with the given ConnectionHandler. |
|
PushConnectionFilter(ConnectionHandler connHandler,
String conn_key)
Creates a ConnectionFilter with the given ConnectionHandler and connection key. |
|
| Method Summary | |
|---|---|
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed. |
String |
filter(InvocationChain chain)
Executes the filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY
| Constructor Detail |
|---|
public PushConnectionFilter(ConnectionHandler connHandler)
connHandler - The connection handler to use for this filter.
public PushConnectionFilter(ConnectionHandler connHandler,
String conn_key)
connHandler - The connection handler to use for this filter.conn_key - The name of the key to use when placing the connection in the action input.| Method Detail |
|---|
public String filter(InvocationChain chain)
throws Exception
Filter
filter in interface Filterchain - The InvocationChain for the action this filter is being applied to.
Exceptionpublic void destroy()
Filter
destroy in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||