Interface AuditTransmissionProtocol
- All Known Implementing Classes:
AbstractFhirRestTLSAuditRecordSender, Apache5FhirRestTLSAuditRecordSender, MethanolFhirRestTLSAuditRecordSender, NettyTLSSyslogSenderImpl, NioTLSSyslogSenderImpl, ReactorNettyTLSSyslogSenderImpl, RecordingAuditMessageTransmission, TLSSyslogSenderImpl, UDPSyslogSenderImpl
public interface AuditTransmissionProtocol
Implementations of this interface transmit the serialized
AuditMessage
to an AuditRepository using IP protocols like TCP or UDP, usually wrapped into a carrier protocol (such as SYSLOG).- Since:
- 3.5
- Author:
- Christian Ohr
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsend(AuditContext auditContext, String auditMessage) Transmits the messagevoidsend(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) Transmits the messagevoidshutdown()May be implemented to clean up instances on shut down
-
Method Details
-
send
Transmits the message- Parameters:
auditContext- audit context that e.g. contains the destinationauditMessage- audit message- Throws:
Exception- thrown if sending the messages has failed
-
send
void send(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) throws Exception Transmits the message- 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
void shutdown()May be implemented to clean up instances on shut down -
getTransportName
String getTransportName()- Returns:
- name of the AuditTransmissionProtocol
-