Class UDPSyslogSenderImpl
java.lang.Object
org.openehealth.ipf.commons.audit.protocol.RFC5424Protocol
org.openehealth.ipf.commons.audit.protocol.UDPSyslogSenderImpl
- All Implemented Interfaces:
AuditTransmissionProtocol
Simple UDP sender that opens a new DatagramSocket for every batch of AuditMessages
being sent.
Note that this implementation disobeys the ATNA specification saying, that the Secure Application, Secure Node, or Audit Record Forwarder is unable to send the message to the Audit Record Repository, then the actor shall store the audit record locally and send it when it is able.
- Since:
- 3.5
- Author:
- Christian Ohr
-
Field Summary
Fields inherited from interface org.openehealth.ipf.commons.audit.protocol.AuditTransmissionProtocol
HTTPS_CIPHERSUITES, JAVAX_NET_DEBUG, JAVAX_NET_SSL_KEYSTORE, JAVAX_NET_SSL_KEYSTORE_PASSWORD, JAVAX_NET_SSL_KEYSTORE_TYPE, JAVAX_NET_SSL_TRUSTSTORE, JAVAX_NET_SSL_TRUSTSTORE_PASSWORD, JAVAX_NET_SSL_TRUSTSTORE_TYPE, JAVAX_TLS_CLIENT_CIPHERSUITES, JAVAX_TLS_SERVER_CIPHERSUITES, JDK_TLS_CLIENT_PROTOCOLS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
send
(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) Transmits the messagevoid
shutdown()
May be implemented to clean up instances on shut downMethods inherited from class org.openehealth.ipf.commons.audit.protocol.RFC5424Protocol
getTransportPayload
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.protocol.AuditTransmissionProtocol
send
-
Constructor Details
-
UDPSyslogSenderImpl
public UDPSyslogSenderImpl() -
UDPSyslogSenderImpl
-
-
Method Details
-
getTransportName
- Specified by:
getTransportName
in interfaceAuditTransmissionProtocol
- Returns:
- name of the AuditTransmissionProtocol
-
send
public void send(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) throws Exception Description copied from interface:AuditTransmissionProtocol
Transmits the message- Specified by:
send
in interfaceAuditTransmissionProtocol
- Parameters:
auditContext
- audit context that e.g. contains the destinationauditMetadataProvider
- dedicated (message-specific) audit metadataauditMessage
- audit message strings- Throws:
Exception
- thrown if sending the messages has failed
-
shutdown
public void shutdown()Description copied from interface:AuditTransmissionProtocol
May be implemented to clean up instances on shut down- Specified by:
shutdown
in interfaceAuditTransmissionProtocol
-