@Configuration
public class CapsuleConfig
extends java.lang.Object
Constructor and Description |
---|
CapsuleConfig() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ee.ria.dhx.types.CapsuleAdressee> |
getAdresseesFromContainer(java.lang.Object containerObject)
Method to find adresssees from container.
|
java.lang.String |
getCapsuleXsdFile21()
by default jar://Dvk_kapsel_vers_2_1_eng_est.xsd
|
ee.ria.dhx.util.CapsuleVersionEnum |
getCurrentCapsuleVersion()
Return the currentCapsuleVersion.
|
java.lang.String |
getCurrentCapsuleVersionStr()
by default V21.
|
java.lang.String |
getCurrentXsd() |
ee.ria.dhx.types.CapsuleAdressee |
getSenderFromContainer(java.lang.Object containerObject)
Method to find sender from container.
|
java.lang.String |
getXsdForVersion(ee.ria.dhx.util.CapsuleVersionEnum version)
Method finds config parameter which contains link to XSD for given version.
|
void |
init()
Automatically initialize properties.
|
void |
setCapsuleXsdFile21(java.lang.String capsuleXsdFile21)
be default jar://Dvk_kapsel_vers_2_1_eng_est.xsd
|
void |
setCurrentCapsuleVersion(ee.ria.dhx.util.CapsuleVersionEnum currentCapsuleVersion)
Sets the currentCapsuleVersion.
|
void |
setCurrentCapsuleVersionStr(java.lang.String currentCapsuleVersionStr)
by default V21.
|
@PostConstruct public void init()
public java.lang.String getCurrentXsd() throws ee.ria.dhx.exception.DhxException
ee.ria.dhx.exception.DhxException
public java.lang.String getXsdForVersion(ee.ria.dhx.util.CapsuleVersionEnum version) throws ee.ria.dhx.exception.DhxException
version
- - version for which to find XSDee.ria.dhx.exception.DhxException
- - thrown then no XSD file is defined for given versionpublic java.util.List<ee.ria.dhx.types.CapsuleAdressee> getAdresseesFromContainer(java.lang.Object containerObject) throws ee.ria.dhx.exception.DhxException
containerObject
- - container(capsule) object from which to find adresseesee.ria.dhx.exception.DhxException
- - thrown adressees parsing is not defined for given object (capsule
version)public ee.ria.dhx.types.CapsuleAdressee getSenderFromContainer(java.lang.Object containerObject) throws ee.ria.dhx.exception.DhxException
containerObject
- - container(capsule) object from which to find adresseesee.ria.dhx.exception.DhxException
- - thrown adressees parsing is not defined for given object (capsule
version)public java.lang.String getCapsuleXsdFile21()
public void setCapsuleXsdFile21(java.lang.String capsuleXsdFile21)
capsuleXsdFile21
- the location of the capsule version 2.1 XSDpublic java.lang.String getCurrentCapsuleVersionStr()
public void setCurrentCapsuleVersionStr(java.lang.String currentCapsuleVersionStr)
currentCapsuleVersionStr
- current version of the capsule to send and receivepublic ee.ria.dhx.util.CapsuleVersionEnum getCurrentCapsuleVersion()
public void setCurrentCapsuleVersion(ee.ria.dhx.util.CapsuleVersionEnum currentCapsuleVersion)
currentCapsuleVersion
- enumeration of the current version of the capsule to send and
receive