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)
SynapseEnvironmentinjectMessage in interface SynapseEnvironmentsynCtx - - Synapse MessageContext to be injectedpublic void injectAsync(MessageContext synCtx, SequenceMediator seq)
SynapseEnvironmentinjectAsync in interface SynapseEnvironmentsynCtx - - Synapse message context to be injectedseq - - Sequence to be used for mediationpublic void send(EndpointDefinition endpoint, MessageContext synCtx)
send in interface SynapseEnvironmentendpoint - - 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 SynapseEnvironmentpublic org.apache.axiom.util.blob.OverflowBlob createOverflowBlob()
createOverflowBlob in interface SynapseEnvironmentpublic StatisticsCollector getStatisticsCollector()
StatisticsCollector responsible for
collecting stats for this synapse instance.getStatisticsCollector in interface SynapseEnvironmentStatisticsCollector@Deprecated public void setStatisticsCollector(StatisticsCollector collector)
setStatisticsCollector in interface SynapseEnvironmentcollector - - Statistics collector to be setpublic ExecutorService getExecutorService()
getExecutorService in interface SynapseEnvironmentpublic boolean isInitialized()
isInitialized in interface SynapseEnvironmentpublic void setInitialized(boolean state)
setInitialized in interface SynapseEnvironmentstate - true means ready for processingpublic SynapseConfiguration getSynapseConfiguration()
SynapseConfiguration from the environmentgetSynapseConfiguration in interface SynapseEnvironmentpublic SynapseTaskManager getTaskManager()
SynapseTaskManager from the
environment.getTaskManager in interface SynapseEnvironmentpublic ServerContextInformation getServerContextInformation()
ServerContextInformation from the environment.getServerContextInformation in interface SynapseEnvironmentpublic org.apache.axis2.context.ConfigurationContext getAxis2ConfigurationContext()
ConfigurationContext associated with this axis2SynapseEnvpublic Map<QName,SynapseXpathFunctionContextProvider> getXpathFunctionExtensions()
getXpathFunctionExtensions in interface SynapseEnvironmentpublic Map<QName,SynapseXpathVariableResolver> getXpathVariableExtensions()
getXpathVariableExtensions in interface SynapseEnvironmentpublic void setXpathFunctionExtensions(SynapseXpathFunctionContextProvider functionExt)
public void setXpathVariableExtensions(SynapseXpathVariableResolver variableExt)
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.