public class ProcessorContextImpl extends Object implements ProcessorContext
ProcessorContext
.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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
- 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 List<String> getMetadataFields()
ProcessorContext
Message
is converted to a Transportable
. Each field is a String Terser
path.getMetadataFields
in interface ProcessorContext
ProcessorContext.getMetadataFields()
Copyright © 2001–2017 University Health Network. All rights reserved.