com.opencloud.slee.resources.mm7
Class ExtendedReplaceRequestParameters

java.lang.Object
  extended by com.opencloud.slee.resources.mm7.ExtendedReplaceRequestParameters

public final class ExtendedReplaceRequestParameters
extends java.lang.Object

Container for all optional parameters related to a Replace Request.

Since:
MM7 v.6.8.0

Constructor Summary
ExtendedReplaceRequestParameters()
          Construct a new object with no optional parameters set
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare this object to another ReplaceRequestParameters object.
 boolean getAllowContentAdaptation()
          Get the allow-content-adaptation flag.
 javax.mail.internet.MimeBodyPart getContent()
          Get the optional attached content parameter.
 java.lang.Boolean getDeliveryReporting()
          Get the delivery-reporting-requested flag.
 MM7RelativeOrAbsoluteDate getEarliestDelivery()
          Get the optional earliest-delivery timestamp parameter.
 MM7RelativeOrAbsoluteDate getExpiryDate()
          Get the optional expiry-date timestamp.
 java.lang.Boolean getReadReplyReporting()
          Get the optional read-reply-reporting-requested flag.
 java.lang.String getReplaceID()
          Get the optional replaceID parameter.
 java.lang.String getServiceCode()
          Get the optional service code parameter.
 java.util.Date getTimestamp()
          Get the optional timestamp parameter.
 java.lang.String getVASID()
          Get the optional vasID parameter.
 java.lang.String getVASPID()
          Get the optional vaspID parameter.
 int hashCode()
           
 void setContent(javax.mail.internet.MimeBodyPart content, boolean allowContentAdaptation)
          Set the attached content parameter.
 void setDeliveryReporting(java.lang.Boolean deliveryReporting)
          Set the delivery-reporting-requested flag.
 void setEarliestDelivery(MM7RelativeOrAbsoluteDate earliest)
          Set the optional earliest-delivery timestamp parameter.
 void setExpiryDate(MM7RelativeOrAbsoluteDate expiryDate)
          Set the optional expiry-date timestamp
 void setReadReplyReporting(java.lang.Boolean onOff)
          Set the optional read-reply-reporting-requested flag.
 void setReplaceID(java.lang.String replaceID)
          Set the optional replaceID.
 void setServiceCode(java.lang.String serviceCode)
          Set the optional service code parameter.
 void setTimestamp(java.util.Date timestamp)
          Set the optional timestamp parameter.
 void setVASID(java.lang.String vasID)
          Set the optional vasID parameter.
 void setVASPID(java.lang.String vaspID)
          Set the optional vaspID parameter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedReplaceRequestParameters

public ExtendedReplaceRequestParameters()
Construct a new object with no optional parameters set

Method Detail

setVASPID

public void setVASPID(java.lang.String vaspID)
Set the optional vaspID parameter.

Parameters:
vaspID - the new vaspID, or null to clear the vaspID

getVASPID

public java.lang.String getVASPID()
Get the optional vaspID parameter.

Returns:
the vaspID, or null if not present

setVASID

public void setVASID(java.lang.String vasID)
Set the optional vasID parameter.

Parameters:
vasID - the new vasID, or null to clear the vasID

getVASID

public java.lang.String getVASID()
Get the optional vasID parameter.

Returns:
the vasID, or null if not present

setServiceCode

public void setServiceCode(java.lang.String serviceCode)
Set the optional service code parameter.

Parameters:
serviceCode - the new service code, or null to clear the service code

getServiceCode

public java.lang.String getServiceCode()
Get the optional service code parameter.

Returns:
the service code, or null if not present

setReplaceID

public void setReplaceID(java.lang.String replaceID)
Set the optional replaceID.

Parameters:
replaceID - the new replaceID, or null to clear the replaceID

getReplaceID

public java.lang.String getReplaceID()
Get the optional replaceID parameter.

Returns:
the replaceID, or null if not present

setTimestamp

public void setTimestamp(java.util.Date timestamp)
Set the optional timestamp parameter.

Parameters:
timestamp - the new timestamp, or null to clear the timestamp

getTimestamp

public java.util.Date getTimestamp()
Get the optional timestamp parameter.

Returns:
the timestamp, or null if not present

setEarliestDelivery

public void setEarliestDelivery(MM7RelativeOrAbsoluteDate earliest)
Set the optional earliest-delivery timestamp parameter.

Parameters:
earliest - the new earliest-delivery timestamp, or null to clear the earliest-delivery timestamp

getEarliestDelivery

public MM7RelativeOrAbsoluteDate getEarliestDelivery()
Get the optional earliest-delivery timestamp parameter.

Returns:
the earliest-delivery timestamp, or null if not present

setExpiryDate

public void setExpiryDate(MM7RelativeOrAbsoluteDate expiryDate)
Set the optional expiry-date timestamp

Parameters:
expiryDate - the new timestamp, or null to clear the timestamp.

getExpiryDate

public MM7RelativeOrAbsoluteDate getExpiryDate()
Get the optional expiry-date timestamp.

Returns:
the timestamp, or null if not set.

setReadReplyReporting

public void setReadReplyReporting(java.lang.Boolean onOff)
Set the optional read-reply-reporting-requested flag.

Parameters:
onOff - the new value of the flag, or null if not present

getReadReplyReporting

public java.lang.Boolean getReadReplyReporting()
Get the optional read-reply-reporting-requested flag.

Returns:
the value of the flag, or null if not present

setDeliveryReporting

public void setDeliveryReporting(java.lang.Boolean deliveryReporting)
Set the delivery-reporting-requested flag.

Parameters:
deliveryReporting - the new flag value, or null if not set

getDeliveryReporting

public java.lang.Boolean getDeliveryReporting()
Get the delivery-reporting-requested flag.

Returns:
the flag's value, or null if not set

setContent

public void setContent(javax.mail.internet.MimeBodyPart content,
                       boolean allowContentAdaptation)
Set the attached content parameter.

Parameters:
content - the new content, or null to clear the content
allowContentAdaptation - if true, allow content adaptation

getContent

public javax.mail.internet.MimeBodyPart getContent()
Get the optional attached content parameter.

Returns:
the attached content, or null if not present

getAllowContentAdaptation

public boolean getAllowContentAdaptation()
Get the allow-content-adaptation flag.

Returns:
the value of the flag

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Compare this object to another ReplaceRequestParameters object. Content is compared based on content IDs only.

Overrides:
equals in class java.lang.Object
Returns:
true if the two objects are equal
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object