public class AS2ClientResponse extends Object
| Constructor and Description |
|---|
AS2ClientResponse()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAsString() |
Throwable |
getException() |
Duration |
getExecutionDuration() |
IMessageMDN |
getMDN() |
String |
getMDNDisposition() |
String |
getMDNMessageID() |
String |
getMDNText() |
X509Certificate |
getMDNVerificationCertificate() |
String |
getOriginalMessageID() |
boolean |
hasException() |
boolean |
hasExecutionDuration() |
boolean |
hasMDN() |
void |
setException(Throwable aThrowable)
Set an exception that occurred.
|
void |
setExecutionDuration(Duration aExecutionDuration)
Set the execution duration of the client request.
|
void |
setMDN(IMessageMDN aMDN)
Set the retrieved MDN.
|
void |
setMDNVerificationCertificate(X509Certificate aMDNVerificationCertificate)
Set the X509 certificate that was used to verify the MDN.
|
void |
setOriginalMessageID(String sOriginalMessageID)
Set the message ID of the message that was sent out.
|
String |
toString() |
public void setOriginalMessageID(@Nonnull String sOriginalMessageID)
sOriginalMessageID - The original AS2 message ID. May not be null.IBaseMessage.getMessageID()@Nullable public String getOriginalMessageID()
null if not set (but never null when
using in conjunction with AS2Client).public void setException(@Nonnull Throwable aThrowable)
aThrowable - The raised exception. May not be null.public boolean hasException()
true if an exception is present, false
otherwise.@Nullable public Throwable getException()
null if none is present.
This usually means that an MDN is present.hasException(),
getMDN()public void setMDN(@Nonnull IMessageMDN aMDN)
aMDN - The MDN retrieved. May not be null.public boolean hasMDN()
true if an MDN is present, false
otherwise.@Nullable public IMessageMDN getMDN()
null if none is present.
Usually this means that an exception is present.hasMDN(),
getException()@Nullable public String getMDNMessageID()
null if no
MDN is present.hasMDN()@Nullable public String getMDNText()
null if no MDN is
present.hasMDN()@Nullable public String getMDNDisposition()
null if no
MDN is present.hasMDN()@Nullable public X509Certificate getMDNVerificationCertificate()
null if the MDN was not signed.public void setMDNVerificationCertificate(@Nullable X509Certificate aMDNVerificationCertificate)
aMDNVerificationCertificate - The certificate to be used. May be null.public void setExecutionDuration(@Nonnull Duration aExecutionDuration)
aExecutionDuration - The duration to be set. May not be null.public boolean hasExecutionDuration()
true if an execution duration is present,
false otherwise.@Nullable public Duration getExecutionDuration()
null if not present. When
using AS2Client the execution time is always set.@Nonnull public String getAsString()
Copyright © 2013–2022 Philip Helger. All rights reserved.