public class BaseConnector<T extends PushConnector<T>> extends java.lang.Object implements PushConnector<T>
| Modifier and Type | Field and Description |
|---|---|
protected Prepared |
params |
protected static java.lang.String |
PREFIX |
protected java.util.Set<java.lang.String> |
required |
| Constructor and Description |
|---|
BaseConnector(OutputType<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
exists(java.lang.String paramName)
Check if a param has already been set with the given name
|
static PushConnector |
fromMap(OutputType<PushConnector> ptype,
java.util.Map<java.lang.String,java.lang.Object> params) |
Prepared |
parameters()
Every push connector has a set of output parameters used to configure the destination.
|
protected T |
putAll(java.util.Map<java.lang.String,java.lang.Object> params) |
protected T |
setParam(java.lang.String paramName,
java.lang.String value) |
protected void |
setup(T ref,
java.lang.String... requiredParams)
To make it convenient for all sub-types to just return the results of setParam
the sub type should call setup passing it's this reference
|
OutputType<T> |
type() |
protected static final java.lang.String PREFIX
protected final java.util.Set<java.lang.String> required
protected final Prepared params
public BaseConnector(OutputType<T> type)
public static PushConnector fromMap(OutputType<PushConnector> ptype, java.util.Map<java.lang.String,java.lang.Object> params)
protected void setup(T ref, java.lang.String... requiredParams)
ref - "this" in any sub typeprotected T setParam(java.lang.String paramName, java.lang.String value)
protected boolean exists(java.lang.String paramName)
paramName - the name to check forpublic Prepared parameters()
PushConnectorparameters in interface PushConnector<T extends PushConnector<T>>public OutputType<T> type()
type in interface PushConnector<T extends PushConnector<T>>protected T putAll(java.util.Map<java.lang.String,java.lang.Object> params)
Copyright © 2017. All Rights Reserved.