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 SummaryFields inherited from interface org.openehealth.ipf.commons.audit.protocol.AuditTransmissionProtocolHTTPS_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsend(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) Transmits the messagevoidshutdown()May be implemented to clean up instances on shut downMethods inherited from class org.openehealth.ipf.commons.audit.protocol.RFC5424ProtocolgetTransportPayloadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openehealth.ipf.commons.audit.protocol.AuditTransmissionProtocolsend
- 
Constructor Details- 
UDPSyslogSenderImplpublic UDPSyslogSenderImpl()
- 
UDPSyslogSenderImpl
 
- 
- 
Method Details- 
getTransportName- Specified by:
- getTransportNamein interface- AuditTransmissionProtocol
- Returns:
- name of the AuditTransmissionProtocol
 
- 
sendpublic void send(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) throws Exception Description copied from interface:AuditTransmissionProtocolTransmits the message- Specified by:
- sendin interface- AuditTransmissionProtocol
- Parameters:
- auditContext- audit context that e.g. contains the destination
- auditMetadataProvider- dedicated (message-specific) audit metadata
- auditMessage- audit message strings
- Throws:
- Exception- thrown if sending the messages has failed
 
- 
shutdownpublic void shutdown()Description copied from interface:AuditTransmissionProtocolMay be implemented to clean up instances on shut down- Specified by:
- shutdownin interface- AuditTransmissionProtocol
 
 
-