ca.uhn.hl7v2.protocol
Interface ProcessorContext

All Known Implementing Classes:
ProcessorContextImpl

public interface ProcessorContext

The operational context of a Processor. This defines certain resources that are not part of the Processor, but are needed in order to implement it, and may vary between deployments.

Version:
$Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:38 $ by $Author: jamesagnew $
Author:
Bryan Tripp

Method Summary
 void addValidator(AcceptValidator theValidator)
          Adds a new validator to the list of those returned by getValidators().
 TransportLayer getLocallyDrivenTransportLayer()
           
 java.util.List getMetadataFields()
          Returns the list of fields that are to be included as metadata whenever a Message is converted to a Transportable.
 TransportLayer getRemotelyDrivenTransportLayer()
           
 ApplicationRouter getRouter()
           
 SafeStorage getSafeStorage()
           
 AcceptValidator[] getValidators()
           
 

Method Detail

getRouter

ApplicationRouter getRouter()
Returns:
the router that directs unsolicited inbound messages to the appropriate Application

getRemotelyDrivenTransportLayer

TransportLayer getRemotelyDrivenTransportLayer()
Returns:
the object responsible for transport of remotely initiated message exchanges (normally with a remote server)

getLocallyDrivenTransportLayer

TransportLayer getLocallyDrivenTransportLayer()
Returns:
the object responsible for transport of locally initiated message exchanges (normally with a remote server)

getValidators

AcceptValidator[] getValidators()
Returns:
the validators that determine whether a message can be accepted for routing to the appropriate application

addValidator

void addValidator(AcceptValidator theValidator)
Adds a new validator to the list of those returned by getValidators().

Parameters:
theValidator - the validator to add

getSafeStorage

SafeStorage getSafeStorage()
Returns:
a store for messages while they are being routed to the appropriate application

getMetadataFields

java.util.List getMetadataFields()
Returns the list of fields that are to be included as metadata whenever a Message is converted to a Transportable. Each field is a String Terser path.

Parameters:
theMetadataFields - list of Terser paths of metadata fields


Copyright © 2001-2011 University Health Network. All Rights Reserved.