public class Axis2SynapseEnvironment extends Object implements SynapseEnvironment
Constructor and Description |
---|
Axis2SynapseEnvironment(org.apache.axis2.context.ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig) |
Axis2SynapseEnvironment(org.apache.axis2.context.ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig,
ServerContextInformation contextInformation) |
Axis2SynapseEnvironment(SynapseConfiguration synCfg) |
Modifier and Type | Method and Description |
---|---|
MessageContext |
createMessageContext()
This method will be used to create a new MessageContext in the Axis2 environment for
Synapse.
|
org.apache.axiom.util.blob.OverflowBlob |
createOverflowBlob()
Factory method to create the TemporaryData object as per on the parameters specified in the
synapse.properties file, so that the TemporaryData parameters like threshold chunk size
can be customized by using the properties file.
|
org.apache.axis2.context.ConfigurationContext |
getAxis2ConfigurationContext()
Retrieves the
ConfigurationContext associated with this axis2SynapseEnv |
ExecutorService |
getExecutorService()
This will give the access to the synapse thread pool for the
advanced mediation tasks.
|
ServerContextInformation |
getServerContextInformation()
Retrieve the
ServerContextInformation from the environment. |
StatisticsCollector |
getStatisticsCollector()
This method returns the
StatisticsCollector responsible for
collecting stats for this synapse instance. |
SynapseConfiguration |
getSynapseConfiguration()
Retrieves the
SynapseConfiguration from the environment |
SynapseTaskManager |
getTaskManager()
Retrieve the
SynapseTaskManager from the
environment . |
Map<QName,SynapseXpathFunctionContextProvider> |
getXpathFunctionExtensions()
Returns all declared xpath Function Extensions
|
Map<QName,SynapseXpathVariableResolver> |
getXpathVariableExtensions()
Returns all declared xpath Variable Extensions
|
void |
injectAsync(MessageContext synCtx,
SequenceMediator seq)
This method injects a new message into the Synapse engine for the mediation
by the specified sequence.
|
boolean |
injectMessage(MessageContext synCtx)
This method injects a new message into the Synapse engine.
|
boolean |
isInitialized()
Has this environment properly initialized?
|
void |
send(EndpointDefinition endpoint,
MessageContext synCtx)
This will be used for sending the message provided, to the endpoint specified by the
EndpointDefinition using the axis2 environment.
|
void |
setInitialized(boolean state)
Mark this environment as ready for processing
|
void |
setStatisticsCollector(StatisticsCollector collector)
Deprecated.
|
void |
setXpathFunctionExtensions(SynapseXpathFunctionContextProvider functionExt) |
void |
setXpathVariableExtensions(SynapseXpathVariableResolver variableExt) |
public Axis2SynapseEnvironment(SynapseConfiguration synCfg)
public Axis2SynapseEnvironment(org.apache.axis2.context.ConfigurationContext cfgCtx, SynapseConfiguration synapseConfig)
public Axis2SynapseEnvironment(org.apache.axis2.context.ConfigurationContext cfgCtx, SynapseConfiguration synapseConfig, ServerContextInformation contextInformation)
public boolean injectMessage(MessageContext synCtx)
SynapseEnvironment
injectMessage
in interface SynapseEnvironment
synCtx
- - Synapse MessageContext to be injectedpublic void injectAsync(MessageContext synCtx, SequenceMediator seq)
SynapseEnvironment
injectAsync
in interface SynapseEnvironment
synCtx
- - Synapse message context to be injectedseq
- - Sequence to be used for mediationpublic void send(EndpointDefinition endpoint, MessageContext synCtx)
send
in interface SynapseEnvironment
endpoint
- - EndpointDefinition to be used to find the endpoint information
and the properties of the sending processsynCtx
- - Synapse MessageContext to be sentpublic MessageContext createMessageContext()
createMessageContext
in interface SynapseEnvironment
public org.apache.axiom.util.blob.OverflowBlob createOverflowBlob()
createOverflowBlob
in interface SynapseEnvironment
public StatisticsCollector getStatisticsCollector()
StatisticsCollector
responsible for
collecting stats for this synapse instance.getStatisticsCollector
in interface SynapseEnvironment
StatisticsCollector
@Deprecated public void setStatisticsCollector(StatisticsCollector collector)
setStatisticsCollector
in interface SynapseEnvironment
collector
- - Statistics collector to be setpublic ExecutorService getExecutorService()
getExecutorService
in interface SynapseEnvironment
public boolean isInitialized()
isInitialized
in interface SynapseEnvironment
public void setInitialized(boolean state)
setInitialized
in interface SynapseEnvironment
state
- true means ready for processingpublic SynapseConfiguration getSynapseConfiguration()
SynapseConfiguration
from the environment
getSynapseConfiguration
in interface SynapseEnvironment
public SynapseTaskManager getTaskManager()
SynapseTaskManager
from the
environment
.getTaskManager
in interface SynapseEnvironment
public ServerContextInformation getServerContextInformation()
ServerContextInformation
from the environment.
getServerContextInformation
in interface SynapseEnvironment
public org.apache.axis2.context.ConfigurationContext getAxis2ConfigurationContext()
ConfigurationContext
associated with this axis2SynapseEnv
public Map<QName,SynapseXpathFunctionContextProvider> getXpathFunctionExtensions()
getXpathFunctionExtensions
in interface SynapseEnvironment
public Map<QName,SynapseXpathVariableResolver> getXpathVariableExtensions()
getXpathVariableExtensions
in interface SynapseEnvironment
public void setXpathFunctionExtensions(SynapseXpathFunctionContextProvider functionExt)
public void setXpathVariableExtensions(SynapseXpathVariableResolver variableExt)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.