Package ca.uhn.hl7v2.app
Class ServerConfiguration
java.lang.Object
ca.uhn.hl7v2.app.ServerConfiguration
Contains configuration which will be applied to any servers which are created using the given
HAPI Context.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetApplicationExceptionPolicy(ServerConfiguration.ApplicationExceptionPolicy applicationExceptionPolicy) Sets the server behaviour when aReceivingApplicationthrows an exception while processing a message.
-
Constructor Details
-
ServerConfiguration
public ServerConfiguration()
-
-
Method Details
-
getApplicationExceptionPolicy
-
setApplicationExceptionPolicy
public void setApplicationExceptionPolicy(ServerConfiguration.ApplicationExceptionPolicy applicationExceptionPolicy) Sets the server behaviour when aReceivingApplicationthrows an exception while processing a message.The
defaultbehaviour 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.- See Also:
-