Class CamelAuditMessageQueue
java.lang.Object
org.openehealth.ipf.platform.camel.ihe.atna.util.CamelAuditMessageQueue
- All Implemented Interfaces:
AuditMessageQueue
An audit message sender that sends audit messages to a configured Camel
endpoint. When configured in a Spring application context, it is attempted to
auto-wire the required Camel context.
- Author:
- Martin Krasser
-
Field Summary
FieldsFields inherited from interface org.openehealth.ipf.commons.audit.queue.AuditMessageQueue
X_IPF_ATNA_APPLICATION, X_IPF_ATNA_HOSTNAME, X_IPF_ATNA_PROCESSID, X_IPF_ATNA_TIMESTAMP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
audit
(AuditContext auditContext, AuditMessage... auditMessages) void
destroy()
void
init()
void
setCamelContext
(CamelContext camelContext) Sets the Camel context that contains the endpoint to send audit messages to.void
setEndpointUri
(String endpointUri) The endpoint URI to send audit messages to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.audit.queue.AuditMessageQueue
flush, shutdown
-
Field Details
-
HEADER_NAMESPACE
- See Also:
-
-
Constructor Details
-
CamelAuditMessageQueue
public CamelAuditMessageQueue()
-
-
Method Details
-
setCamelContext
Sets the Camel context that contains the endpoint to send audit messages to. This method needs only be used for setting the Camel context if auto-wiring is not possible (e.g. in certain test environments).- Parameters:
camelContext
- Camel context
-
setEndpointUri
The endpoint URI to send audit messages to.- Parameters:
endpointUri
- Endpoint URI- Throws:
URISyntaxException
UnknownHostException
-
init
public void init() -
destroy
public void destroy() -
audit
- Specified by:
audit
in interfaceAuditMessageQueue
- Parameters:
auditContext
- IPF audit contextauditMessages
- one or more audit message instances
-