public class UDPSyslogSenderImpl extends RFC5424Protocol implements AuditTransmissionProtocol
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.
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, JDK_TLS_CLIENT_PROTOCOLS
Constructor and Description |
---|
UDPSyslogSenderImpl() |
UDPSyslogSenderImpl(String sendingHost,
String sendingProcess) |
Modifier and Type | Method and Description |
---|---|
String |
getTransportName() |
void |
send(AuditContext auditContext,
String... auditMessages)
Transmits the message
|
void |
shutdown()
May be imüplemented to clean up instances on shut down
|
getTransportPayload
public String getTransportName()
getTransportName
in interface AuditTransmissionProtocol
public void send(AuditContext auditContext, String... auditMessages) throws Exception
AuditTransmissionProtocol
send
in interface AuditTransmissionProtocol
auditContext
- audit context that e.g. contains the destinationauditMessages
- audit message stringsException
- thrown if sending the messages has failedpublic void shutdown()
AuditTransmissionProtocol
shutdown
in interface AuditTransmissionProtocol
Copyright © 2018 Open eHealth Foundation. All rights reserved.