Package ca.uhn.hl7v2.protocol.impl
Class ProcessorContextImpl
java.lang.Object
ca.uhn.hl7v2.protocol.impl.ProcessorContextImpl
- All Implemented Interfaces:
ProcessorContext
Default implementation of
ProcessorContext.- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
-
Constructor Summary
ConstructorsConstructorDescriptionProcessorContextImpl(ApplicationRouter theRouter, TransportLayer theTransport, SafeStorage theStorage) Creates a new instance that uses the given resources.ProcessorContextImpl(ApplicationRouter theRouter, TransportLayer theLocallyDrivenTransport, TransportLayer theRemotelyDrivenTransport, SafeStorage theStorage) Creates a new instance that uses the given resources. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidator(AcceptValidator theValidator) Adds a new validator to the list of those returned bygetValidators().Returns the list of fields that are to be included as metadata whenever aMessageis converted to aTransportable.
-
Constructor Details
-
ProcessorContextImpl
public ProcessorContextImpl(ApplicationRouter theRouter, TransportLayer theTransport, SafeStorage theStorage) Creates a new instance that uses the given resources.- Parameters:
theRouter-theTransport- aTransportLayerused for both locally-initiated and remotely-initiated message exchangestheStorage-
-
ProcessorContextImpl
public ProcessorContextImpl(ApplicationRouter theRouter, TransportLayer theLocallyDrivenTransport, TransportLayer theRemotelyDrivenTransport, SafeStorage theStorage) Creates a new instance that uses the given resources.- Parameters:
theRouter-theLocallyDrivenTransport- aTransportLayerused for locally-initiated and message exchangestheRemotelyDrivenTransport- aTransportLayerused for remotely-initiated and message exchangestheStorage-
-
-
Method Details
-
getRouter
- Specified by:
getRouterin interfaceProcessorContext- Returns:
- the router that directs unsolicited inbound messages to
the appropriate
Application - See Also:
-
getRemotelyDrivenTransportLayer
- Specified by:
getRemotelyDrivenTransportLayerin interfaceProcessorContext- Returns:
- the object responsible for transport of remotely initiated message exchanges (normally with a remote server)
- See Also:
-
getLocallyDrivenTransportLayer
- Specified by:
getLocallyDrivenTransportLayerin interfaceProcessorContext- Returns:
- the object responsible for transport of locally initiated message exchanges (normally with a remote server)
- See Also:
-
getValidators
- Specified by:
getValidatorsin interfaceProcessorContext- Returns:
- the validators that determine whether a message can be accepted for routing to the appropriate application
- See Also:
-
addValidator
Adds a new validator to the list of those returned bygetValidators().- Specified by:
addValidatorin interfaceProcessorContext- Parameters:
theValidator- the validator to add
-
getSafeStorage
- Specified by:
getSafeStoragein interfaceProcessorContext- Returns:
- a store for messages while they are being routed to the appropriate application
- See Also:
-
getMetadataFields
Description copied from interface:ProcessorContextReturns the list of fields that are to be included as metadata whenever aMessageis converted to aTransportable. Each field is a StringTerserpath.- Specified by:
getMetadataFieldsin interfaceProcessorContext- See Also:
-