Package com.helger.phase4.sender
Enum AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult
java.lang.Object
java.lang.Enum<AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult>
com.helger.phase4.sender.AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.state.ISuccessIndicator,Serializable,Comparable<AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult>,java.lang.constant.Constable
- Enclosing class:
- AbstractAS4UserMessageBuilder<IMPLTYPE extends AbstractAS4UserMessageBuilder<IMPLTYPE>>
public static enum AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult
extends Enum<AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult>
implements com.helger.commons.id.IHasID<String>, com.helger.commons.state.ISuccessIndicator
Specific enumeration with the result error codes of the
AbstractAS4UserMessageBuilder.sendMessageAndCheckForReceipt()
method.- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn AS4 Error Message was receivedProgramming error, because not all mandatory fields are filled.An AS4 Signal Message was received, but it was neither a Receipt nor an Error Message but something else.Some answer was received, but it was no valid AS4 Signal MessageEverything worked according to plan.Something failed on the network or HTTP(S) level -
Method Summary
Modifier and TypeMethodDescriptiongetFromIDOrNull(String sID) getID()booleanbooleanReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.helger.commons.state.ISuccessIndicator
and, isFailure, or
-
Enum Constant Details
-
INVALID_PARAMETERS
Programming error, because not all mandatory fields are filled. -
TRANSPORT_ERROR
Something failed on the network or HTTP(S) level -
NO_SIGNAL_MESSAGE_RECEIVED
public static final AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult NO_SIGNAL_MESSAGE_RECEIVEDSome answer was received, but it was no valid AS4 Signal Message -
AS4_ERROR_MESSAGE_RECEIVED
public static final AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult AS4_ERROR_MESSAGE_RECEIVEDAn AS4 Error Message was received -
INVALID_SIGNAL_MESSAGE_RECEIVED
public static final AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult INVALID_SIGNAL_MESSAGE_RECEIVEDAn AS4 Signal Message was received, but it was neither a Receipt nor an Error Message but something else. -
SUCCESS
Everything worked according to plan. The message was successfully delivered.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getID
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>- Returns:
- The ID of the of the error message.
- Since:
- 1.0.0-rc1
-
isSuccess
public boolean isSuccess()- Specified by:
isSuccessin interfacecom.helger.commons.state.ISuccessIndicator
-
isRetryFeasible
public boolean isRetryFeasible()- Returns:
- A recommendation whether a retry might be feasible in case the internal retries were disabled.
- Since:
- 1.0.0-rc1
-
getFromIDOrNull
@Nullable public static AbstractAS4UserMessageBuilder.ESimpleUserMessageSendResult getFromIDOrNull(@Nullable String sID)
-