DataFactory¶
-
public class
DataFactory
¶ A
DataFactory
imports data from the XML property tree to create different data object used for sending web service request. Creation Date: 19/3/2007Author: Twinsen Tsang
Fields¶
XML_SEPARATOR¶
-
public static final char
XML_SEPARATOR
¶ The constants representing the XML Separator *
instance¶
-
public static final DataFactory
instance
¶ Singleton.
Methods¶
createAS2AdminDataFromXML¶
-
public AS2AdminData
createAS2AdminDataFromXML
(PropertyTree t)¶ Create an instance of
AS2AdminData
from the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
AS2AdminData
with data imported from the property tree.
createAS2ConfigDataFromXML¶
-
public AS2ConfigData
createAS2ConfigDataFromXML
(PropertyTree t)¶ Create an instance of
AS2ConfigData
From the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
AS2ConfigData
with data imported from the property tree.
createAS2MessageDataFromXML¶
-
public AS2MessageData
createAS2MessageDataFromXML
(PropertyTree t)¶ Create an instance of
AS2MessageData
from the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
AS2MessageData
with data imported from the property tree.
createAS2PartnershipFromXML¶
-
public AS2PartnershipData
createAS2PartnershipFromXML
(PropertyTree t)¶ Create an instance of
AS2PartnershipData
From the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
AS2PartnershipData
with data imported from the property tree.
createAS2PermitRedownloadDataFromXML¶
-
public PermitRedownloadData
createAS2PermitRedownloadDataFromXML
(PropertyTree t)¶
createAS2StatusQueryDataFromXML¶
-
public AS2StatusQueryData
createAS2StatusQueryDataFromXML
(PropertyTree t)¶ Create an instance of
AS2StatusQueryData
From the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
AS2StatusQueryData
with data imported from the property tree.
createAs2MessageHistoryQueryDataFromXML¶
-
public AS2MessageHistoryRequestData
createAs2MessageHistoryQueryDataFromXML
(PropertyTree t)¶ Create an instance of
AS2MessageHistoryRequestData
from the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
AS2MessageHistoryRequestData
with data imported from the property tree.
createEBMSAdminDataFromXML¶
-
public EBMSAdminData
createEBMSAdminDataFromXML
(PropertyTree t)¶ Create an instance of
EBMSAdminData
from the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
EBMSAdminData
with data imported from the property tree.
createEBMSConfigDataFromXML¶
-
public EBMSConfigData
createEBMSConfigDataFromXML
(PropertyTree t)¶ Create an instance of
EBMSConfigData
From the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
EBMSConfigData
with data imported from the property tree.
createEBMSMessageDataFromXML¶
-
public EBMSMessageData
createEBMSMessageDataFromXML
(PropertyTree t)¶ Create an instance of
EBMSMessageData
from the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
EBMSMessageData
with data imported from the property tree.
createEBMSPartnershipFromXML¶
-
public EBMSPartnershipData
createEBMSPartnershipFromXML
(PropertyTree t)¶ Create an instance of
EBMSPartnershipData
From the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
EBMSPartnershipData
with data imported from the property tree.
createEBMSPermitRedownloadDataFromXML¶
-
public PermitRedownloadData
createEBMSPermitRedownloadDataFromXML
(PropertyTree t)¶
createEBMSStatusQueryDataFromXML¶
-
public EBMSStatusQueryData
createEBMSStatusQueryDataFromXML
(PropertyTree t)¶ Create an instance of
EBMSStatusQueryData
From the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
EBMSStatusQueryData
with data imported from the property tree.
createEbmsMessageHistoryQueryDataFromXML¶
-
public EBMSMessageHistoryRequestData
createEbmsMessageHistoryQueryDataFromXML
(PropertyTree t)¶ Create an instance of
EBMSMessageHistoryRequestData
from the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
EBMSMessageHistoryRequestData
with data imported from the property tree.
createMessageRequestStatusDataFromXML¶
-
public static MessageStatusRequestData
createMessageRequestStatusDataFromXML
(PropertyTree t)¶ Create an instance of
MessageStatusRequestData
From the XML property tree.Parameters: - t – The property tree to import the data.
Throws: - UtilitiesException – When the data factory is unable to import the data from the property tree.
Returns: A new instance of
MessageStatusRequestData
with data imported from the property tree.
createMessageStatusDataFromXML¶
-
public static MessageStatusRequestData
createMessageStatusDataFromXML
(String filename)¶ Create an instance of
MessageStatusRequestData
From a file written in XML format.Parameters: - filename – The file to load the message status request data.
Throws: - ComponentException – When unable to load the file or invalid file format.
Returns: A new instance of
MessageStatusRequestData
with data imported from the file with namefilename
createSFRMStatusQueryDataFromXML¶
-
public SFRMStatusQueryData
createSFRMStatusQueryDataFromXML
(PropertyTree t)¶ Create an instance of
SFRMStatusQueryData
From the XML property tree.Parameters: - t – The property tree to import the data.
Returns: A new instance of
SFRMStatusQueryData
with data imported from the property tree.
getInstance¶
-
public static DataFactory
getInstance
()¶ Singleton instance.
storeAS2MessageDataToXML¶
-
public void
storeAS2MessageDataToXML
(AS2MessageData d, URL path)¶ Store an instance of
AS2Message to XML.
Parameters: - d – The
AS2MessageData to store.
- path – The URL specified the location for storing the data.
Throws: - IOException – when storing the data fails.
- d – The
storeAS2PartnershipFromXML¶
-
public void
storeAS2PartnershipFromXML
(AS2PartnershipData d, URL path)¶ Store the instance of
AS2PartnershipData
to the XML specified atpath.
Parameters: - d – The
AS2PartnershipData
you want to store. - path – The URL specified the location for storing the data.
Throws: - IOException – when storing the data fails.
- d – The
storeEBMSMessageDataToXML¶
-
public void
storeEBMSMessageDataToXML
(EBMSMessageData d, URL path)¶ Store an instance of
EBMSMessage to XML.
Parameters: - d – The
AS2MessageData to store.
- path – The URL specified the location for storing the data.
Throws: - IOException – when storing the data fails.
- d – The
storeEBMSPartnershipFromXML¶
-
public void
storeEBMSPartnershipFromXML
(EBMSPartnershipData d, URL path)¶ Store the instance of
EBMSPartnershipData
to the XML specified atpath.
Parameters: - d – The
EBMSPartnershipData
you want to store. - path – The URL specified the location for storing the data.
Throws: - IOException – when storing the data fails.
- d – The