public abstract class TemplateBasedCommand<T> extends java.lang.Object implements IEasCommand<T>
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
fromTemplate |
protected org.slf4j.Logger |
logger |
protected org.w3c.dom.Document |
tpl |
Modifier | Constructor and Description |
---|---|
protected |
TemplateBasedCommand(NS namespace,
java.lang.String cmd,
org.w3c.dom.Document document) |
protected |
TemplateBasedCommand(NS namespace,
java.lang.String cmd,
java.lang.String templateName) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
customizeTemplate(AccountInfos ai,
OPClient opc) |
protected abstract T |
parseResponse(org.w3c.dom.Element responseRootElem) |
T |
run(AccountInfos ai,
OPClient opc,
com.ning.http.client.AsyncHttpClient hc) |
protected org.w3c.dom.Document tpl
protected java.lang.Boolean fromTemplate
protected org.slf4j.Logger logger
protected TemplateBasedCommand(NS namespace, java.lang.String cmd, java.lang.String templateName)
protected TemplateBasedCommand(NS namespace, java.lang.String cmd, org.w3c.dom.Document document)
public T run(AccountInfos ai, OPClient opc, com.ning.http.client.AsyncHttpClient hc) throws java.lang.Exception
run
in interface IEasCommand<T>
java.lang.Exception
protected abstract void customizeTemplate(AccountInfos ai, OPClient opc)
protected abstract T parseResponse(org.w3c.dom.Element responseRootElem)
Copyright © 2021. All Rights Reserved.