org.openhealthexchange.openpixpdq.ihe.audit
Class RSyslogMessenger

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.audit.RSyslogMessenger
All Implemented Interfaces:
IMessageTransmitter

public class RSyslogMessenger
extends java.lang.Object
implements IMessageTransmitter

This is the secure logging message implementation. It required the beepcore java library, but implements its own rsyslog layer. Beep is the transport mechanism (RFCs 3080 and 3081), and rsyslog is the message mechanism (RFC 3195).

There are concessions for broken log servers. HIPAAT can't accept messages over 1030, and needs the xml escaped out. The Quovadx server need the xml in a cdata.

Version:
1.0 - Nov 23, 2005
Author:
Josh Flachsbart

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openhealthexchange.openpixpdq.ihe.audit.IMessageTransmitter
IMessageTransmitter.Severity
 
Field Summary
(package private)  int facility
           
(package private)  IMessageTransmitter.Severity severity
           
 
Constructor Summary
RSyslogMessenger(AuditTrailDescription description)
          Loads up a connection to the specified logging server.
 
Method Summary
 AuditTrailDescription getAuditTrailDescription()
          Get the description of this connection.
static void main(java.lang.String[] argv)
          For testing only.
 void sendMessage(java.lang.String message)
          Send a message using this transmitter using the default facility and level.
 void sendMessage(java.lang.String message, IMessageTransmitter.Severity severity)
          Send a message using this transmitter using the given level.
 void setDefaultSeverity(IMessageTransmitter.Severity severity)
          Set the default level for the transmitter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

facility

int facility

severity

IMessageTransmitter.Severity severity
Constructor Detail

RSyslogMessenger

public RSyslogMessenger(AuditTrailDescription description)
Loads up a connection to the specified logging server. This really really should use the standard configuration file. Honestly a bunch of other stuff should be here as well, like local host name, and all the garbage that needs to go into the ATNA messages.

Method Detail

sendMessage

public void sendMessage(java.lang.String message)
Description copied from interface: IMessageTransmitter
Send a message using this transmitter using the default facility and level.

Specified by:
sendMessage in interface IMessageTransmitter

sendMessage

public void sendMessage(java.lang.String message,
                        IMessageTransmitter.Severity severity)
Description copied from interface: IMessageTransmitter
Send a message using this transmitter using the given level.

Specified by:
sendMessage in interface IMessageTransmitter

setDefaultSeverity

public void setDefaultSeverity(IMessageTransmitter.Severity severity)
Description copied from interface: IMessageTransmitter
Set the default level for the transmitter.

Specified by:
setDefaultSeverity in interface IMessageTransmitter

getAuditTrailDescription

public AuditTrailDescription getAuditTrailDescription()
Description copied from interface: IMessageTransmitter
Get the description of this connection.

Specified by:
getAuditTrailDescription in interface IMessageTransmitter

main

public static void main(java.lang.String[] argv)
For testing only.