|
||||||||||
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()
|
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()
|
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 ProcessorContext
Application
ProcessorContext.getRouter()
public TransportLayer getRemotelyDrivenTransportLayer()
getRemotelyDrivenTransportLayer
in interface ProcessorContext
ProcessorContext.getRemotelyDrivenTransportLayer()
public TransportLayer getLocallyDrivenTransportLayer()
getLocallyDrivenTransportLayer
in interface ProcessorContext
ProcessorContext.getLocallyDrivenTransportLayer()
public AcceptValidator[] getValidators()
getValidators
in interface ProcessorContext
ProcessorContext.getValidators()
public void addValidator(AcceptValidator theValidator)
getValidators()
.
addValidator
in interface ProcessorContext
theValidator
- the validator to addpublic SafeStorage getSafeStorage()
getSafeStorage
in interface ProcessorContext
ProcessorContext.getSafeStorage()
public java.util.List getMetadataFields()
ProcessorContext
Message
is converted to a Transportable
. Each field is a String Terser
path.
getMetadataFields
in interface ProcessorContext
ProcessorContext.getMetadataFields()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |