public abstract class XmlConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Class<? extends SofortLibResponse>,XmlResponseParser<? extends SofortLibResponse>> |
parserMapping |
protected java.util.Map<java.lang.Class<? extends SofortLibRequest>,XmlRequestRenderer> |
rendererMapping |
protected java.util.Map<java.lang.Class<? extends SofortLibRequest>,XmlRootEntry> |
rootEntryMapping |
| Constructor and Description |
|---|
XmlConfig()
The default constructor initializes maps and calls all sub initialization
methods.
|
| Modifier and Type | Method and Description |
|---|---|
XmlRootEntry |
getConfigEntry(java.lang.Class<? extends SofortLibRequest> requestClass)
Returns the XML root entry defined for given
SofortLibRequest
class. |
XmlRequestRenderer |
getRequestRenderer(java.lang.Class<? extends SofortLibRequest> requestClass)
Returns the XML request render defined for given
SofortLibRequest
class. |
XmlResponseParser<? extends SofortLibResponse> |
getResponseParser(java.lang.Class<? extends SofortLibResponse> responseClass)
Returns the XML response parser defined for given
SofortLibResponse class. |
protected abstract void |
initParserMapping()
Define the parser mappings for SofortLib responses.
|
protected abstract void |
initRendererMapping()
Define the renderer mappings for SofortLib requests.
|
protected abstract void |
initRootEntryMapping()
Define the root entry mappings for SofortLib requests.
|
protected final java.util.Map<java.lang.Class<? extends SofortLibRequest>,XmlRootEntry> rootEntryMapping
protected final java.util.Map<java.lang.Class<? extends SofortLibRequest>,XmlRequestRenderer> rendererMapping
protected final java.util.Map<java.lang.Class<? extends SofortLibResponse>,XmlResponseParser<? extends SofortLibResponse>> parserMapping
public XmlConfig()
protected abstract void initRootEntryMapping()
protected abstract void initRendererMapping()
protected abstract void initParserMapping()
public XmlRootEntry getConfigEntry(java.lang.Class<? extends SofortLibRequest> requestClass)
SofortLibRequest
class.requestClass - SofortLibRequest classpublic XmlRequestRenderer getRequestRenderer(java.lang.Class<? extends SofortLibRequest> requestClass)
SofortLibRequest
class.requestClass - request classpublic XmlResponseParser<? extends SofortLibResponse> getResponseParser(java.lang.Class<? extends SofortLibResponse> responseClass)
SofortLibResponse class.responseClass - response class