public static enum ServerConfiguration.ApplicationExceptionPolicy extends Enum<ServerConfiguration.ApplicationExceptionPolicy>
Enum Constant and Description |
---|
DEFAULT
The
DEFAULT behaviour is to invoke the
exception handler if one has been
registered
with the server, and then return the ACK/NAK message it provides. |
DO_NOT_RESPOND
If set to
DO_NOT_RESPOND , the server will simply not provide any response to the
client in the event that an application exception is thrown. |
Modifier and Type | Method and Description |
---|---|
static ServerConfiguration.ApplicationExceptionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerConfiguration.ApplicationExceptionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerConfiguration.ApplicationExceptionPolicy DEFAULT
DEFAULT
behaviour is to invoke the
exception handler
if one has been
registered
with 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 an
AE
acknowlegement code.public static final ServerConfiguration.ApplicationExceptionPolicy DO_NOT_RESPOND
DO_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!
public static ServerConfiguration.ApplicationExceptionPolicy[] values()
for (ServerConfiguration.ApplicationExceptionPolicy c : ServerConfiguration.ApplicationExceptionPolicy.values()) System.out.println(c);
public static ServerConfiguration.ApplicationExceptionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2001–2017 University Health Network. All rights reserved.