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.
|
boolean |
isDisableBackup() |
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 |
setDisableBackup(boolean bDisableBackup) |
void |
setFilename(String filename) |
void |
storePartnership()
Store the current status of the partnerships to a file.
|
addPartner, equals, getAllPartnerNames, getAllPartners, getPartnerMap, getPartnerOfName, hashCode, removePartner, setPartnersaddPartnership, getAllPartnershipNames, getAllPartnerships, getPartnership, getPartnershipByName, getPartnershipMap, markAsChanged, removePartnership, setPartnerships, toString, updatePartnership, updatePartnershipattrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSessionclone, 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
@Nonnull public String getFilename() throws AS2InvalidParameterException
AS2InvalidParameterExceptionpublic void setFilename(String filename)
public boolean isDisableBackup()
public void setDisableBackup(boolean bDisableBackup)
public void initDynamicComponent(@Nonnull IAS2Session session, @Nullable com.helger.commons.collection.attr.IStringMap parameters) throws AS2Exception
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!AS2Exception - If an error occurs while initializing the componentAS2InvalidParameterException - If a required parameter is null in the parameters MapIAS2Session@OverridingMethodsMustInvokeSuper public void refreshPartnershipFactory() throws AS2Exception
IRefreshablePartnershipFactoryrefreshPartnershipFactory in interface IRefreshablePartnershipFactoryAS2Exception - On errorprotected void load(@Nullable @WillClose InputStream aIS) throws AS2Exception
AS2Exceptionprotected void loadPartnershipAttributes(@Nonnull com.helger.xml.microdom.IMicroElement aNode, @Nonnull Partnership aPartnership) throws AS2Exception
AS2Exception@Nonnull public Partner loadPartner(@Nonnull com.helger.xml.microdom.IMicroElement ePartner) throws AS2Exception
AS2Exceptionprotected void loadPartnerIDs(@Nonnull com.helger.xml.microdom.IMicroElement ePartnership, @Nonnull IPartnerMap aAllPartners, @Nonnull Partnership aPartnership, boolean bIsSender) throws AS2Exception
AS2Exception@Nonnull public Partnership loadPartnership(@Nonnull com.helger.xml.microdom.IMicroElement ePartnership, @Nonnull IPartnerMap aAllPartners) throws AS2Exception
AS2Exceptionpublic void storePartnership()
throws AS2Exception
AS2Exception - In case of an errorCopyright © 2013–2022 Philip Helger. All rights reserved.