Package ca.uhn.hl7v2.app
Enum Class ServerConfiguration.ApplicationExceptionPolicy
java.lang.Object
java.lang.Enum<ServerConfiguration.ApplicationExceptionPolicy>
ca.uhn.hl7v2.app.ServerConfiguration.ApplicationExceptionPolicy
- All Implemented Interfaces:
Serializable,Comparable<ServerConfiguration.ApplicationExceptionPolicy>,Constable
- Enclosing class:
- ServerConfiguration
public static enum ServerConfiguration.ApplicationExceptionPolicy
extends Enum<ServerConfiguration.ApplicationExceptionPolicy>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheDEFAULTbehaviour is to invoke theexception handlerif one has beenregisteredwith the server, and then return the ACK/NAK message it provides.If set toDO_NOT_RESPOND, the server will simply not provide any response to the client in the event that an application exception is thrown. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
TheDEFAULTbehaviour is to invoke theexception handlerif one has beenregisteredwith the server, and then return the ACK/NAK message it provides. If no exception handler has been provided, HAPI will generate a NAK message using the default implementation and anAEacknowlegement code. -
DO_NOT_RESPOND
If set toDO_NOT_RESPOND, the server will simply not provide any response to the client in the event that an application exception is thrown.Note that this is not generally good practice, but it may be neccesary when dealing with some systems that don't behave correctly when they receive a negative acknowledment (NAK) message. Use with caution!
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-