|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uhn.hl7v2.protocol.impl.ProcessorContextImpl
public class ProcessorContextImpl
Default implementation of ProcessorContext.
| Constructor Summary | |
|---|---|
ProcessorContextImpl(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 | |
|---|---|
void |
addValidator(AcceptValidator theValidator)
Adds a new validator to the list of those returned by getValidators(). |
TransportLayer |
getLocallyDrivenTransportLayer()
|
List<String> |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessorContextImpl(ApplicationRouter theRouter,
TransportLayer theTransport,
SafeStorage theStorage)
theRouter - theTransport - a TransportLayer used for both locally-initiated
and remotely-initiated message exchangestheStorage -
public ProcessorContextImpl(ApplicationRouter theRouter,
TransportLayer theLocallyDrivenTransport,
TransportLayer theRemotelyDrivenTransport,
SafeStorage theStorage)
theRouter - theLocallyDrivenTransport - a TransportLayer used for locally-initiated
and message exchangestheRemotelyDrivenTransport - a TransportLayer used for remotely-initiated
and message exchangestheStorage - | Method Detail |
|---|
public ApplicationRouter getRouter()
getRouter in interface ProcessorContextApplicationProcessorContext.getRouter()public TransportLayer getRemotelyDrivenTransportLayer()
getRemotelyDrivenTransportLayer in interface ProcessorContextProcessorContext.getRemotelyDrivenTransportLayer()public TransportLayer getLocallyDrivenTransportLayer()
getLocallyDrivenTransportLayer in interface ProcessorContextProcessorContext.getLocallyDrivenTransportLayer()public AcceptValidator[] getValidators()
getValidators in interface ProcessorContextProcessorContext.getValidators()public void addValidator(AcceptValidator theValidator)
getValidators().
addValidator in interface ProcessorContexttheValidator - the validator to addpublic SafeStorage getSafeStorage()
getSafeStorage in interface ProcessorContextProcessorContext.getSafeStorage()public List<String> getMetadataFields()
ProcessorContextMessage
is converted to a Transportable. Each field is a String Terser
path.
getMetadataFields in interface ProcessorContextProcessorContext.getMetadataFields()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||