public class XMLPartnershipFactory extends AbstractPartnershipFactoryWithPartners implements IRefreshablePartnershipFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_DISABLE_BACKUP |
static String |
ATTR_FILENAME |
m_aRWLock| Constructor and Description |
|---|
XMLPartnershipFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename() |
void |
initDynamicComponent(IAS2Session session,
com.helger.commons.collection.attr.IStringMap parameters)
After creating a Component object, this method should be called to set any
parameters used by the component.
|
protected void |
load(InputStream aIS) |
Partner |
loadPartner(com.helger.xml.microdom.IMicroElement ePartner) |
protected void |
loadPartnerIDs(com.helger.xml.microdom.IMicroElement ePartnership,
IPartnerMap aAllPartners,
Partnership aPartnership,
boolean bIsSender) |
Partnership |
loadPartnership(com.helger.xml.microdom.IMicroElement ePartnership,
IPartnerMap aAllPartners) |
protected void |
loadPartnershipAttributes(com.helger.xml.microdom.IMicroElement aNode,
Partnership aPartnership) |
void |
refreshPartnershipFactory()
Refresh the partnership factory.
|
void |
setFilename(String filename) |
void |
storePartnership()
Store the current status of the partnerships to a file.
|
addPartner, getAllPartnerNames, getAllPartners, getPartnerMap, getPartnerOfName, removePartner, setPartnersaddPartnership, getAllPartnershipNames, getAllPartnerships, getPartnership, getPartnershipByName, getPartnershipMap, markAsChanged, removePartnership, setPartnerships, toString, updatePartnership, updatePartnershipattrs, equals, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPartnership, getAllPartnershipNames, getAllPartnerships, getPartnership, getPartnershipByName, removePartnership, updatePartnership, updatePartnershipattrs, getName, getSessionpublic static final String ATTR_FILENAME
public static final String ATTR_DISABLE_BACKUP
public void setFilename(String filename)
public String getFilename() throws InvalidParameterException
InvalidParameterExceptionpublic void initDynamicComponent(@Nonnull IAS2Session session, @Nullable com.helger.commons.collection.attr.IStringMap parameters) throws OpenAS2Exception
IDynamicComponentinitDynamicComponent in interface IDynamicComponentinitDynamicComponent in class AbstractDynamicComponentsession - the component uses this object to access other componentsparameters - configuration values for the component. All parameters will be
stored as attributes of this component. All attributes existing
before this method is called will be removed!OpenAS2Exception - If an error occurs while initializing the componentInvalidParameterException - If a required parameter is null in the parameters MapIAS2Session@OverridingMethodsMustInvokeSuper public void refreshPartnershipFactory() throws OpenAS2Exception
IRefreshablePartnershipFactoryrefreshPartnershipFactory in interface IRefreshablePartnershipFactoryOpenAS2Exception - On errorprotected void load(@Nullable @WillClose InputStream aIS) throws OpenAS2Exception
OpenAS2Exceptionprotected void loadPartnershipAttributes(@Nonnull com.helger.xml.microdom.IMicroElement aNode, @Nonnull Partnership aPartnership) throws OpenAS2Exception
OpenAS2Exception@Nonnull public Partner loadPartner(@Nonnull com.helger.xml.microdom.IMicroElement ePartner) throws OpenAS2Exception
OpenAS2Exceptionprotected void loadPartnerIDs(@Nonnull com.helger.xml.microdom.IMicroElement ePartnership, @Nonnull IPartnerMap aAllPartners, @Nonnull Partnership aPartnership, boolean bIsSender) throws OpenAS2Exception
OpenAS2Exception@Nonnull public Partnership loadPartnership(@Nonnull com.helger.xml.microdom.IMicroElement ePartnership, @Nonnull IPartnerMap aAllPartners) throws OpenAS2Exception
OpenAS2Exceptionpublic void storePartnership()
throws OpenAS2Exception
OpenAS2Exception - In case of an errorCopyright © 2013–2019 Philip Helger. All rights reserved.