Class NioTLSSyslogSenderImpl<H,D extends NioTLSSyslogSenderImpl.Destination<H>>
java.lang.Object
org.openehealth.ipf.commons.audit.protocol.RFC5424Protocol
org.openehealth.ipf.commons.audit.protocol.RFC5425Protocol
org.openehealth.ipf.commons.audit.protocol.NioTLSSyslogSenderImpl<H,D>
- Type Parameters:
H
- handle representation of the concrete NIO framework used by subclasses
- All Implemented Interfaces:
AuditTransmissionProtocol
- Direct Known Subclasses:
NettyTLSSyslogSenderImpl
,ReactorNettyTLSSyslogSenderImpl
,VertxTLSSyslogSenderImpl
public abstract class NioTLSSyslogSenderImpl<H,D extends NioTLSSyslogSenderImpl.Destination<H>>
extends RFC5425Protocol
implements AuditTransmissionProtocol
Abstract base class for non-blocking TLS sender implementations.
- Since:
- 3.7
- Author:
- Christian Ohr
-
Nested Class Summary
-
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 TypeMethodDescriptionprotected D
customizeDestination
(D destination) Allows to customize the destination, e.g.protected abstract D
makeDestination
(TlsParameters tlsParameters, String host, int port, boolean logging) void
send
(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) Transmits the messagevoid
setLoggingEnabled
(boolean loggingEnabled) void
shutdown()
May be implemented to clean up instances on shut downMethods inherited from class org.openehealth.ipf.commons.audit.protocol.RFC5425Protocol
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
getTransportName, send
-
Constructor Details
-
NioTLSSyslogSenderImpl
-
-
Method Details
-
setLoggingEnabled
public void setLoggingEnabled(boolean loggingEnabled) -
customizeDestination
Allows to customize the destination, e.g. to set network-specific parameters- Parameters:
destination
- destination used for the connection
-
send
public void send(AuditContext auditContext, AuditMetadataProvider auditMetadataProvider, String auditMessage) 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
-
makeDestination
protected abstract D makeDestination(TlsParameters tlsParameters, String host, int port, boolean logging) -
shutdown
public void shutdown()Description copied from interface:AuditTransmissionProtocol
May be implemented to clean up instances on shut down- Specified by:
shutdown
in interfaceAuditTransmissionProtocol
-