org.neociclo.odetteftp.protocol
Class DefaultDeliveryNotification
java.lang.Object
org.neociclo.odetteftp.protocol.DefaultDeliveryNotification
- All Implemented Interfaces:
- Serializable, DeliveryNotification, OdetteFtpObject
- Direct Known Subclasses:
- DefaultSignedDeliveryNotification
public class DefaultDeliveryNotification
- extends Object
- implements DeliveryNotification
- Version:
- $Rev: 800 $ $Date: 2010-10-19 20:55:25 -0200 (Tue, 19 Oct 2010) $
- Author:
- Rafael Marins
- See Also:
- Serialized Form
DefaultDeliveryNotification
public DefaultDeliveryNotification(DeliveryNotification.EndResponseType type)
getDatasetName
public String getDatasetName()
- Specified by:
getDatasetName
in interface OdetteFtpObject
setDatasetName
public void setDatasetName(String datasetName)
getDateTime
public Date getDateTime()
- Specified by:
getDateTime
in interface OdetteFtpObject
getTicker
public Short getTicker()
- Specified by:
getTicker
in interface OdetteFtpObject
setDateTime
public void setDateTime(Date dateTime)
setTicker
public void setTicker(Short ticker)
getDestination
public String getDestination()
- Specified by:
getDestination
in interface OdetteFtpObject
setDestination
public void setDestination(String destination)
getOriginator
public String getOriginator()
- Specified by:
getOriginator
in interface OdetteFtpObject
setOriginator
public void setOriginator(String originator)
getUserData
public String getUserData()
- Specified by:
getUserData
in interface OdetteFtpObject
setUserData
public void setUserData(String userData)
getType
public DeliveryNotification.EndResponseType getType()
- Specified by:
getType
in interface DeliveryNotification
getCreator
public String getCreator()
- Description copied from interface:
DeliveryNotification
- It is the location that created the NERP.
- Specified by:
getCreator
in interface DeliveryNotification
- Returns:
- the Identification Code
setCreator
public void setCreator(String creator)
getReason
public NegativeResponseReason getReason()
- Description copied from interface:
DeliveryNotification
- This attribute will specify why transmission cannot proceed or why
processing of the file failed.
- Specified by:
getReason
in interface DeliveryNotification
- Returns:
- reason code enum
- See Also:
NegativeResponseReason
setReason
public void setReason(NegativeResponseReason reason)
getReasonText
public String getReasonText()
- Specified by:
getReasonText
in interface DeliveryNotification
setReasonText
public void setReasonText(String reasonText)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
ACCORD