|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.atna.agent.AtnaAgent
public class AtnaAgent
AtnaAgent is the primary class for ATNA Transport and ATNA Audit. The class and its underlying classes are intended to be thread safe, and
support the concept of InheritableThreadLocal behaviour. Which means it is possible to have distinct AtnaAgent configuration and
behaviour per thread if needed. This behaviour is controlled via the ConfigurableInheritableThreadLocal.enableThreading(boolean)
method.
Use AtnaAgentFactory to get a reference to an instance.
For example on use of Audit look at getAudit() javadoc
SecurityDomain objects
and adding them to the ConfigurationManager. The communication classes used by AtnaAgent will retrieve the security domain
objects needed from the ConfigurationManager.
Examples of use:
| Constructor Summary | |
|---|---|
AtnaAgent()
Deprecated. Use AtnaAgentFactory to obtain an AtnaAgent instance. |
|
| Method Summary | |
|---|---|
AuditMessage |
eventPending(java.lang.String eventType)
Given "query", "import" , or "export" returns a AuditMessage. |
void |
eventTriggered(AuditMessage msg)
Sends the AuditMessage to the host server |
static java.lang.String |
exampleMessage()
BSD example audit message From /syslog/gov/nist/registry/syslog/bsd/BSDClient.java http://iheos.cvs.sourceforge.net/iheos/syslog/gov/nist/registry/syslog/bsd/BSDClient.java?view=markup |
AuditService |
getAudit()
To use this do something like : AtnaAgent agent = new AtnaAgent(); AuditMessage auditMessage = agent.getAudit().eventPending("query"); auditMessage.setEventOutcomeIndicator(eventOutcomeIndicator) auditMessage.setUserIDActiveParticipantConsumer(userIDActiveParticipantConsumer) auditMessage.setUserIDActiveParticipantRegistry(userIDActiveParticipantRegistry) auditMessage.setAuditSourceId(auditSourceId) auditMessage.setParticipantObjectId(participantObjectId) auditMessage.setParticipantObjectQuery(participantObjectQuery) auditMessage.setEventDateTime(datetime); Or you can do this: auditMessage = new QueryMessage(new TimeStamp().toString(), 0,"Bill", "Registry", "localhost", "the patient","select eo.id FROM..."); agent.getAudit().eventTriggered(auditMessage); |
java.net.URI |
getAuditRepository()
|
static java.net.URI |
getDefaultAuditRepository()
|
java.io.InputStream |
getInputStream(java.net.URI uri)
Connects to the given uri, using TLS if appropriate, and returns the input stream |
java.net.Socket |
getSocket(java.net.URI uri,
boolean useTLS)
Creates a returns a socket to the given URI |
boolean |
isDoAudit()
|
javax.xml.soap.SOAPMessage |
send(javax.xml.soap.SOAPMessage message,
java.net.URI uri)
Send the given SOAP message to the URI. |
void |
setAuditRepository(java.net.URI hosturi)
sets the uri for auditservice |
static void |
setDefaultAuditRepository(java.net.URI hosturi)
sets the uri for auditservice |
void |
setDoAudit(boolean doAudit)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtnaAgent()
| Method Detail |
|---|
public static java.lang.String exampleMessage()
public java.io.InputStream getInputStream(java.net.URI uri)
throws NoSecurityDomainException,
java.net.MalformedURLException,
java.io.IOException,
java.security.NoSuchAlgorithmException
uri -
java.security.NoSuchAlgorithmException
NoSecurityDomainException
java.net.MalformedURLException
java.io.IOException
public javax.xml.soap.SOAPMessage send(javax.xml.soap.SOAPMessage message,
java.net.URI uri)
throws java.lang.Exception
message - uri -
java.lang.Exception
public java.net.Socket getSocket(java.net.URI uri,
boolean useTLS)
throws java.security.KeyManagementException,
NoSecurityDomainException,
java.security.NoSuchAlgorithmException,
java.net.UnknownHostException,
java.io.IOException
uri - useTLS - if true a secure TLS connection will be estalished, false an open connection will be setup
java.io.IOException
java.net.UnknownHostException
java.security.NoSuchAlgorithmException
NoSecurityDomainException
java.security.KeyManagementException
java.lang.Exceptionpublic AuditService getAudit()
auditMessage - public void eventTriggered(AuditMessage msg)
msg - public AuditMessage eventPending(java.lang.String eventType)
eventType -
public void setAuditRepository(java.net.URI hosturi)
hosturi - public java.net.URI getAuditRepository()
public static void setDefaultAuditRepository(java.net.URI hosturi)
hosturi - public static java.net.URI getDefaultAuditRepository()
public boolean isDoAudit()
public void setDoAudit(boolean doAudit)
doAudit - the doAudit to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||