|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.core.axis2.Axis2SynapseEnvironment
public class Axis2SynapseEnvironment
This is the Axis2 implementation of the SynapseEnvironment
Constructor Summary | |
---|---|
Axis2SynapseEnvironment(ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig)
|
|
Axis2SynapseEnvironment(ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig,
ServerContextInformation contextInformation)
|
|
Axis2SynapseEnvironment(SynapseConfiguration synCfg)
|
Method Summary | |
---|---|
MessageContext |
createMessageContext()
This method will be used to create a new MessageContext in the Axis2 environment for Synapse. |
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 threashold chunk size can be customized by using the properties file. |
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()
Retrive the SynapseTaskManager from the
envioronment . |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Axis2SynapseEnvironment(SynapseConfiguration synCfg)
public Axis2SynapseEnvironment(ConfigurationContext cfgCtx, SynapseConfiguration synapseConfig)
public Axis2SynapseEnvironment(ConfigurationContext cfgCtx, SynapseConfiguration synapseConfig, ServerContextInformation contextInformation)
Method Detail |
---|
public boolean injectMessage(MessageContext synCtx)
SynapseEnvironment
injectMessage
in interface SynapseEnvironment
synCtx
- - Synapse MessageContext to be injected
public 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 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
envioronment
.
getTaskManager
in interface SynapseEnvironment
public ServerContextInformation getServerContextInformation()
ServerContextInformation
from the environment.
- Specified by:
getServerContextInformation
in interface SynapseEnvironment
- Returns:
- ServerContextInformation of the environment
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |