org.openhealthexchange.openpixpdq.ihe.impl_v2
Class BaseHandler

java.lang.Object
  extended by org.openhealthexchange.openpixpdq.ihe.impl_v2.BaseHandler
Direct Known Subclasses:
PdQueryHandler, PixFeedHandler, PixFeedHandlerV25, PixQueryHandler

 class BaseHandler
extends java.lang.Object

The base class of all handlers. It provides some common methods available to all handlers.

Version:
1.0, Dec 26, 2008
Author:
Wenzhi Li

Field Summary
protected  com.misyshealthcare.connect.net.IConnectionDescription connection
          The connection description of the actor for this handler
 
Constructor Summary
BaseHandler()
          Default constructor
BaseHandler(com.misyshealthcare.connect.net.IConnectionDescription connection)
          Constructor
 
Method Summary
protected static java.lang.String getMessageControlId()
          Generates a new unique message id.
protected  com.misyshealthcare.connect.net.Identifier getServerApplication()
          Gets the application name of this PIX/PDQ server.
protected  com.misyshealthcare.connect.net.Identifier getServerFacility()
          Gets the facility name of this PIX/PDQ server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected com.misyshealthcare.connect.net.IConnectionDescription connection
The connection description of the actor for this handler

Constructor Detail

BaseHandler

BaseHandler()
Default constructor


BaseHandler

BaseHandler(com.misyshealthcare.connect.net.IConnectionDescription connection)
Constructor

Parameters:
connection - the connection description of the actor
Method Detail

getServerApplication

protected com.misyshealthcare.connect.net.Identifier getServerApplication()
                                                                   throws ca.uhn.hl7v2.app.ApplicationException
Gets the application name of this PIX/PDQ server. If the server receives messages from a source application, then the application name is the same as ReceivingApplication, configurable through the XML actor configuration files.

Returns:
the application name of this PIX/PDQ server
Throws:
ca.uhn.hl7v2.app.ApplicationException

getServerFacility

protected com.misyshealthcare.connect.net.Identifier getServerFacility()
                                                                throws ca.uhn.hl7v2.app.ApplicationException
Gets the facility name of this PIX/PDQ server. If the server receives messages from a source application, then the facility name is the same as ReceivingFacility, configurable through the XML actor configuration files.

Returns:
the facility name of this PIX/PDQ server
Throws:
ca.uhn.hl7v2.app.ApplicationException

getMessageControlId

protected static java.lang.String getMessageControlId()
Generates a new unique message id.

Returns:
a message id