Uses of Interface
org.apache.synapse.MessageContext
-
-
Uses of MessageContext in org.apache.synapse
Methods in org.apache.synapse with parameters of type MessageContext Modifier and Type Method Description void
SequenceFlowObserver. complete(MessageContext synCtx, String seqName)
This method should implement the logic to run at the end of the flowprotected void
FaultHandler. executeExtendedSynapseHandlerOnFault(MessageContext synCtx)
Execute the ExtendedSynapseHandler in the error flow.boolean
ExtendedSynapseHandler. handleError(MessageContext synCtx)
Handle error requests coming to the synapse engine.void
FaultHandler. handleFault(MessageContext synCtx)
void
FaultHandler. handleFault(MessageContext synCtx, Exception e)
Extract and set ERROR_MESSAGE and ERROR_DETAIL to the message context from the Exceptionboolean
SynapseHandler. handleRequestInFlow(MessageContext synCtx)
Handle request message coming into the engineboolean
SynapseHandler. handleRequestOutFlow(MessageContext synCtx)
Handle request message going out from the engineboolean
SynapseHandler. handleResponseInFlow(MessageContext synCtx)
Handle response message coming into the engineboolean
SynapseHandler. handleResponseOutFlow(MessageContext synCtx)
Handle response message going out from the engineboolean
Mediator. mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.abstract void
FaultHandler. onFault(MessageContext synCtx)
This will be executed to handle any Exceptions occurred within the Synapse environment.void
Mediator. reportCloseStatistics(MessageContext synCtx, Integer currentIndex)
Report Close Statistic Event for the MediatorInteger
Mediator. reportOpenStatistics(MessageContext synCtx, boolean isContentAltering)
Report Open Statistic Event for the Mediatorvoid
SequenceFlowObserver. start(MessageContext synCtx, String seqName)
This method should implement the logic to run at the start of the flow -
Uses of MessageContext in org.apache.synapse.api
Methods in org.apache.synapse.api with parameters of type MessageContext Modifier and Type Method Description protected void
AbstractApiHandler. apiProcess(MessageContext synCtx, API api)
protected void
AbstractApiHandler. apiProcessNonDefaultStrategy(MessageContext synCtx, API api)
boolean
API. canProcess(MessageContext synCtx)
protected boolean
AbstractApiHandler. dispatchToAPI(Collection<API> apiSet, MessageContext synCtx)
protected abstract boolean
AbstractApiHandler. dispatchToAPI(MessageContext synCtx)
static String
ApiUtils. getFullRequestPath(MessageContext synCtx)
static String
ApiUtils. getSubRequestPath(MessageContext synCtx)
protected boolean
AbstractApiHandler. identifyAPI(API api, MessageContext synCtx, List defaultStrategyApiSet)
static void
ApiUtils. populateQueryParamsToMessageContext(MessageContext synCtx)
Populate Message context properties for the query parameters extracted from the urlabstract boolean
AbstractApiHandler. process(MessageContext synCtx)
void
API. process(MessageContext synCtx)
void
Resource. registerFaultHandler(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.api.cors
Methods in org.apache.synapse.api.cors with parameters of type MessageContext Modifier and Type Method Description static void
CORSHelper. handleCORSHeaders(CORSConfiguration corsConfiguration, MessageContext synCtx, String supportedMethods, boolean updateHeaders)
Functions to handle CORS Headersstatic void
CORSHelper. handleCORSHeadersForResponse(CORSConfiguration corsConfiguration, MessageContext synCtx)
Function to set CORS headers to response message transport headers extracting from synapse message context -
Uses of MessageContext in org.apache.synapse.api.dispatch
Methods in org.apache.synapse.api.dispatch with parameters of type MessageContext Modifier and Type Method Description Resource
DefaultDispatcher. findResource(MessageContext synCtx, Collection<Resource> resources)
Resource
RESTDispatcher. findResource(MessageContext synCtx, Collection<Resource> resources)
Find a Resource instance suitable for processing the given messageResource
URITemplateBasedDispatcher. findResource(MessageContext synCtx, Collection<Resource> resources)
Resource
URLMappingBasedDispatcher. findResource(MessageContext synCtx, Collection<Resource> resources)
-
Uses of MessageContext in org.apache.synapse.api.inbound
Methods in org.apache.synapse.api.inbound with parameters of type MessageContext Modifier and Type Method Description protected boolean
InboundApiHandler. dispatchToAPI(MessageContext synCtx)
boolean
InboundApiHandler. process(MessageContext synCtx)
Attempt to process the given message through one of the available inbound APIs. -
Uses of MessageContext in org.apache.synapse.api.rest
Methods in org.apache.synapse.api.rest with parameters of type MessageContext Modifier and Type Method Description protected boolean
RestRequestHandler. dispatchToAPI(MessageContext synCtx)
boolean
RestRequestHandler. process(MessageContext synCtx)
Attempt to process the given message through one of the available APIs. -
Uses of MessageContext in org.apache.synapse.aspects
Methods in org.apache.synapse.aspects with parameters of type MessageContext Modifier and Type Method Description static AspectConfiguration
AspectConfigurationDetectionStrategy. getAspectConfiguration(MessageContext synCtx)
Factory method to create the AspectConfiguration when there is no a defined main sequence and only there is a set of mediators. -
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics
Methods in org.apache.synapse.aspects.flow.statistics with parameters of type MessageContext Modifier and Type Method Description void
StatisticsCloseEventListener. invokeCloseEventEntry(MessageContext synCtx)
This method implements how to close the statistic events from synapse mediation engine. -
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.collectors
Methods in org.apache.synapse.aspects.flow.statistics.collectors with parameters of type MessageContext Modifier and Type Method Description static void
CallbackStatisticCollector. addCallback(MessageContext messageContext, String callbackId)
Enqueue CallbackSentEvent event to the event queue.protected static void
RuntimeStatisticCollector. addEvent(MessageContext messageContext, StatisticsReportingEvent event)
Helper method to just add event without changing counts.protected static void
RuntimeStatisticCollector. addEventAndCloseFlow(MessageContext messageContext, StatisticsReportingEvent event)
Helper method to add event and close the message flow static collection.protected static void
RuntimeStatisticCollector. addEventAndDecrementCallbackCount(MessageContext messageContext, StatisticsReportingEvent event)
Helper method to add event and decrement call back count, which denotes, call back has been received.protected static void
RuntimeStatisticCollector. addEventAndDecrementCount(MessageContext messageContext, StatisticsReportingEvent event)
Helper method to add event and decrement stat count, which denotes, closing event happened.protected static void
RuntimeStatisticCollector. addEventAndIncrementCallbackCount(MessageContext messageContext, StatisticsReportingEvent event)
Helper method to add event and increment call back count, which notifies that a callback has been registeredprotected static void
RuntimeStatisticCollector. addEventAndIncrementCount(MessageContext messageContext, StatisticsReportingEvent event)
Helper method to add event and increment stat count so that it denotes, open event is added.static void
CallbackStatisticCollector. callbackCompletionEvent(MessageContext oldMessageContext, String callbackId)
Enqueue CallbackCompletionEvent event to the event queue.static void
CloseEventCollector. closeEntryEvent(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering)
Enqueue statistics event to the event queue.static void
CloseEventCollector. closeEntryEvent(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering, String propertyValue)
Enqueue statistics event to the event queue.static void
CloseEventCollector. closeFlowForcefully(MessageContext messageContext, boolean error)
Enqueue statistics event to the event queue.static void
OpenEventCollector. openContinuationEvents(MessageContext synCtx)
Add event in to the event queue.static void
CallbackStatisticCollector. reportCallbackHandlingCompletion(MessageContext synapseOutMsgCtx, String callbackId)
Enqueue CallbackHandledEvent event to the event queue.static Integer
OpenEventCollector. reportChildEntryEvent(MessageContext messageContext, String componentName, ComponentType componentType, AspectConfiguration aspectConfiguration, boolean isContentAltering)
Enqueue StatisticOpenEvent to the event Queue.static Integer
OpenEventCollector. reportEntryEvent(MessageContext messageContext, String componentName, AspectConfiguration aspectConfiguration, ComponentType componentType)
Enqueue StatisticOpenEvent to the event Queue.static void
FaultStatisticCollector. reportFault(MessageContext messageContext)
Enqueue Fault Event to the event queue indicating that fault has occurred in the message flow.static Integer
OpenEventCollector. reportFlowAggregateEvent(MessageContext messageContext, String componentName, ComponentType componentType, AspectConfiguration aspectConfiguration, boolean isContentAltering)
Enqueue StatisticOpenEvent to the event Queue.static void
OpenEventCollector. reportFlowAsynchronousEvent(MessageContext messageContext)
Enqueue StatisticOpenEvent for asynchronous invocation.static Integer
OpenEventCollector. reportFlowContinuableEvent(MessageContext messageContext, String componentName, ComponentType componentType, AspectConfiguration aspectConfiguration, boolean isContentAltering)
Enqueue StatisticOpenEvent to the event Queue.static Integer
OpenEventCollector. reportFlowSplittingEvent(MessageContext messageContext, String componentName, ComponentType componentType, AspectConfiguration aspectConfiguration, boolean isContentAltering)
Enqueue StatisticOpenEvent to the event Queue.protected static void
RuntimeStatisticCollector. setStatisticsTraceId(MessageContext msgCtx)
Set message Id of the message context as statistic trace Id at the beginning of the statistic flow.static boolean
RuntimeStatisticCollector. shouldReportStatistic(MessageContext messageContext)
Returns true if statistics is collected in this message flow path.static void
CloseEventCollector. tryEndFlow(MessageContext messageContext, String componentName, ComponentType componentType, Integer currentIndex, boolean isContentAltering)
Enqueue statistics events to the event queue to close and try to finish the flow.static void
CallbackStatisticCollector. updateParentsForCallback(MessageContext oldMessageContext, String callbackId)
Enqueue CallbackReceivedEvent event to the event queue. -
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.data.raw
Methods in org.apache.synapse.aspects.flow.statistics.data.raw with parameters of type MessageContext Modifier and Type Method Description void
BasicStatisticDataUnit. generateElasticMetadata(MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.elasticsearch
Constructors in org.apache.synapse.aspects.flow.statistics.elasticsearch with parameters of type MessageContext Constructor Description ElasticMetadata(MessageContext msgCtx)
-
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.handling.event
Methods in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.handling.event with parameters of type MessageContext Modifier and Type Method Description void
CallbackEventHandler. handleAddCallback(MessageContext messageContext, String callbackId)
Handles callback addition.void
CallbackEventHandler. handleCallbackCompletionEvent(MessageContext oldMessageContext, String callbackId)
Handles callback completion.void
CloseEventHandler. handleCloseEntryEvent(BasicStatisticDataUnit basicStatisticDataUnit, MessageContext synCtx)
Handles a close entry event.void
CloseEventHandler. handleCloseFlowForcefully(BasicStatisticDataUnit basicStatisticDataUnit, MessageContext synCtx)
Handles a forceful close event.void
OpenEventHandler. handleOpenChildEntryEvent(StatisticDataUnit statisticDataUnit, MessageContext synCtx)
Handles an open child entry event.void
OpenEventHandler. handleOpenContinuationEvents(BasicStatisticDataUnit statisticDataUnit, MessageContext synCtx)
Handles an open continuation event.void
OpenEventHandler. handleOpenEntryEvent(StatisticDataUnit statisticDataUnit, MessageContext synCtx)
Handles an open entry event.void
OpenEventHandler. handleOpenFlowAggregateEvent(StatisticDataUnit statisticDataUnit, MessageContext synCtx)
Handles a flow aggregate open event.void
OpenEventHandler. handleOpenFlowAsynchronousEvent(BasicStatisticDataUnit statisticDataUnit, MessageContext synCtx)
Handles a flow asynchronous open event.void
OpenEventHandler. handleOpenFlowContinuableEvent(StatisticDataUnit statisticDataUnit, MessageContext synCtx)
Handles a flow continuable open event.void
OpenEventHandler. handleOpenFlowSplittingEvent(StatisticDataUnit statisticDataUnit, MessageContext synCtx)
Handles a flow splitting open event.void
CallbackEventHandler. handleReportCallbackHandlingCompletion(MessageContext synapseOutMsgCtx, String callbackId)
Handles callback completion report.void
ContinuationStateStackEventHandler. handleStateStackClearance(MessageContext synCtx)
Handles clearance of the continuation state stack.void
ContinuationStateStackEventHandler. handleStateStackInsertion(MessageContext synCtx, String seqName, SequenceType seqType)
Handles insertion to the continuation state stack.void
ContinuationStateStackEventHandler. handleStateStackRemoval(ContinuationState continuationState, MessageContext synCtx)
Handles removal from the continuation state stack.void
CloseEventHandler. handleTryEndFlow(BasicStatisticDataUnit basicStatisticDataUnit, MessageContext synCtx)
Handles a try end flow event.void
CallbackEventHandler. handleUpdateParentsForCallback(MessageContext oldMessageContext, String callbackId)
Handles parents update for a callback. -
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.handling.span
-
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.parentresolving
Methods in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.parentresolving with parameters of type MessageContext Modifier and Type Method Description static SpanWrapper
ArtifactHolderBasedParentResolver. resolveParent(StatisticDataUnit child, SpanStore spanStore, MessageContext synCtx)
Resolves parent span, based on the artifact holder.static SpanWrapper
ParentResolver. resolveParent(StatisticDataUnit child, SpanStore spanStore, MessageContext synCtx)
Resolves parent spans before a child span starts. -
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.scoping
Methods in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.management.scoping with parameters of type MessageContext Modifier and Type Method Description TracingScope
TracingScopeManager. getTracingScope(MessageContext synCtx)
Returns a tracing scope object for the provided message context.boolean
TracingScope. isEventCollectionFinished(MessageContext synCtx)
Denotes whether event collection has been finished in this scope, so that the outer level span of this scope can be ended. -
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.stores
Methods in org.apache.synapse.aspects.flow.statistics.tracing.opentelemetry.stores with parameters of type MessageContext Modifier and Type Method Description SpanWrapper
SpanStore. addSpanWrapper(String spanId, io.opentelemetry.api.trace.Span activeSpan, StatisticDataUnit statisticDataUnit, SpanWrapper parentSpanWrapper, MessageContext synCtx)
Denotes the beginning of a span. -
Uses of MessageContext in org.apache.synapse.aspects.flow.statistics.util
Methods in org.apache.synapse.aspects.flow.statistics.util with parameters of type MessageContext Modifier and Type Method Description static void
StatisticDataCollectionHelper. collectAggregatedParents(List<MessageContext> messages, MessageContext newCtx)
This method is used to collect all the parent indexes from message contexts which contributes to aggregate message at the end of the aggregation.static void
StatisticDataCollectionHelper. collectData(MessageContext messageContext, boolean isContentAltering, Boolean isCollectingTracing, StatisticDataUnit statisticDataUnit)
Collect necessary statistics data from the message context.static String
TracingDataCollectionHelper. collectPayload(MessageContext messageContext)
Extract payload from the synapse message context.static Map<String,Object>
TracingDataCollectionHelper. extractContextProperties(MessageContext synCtx)
Extract properties from the synapse message context.static Map<String,Object>
TracingDataCollectionHelper. extractTransportProperties(MessageContext synCtx)
Extract transport headers from the synapse message context.static int
StatisticDataCollectionHelper. getFlowPosition(MessageContext messageContext)
Get message flow position for the current component.static int
StatisticDataCollectionHelper. getParentFlowPosition(MessageContext messageContext, Integer newParentIndex)
Get parent of this statistic component and sets current message flow position as next components parent.static List<Integer>
StatisticDataCollectionHelper. getParentList(MessageContext messageContext)
Get Parent list for this component.static String
StatisticDataCollectionHelper. getStatisticTraceId(MessageContext messageContext)
Get statistic trace id for this message flow.static boolean
StatisticDataCollectionHelper. isOutOnlyFlow(MessageContext messageContext)
Checks is this is a Out_Only message flow.Method parameters in org.apache.synapse.aspects.flow.statistics.util with type arguments of type MessageContext Modifier and Type Method Description static void
StatisticDataCollectionHelper. collectAggregatedParents(List<MessageContext> messages, MessageContext newCtx)
This method is used to collect all the parent indexes from message contexts which contributes to aggregate message at the end of the aggregation. -
Uses of MessageContext in org.apache.synapse.carbonext
Methods in org.apache.synapse.carbonext with parameters of type MessageContext Modifier and Type Method Description boolean
TenantInfoConfigurator. applyTenantInfo(MessageContext out)
boolean
TenantInfoConfigurator. extractTenantInfo(MessageContext in)
-
Uses of MessageContext in org.apache.synapse.config.xml
Methods in org.apache.synapse.config.xml with parameters of type MessageContext Modifier and Type Method Description boolean
AnonymousListMediator. mediate(MessageContext synCtx)
boolean
SwitchCase. mediate(MessageContext synCtx)
To delegate message mediation to list mediatorabstract String
SynapsePath. stringValueOf(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.continuation
Methods in org.apache.synapse.continuation with parameters of type MessageContext Modifier and Type Method Description static void
ContinuationStackManager. addReliantContinuationState(MessageContext synCtx, int subBranch, int position)
Add a ReliantContinuationState to the top SeqContinuationState in the stack.static void
ContinuationStackManager. addSeqContinuationState(MessageContext synCtx, String seqName, SequenceType seqType)
Add new SeqContinuationState to the stack.static void
ContinuationStackManager. clearStack(MessageContext synCtx)
Remove all ContinuationStates from ContinuationState Stackstatic boolean
ContinuationStackManager. isSkipSeqContinuationStateAddition(MessageContext synCtx)
Check whether sequence continuation state addition need to be skippedstatic ContinuationState
ContinuationStackManager. peakContinuationStateStack(MessageContext synCtx)
Peek from Continuation Stackstatic void
ContinuationStackManager. popContinuationStateStack(MessageContext synCtx)
Pop from Continuation Stackstatic void
ContinuationStackManager. pushFaultHandler(MessageContext synCtx, SeqContinuationState seqContState)
Push fault handler for the received continuation call response.static void
ContinuationStackManager. removeReliantContinuationState(MessageContext synCtx)
Remove a ReliantContinuationState from the top SeqContinuationState in the stack.static void
ContinuationStackManager. removeSeqContinuationState(MessageContext synCtx, SequenceType seqType)
Remove top SeqContinuationState from the stack.static SequenceMediator
ContinuationStackManager. retrieveSequence(MessageContext synCtx, SeqContinuationState seqContState)
Retrieve the sequence from Continuation state which message should be injected to.static void
ContinuationStackManager. updateSeqContinuationState(MessageContext synCtx, int position)
Update SeqContinuationState with the current mediator position in the sequence. -
Uses of MessageContext in org.apache.synapse.core
Methods in org.apache.synapse.core that return MessageContext Modifier and Type Method Description MessageContext
SynapseEnvironment. createMessageContext()
Creates a new SynapseMessageContext
instance.Methods in org.apache.synapse.core with parameters of type MessageContext Modifier and Type Method Description void
SynapseEnvironment. injectAsync(MessageContext smc, SequenceMediator seq)
This method injects a new message into the Synapse engine for the mediation by the specified sequence.boolean
SynapseEnvironment. injectInbound(MessageContext smc, SequenceMediator seq, boolean sequential)
This method injects a new message into the Synapse engine for the mediation by the specified sequence.boolean
SynapseEnvironment. injectMessage(MessageContext smc)
This method injects a new message into the Synapse engine.boolean
SynapseEnvironment. injectMessage(MessageContext smc, SequenceMediator seq)
Inject message to the sequence in synchronous mannervoid
SynapseEnvironment. send(EndpointDefinition endpoint, MessageContext smc)
This method allows a message to be sent through the underlying SOAP engine. -
Uses of MessageContext in org.apache.synapse.core.axis2
Classes in org.apache.synapse.core.axis2 that implement MessageContext Modifier and Type Class Description class
Axis2MessageContext
This is the MessageContext implementation that synapse uses almost all the time because Synapse is implemented on top of the Axis2Methods in org.apache.synapse.core.axis2 that return MessageContext Modifier and Type Method Description MessageContext
Axis2SynapseEnvironment. createMessageContext()
This method will be used to create a new MessageContext in the Axis2 environment for Synapse.static MessageContext
MessageContextCreatorForAxis2. getSynapseMessageContext(org.apache.axis2.context.MessageContext axisMsgCtx)
MessageContext
AsyncCallback. getSynapseOutMsgCtx()
Methods in org.apache.synapse.core.axis2 with parameters of type MessageContext Modifier and Type Method Description static void
SynapseMessageReceiver. doPostInjectUpdates(MessageContext messageContext)
Do the cleanup work, metadata updates in the return path of Message Receiver tread after injecting the message to the enginevoid
Axis2SynapseEnvironment. injectAsync(MessageContext synCtx, SequenceMediator seq)
boolean
Axis2SynapseEnvironment. injectInbound(MessageContext synCtx, SequenceMediator seq, boolean sequential)
Used by inbound polling endpoints to inject the message to synapse engineboolean
Axis2SynapseEnvironment. injectMessage(MessageContext synCtx)
boolean
Axis2SynapseEnvironment. injectMessage(MessageContext smc, SequenceMediator seq)
static boolean
Axis2Sender. preventMultipleResponses(MessageContext messageContext)
This will ensure only one response is sent for a single request.void
ProxyService. registerFaultHandler(MessageContext synCtx)
Register the fault handler for the message contextstatic void
Axis2FlexibleMEPClient. send(EndpointDefinition endpoint, MessageContext synapseOutMessageContext)
Based on the Axis2 client code.void
Axis2SynapseEnvironment. 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.static void
Axis2Sender. sendBack(MessageContext smc)
Send a response back to a client of Synapsestatic void
Axis2Sender. sendOn(EndpointDefinition endpoint, MessageContext synapseInMessageContext)
Send a message out from the Synapse engine to an external serviceConstructors in org.apache.synapse.core.axis2 with parameters of type MessageContext Constructor Description AsyncCallback(org.apache.axis2.context.MessageContext messageContext, MessageContext synapseOutMsgCtx)
-
Uses of MessageContext in org.apache.synapse.debug
Methods in org.apache.synapse.debug with parameters of type MessageContext Modifier and Type Method Description void
SynapseDebugManager. advertiseMediationFlowBreakPoint(MessageContext synCtx, SynapseMediationFlowPoint breakPoint)
advertise a mediation breakpoint to the communication channelvoid
SynapseDebugManager. advertiseMediationFlowSkip(MessageContext synCtx, SynapseMediationFlowPoint skipPoint)
advertise a mediation skip to the communication channelvoid
SynapseDebugManager. advertiseMediationFlowStartPoint(MessageContext synCtx)
Related to advertising the point where mediation flow starts.void
SynapseDebugManager. advertiseMediationFlowTerminatePoint(MessageContext synCtx)
related to advertising mediation flow terminating point to the communication channelvoid
SynapseDebugManager. setMessageContext(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.endpoints
Methods in org.apache.synapse.endpoints that return MessageContext Modifier and Type Method Description MessageContext
OAuthConfiguredHTTPEndpoint. retryCallWithNewToken(MessageContext synCtx)
This method is called when we need to retry a call to the resource with a new tokenMethods in org.apache.synapse.endpoints with parameters of type MessageContext Modifier and Type Method Description String
EndpointDefinition. evaluateDynamicEndpointSecurityPolicy(MessageContext synCtx)
Evaluates the ws security policy path dynamicallylong
EndpointDefinition. evaluateDynamicEndpointTimeout(MessageContext synCtx)
protected void
AbstractEndpoint. evaluateProperties(MessageContext synCtx)
Evaluates the endpoint properties based on the current message context and set the properties to the message context appropriatelyvoid
AbstractEndpoint. executeEpTypeSpecificFunctions(MessageContext synCtx)
void
HTTPEndpoint. executeEpTypeSpecificFunctions(MessageContext synCtx)
protected String
DynamicLoadbalanceEndpoint. extractSessionID(MessageContext synCtx, String key)
String
EndpointDefinition. getAddress(MessageContext messageContext)
This should return the absolute EPR address referenced by the named endpoint.String
EndpointDefinition. getDynamicAddress(MessageContext messageContext)
This should return the absolute EPR address referenced by the named endpoint.protected Endpoint
LoadbalanceEndpoint. getNextChild(MessageContext synCtx)
Endpoint
IndirectEndpoint. getRealEndpoint(MessageContext synCtx)
Get the real endpointprotected void
AbstractEndpoint. handleException(String msg, Exception e, MessageContext msgCtx)
Helper methods to handle errors.protected void
AbstractEndpoint. informFailure(MessageContext synCtx, int errorCode, String errorMsg)
protected boolean
AbstractEndpoint. isRetry(MessageContext synCtx)
protected boolean
AbstractEndpoint. isSuspendFault(MessageContext synCtx)
Is this a fault that should put the endpoint on SUSPEND? or is this a fault to ignore?protected boolean
AbstractEndpoint. isTimeout(MessageContext synCtx)
Is this [fault] message a timeout?protected boolean
AbstractEndpoint. isTraceOn(MessageContext msgCtx)
Should this mediator perform tracing? True if its explicitly asked to trace, or its parent has been asked to trace and it does not reject itprotected void
AbstractEndpoint. logOnChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
void
AbstractEndpoint. onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
void
Endpoint. onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
Endpoints that contain other endpoints should implement this method.void
FailoverEndpoint. onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
void
LoadbalanceEndpoint. onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
void
RecipientListEndpoint. onChildEndpointFail(Endpoint endpoint, MessageContext synMessageContext)
void
SALoadbalanceEndpoint. onChildEndpointFail(Endpoint endpoint, MessageContext synCtx)
It is logically incorrect to failover a session affinity endpoint after the session has started.void
AbstractEndpoint. onFault(MessageContext synCtx)
On a fault, propagate to parent if any, or call into the fault handlervoid
AddressEndpoint. onFault(MessageContext synCtx)
void
DefaultEndpoint. onFault(MessageContext synCtx)
void
HTTPEndpoint. onFault(MessageContext synCtx)
void
WSDLEndpoint. onFault(MessageContext synCtx)
protected void
AbstractEndpoint. prepareForEndpointStatistics(MessageContext synCtx)
Process statistics for this messageMessageContext
OAuthConfiguredHTTPEndpoint. retryCallWithNewToken(MessageContext synCtx)
This method is called when we need to retry a call to the resource with a new tokenvoid
AbstractEndpoint. send(MessageContext synCtx)
void
AddressEndpoint. send(MessageContext synCtx)
void
BasicAuthConfiguredHTTPEndpoint. send(MessageContext synCtx)
void
ClassEndpoint. send(MessageContext synCtx)
void
DefaultEndpoint. send(MessageContext synCtx)
void
DynamicLoadbalanceEndpoint. send(MessageContext synCtx)
void
Endpoint. send(MessageContext synMessageContext)
Sends the message context according to an endpoint specific behavior.void
FailoverEndpoint. send(MessageContext synCtx)
void
HTTPEndpoint. send(MessageContext synCtx)
void
IndirectEndpoint. send(MessageContext synCtx)
Send by calling to the real endpointvoid
LoadbalanceEndpoint. send(MessageContext synCtx)
void
OAuthConfiguredHTTPEndpoint. send(MessageContext synCtx)
void
RecipientListEndpoint. send(MessageContext synCtx)
void
ResolvingEndpoint. send(MessageContext synCtx)
void
SALoadbalanceEndpoint. send(MessageContext synCtx)
void
ServiceDynamicLoadbalanceEndpoint. send(MessageContext synCtx)
void
TemplateEndpoint. send(MessageContext synCtx)
void
WSDLEndpoint. send(MessageContext synCtx)
void
ClassEndpoint. sendMessage(MessageContext synMessageContext)
Override theAbstractEndpoint.send()
to have a custom message send out logic.void
RecipientListEndpoint. sendMessage(MessageContext synCtx)
void
ResolvingEndpoint. sendMessage(MessageContext synCtx)
Send by calling to the real endpointvoid
SALoadbalanceEndpoint. sendMessage(MessageContext synCtx)
void
TemplateEndpoint. sendMessage(MessageContext synCtx)
protected void
DynamicLoadbalanceEndpoint. sendToApplicationMember(MessageContext synCtx, org.apache.axis2.clustering.Member currentMember, DynamicLoadbalanceFaultHandler faultHandler, boolean newSession)
protected void
DynamicLoadbalanceEndpoint. setCookieHeader(MessageContext synCtx)
protected void
AbstractEndpoint. setErrorOnMessage(MessageContext synCtx, Integer errorCode, String errorMsg)
protected void
DynamicLoadbalanceEndpoint. setupTransportHeaders(MessageContext synCtx)
Adding the X-Forwarded-For/X-Originating-IP headers to the outgoing message. -
Uses of MessageContext in org.apache.synapse.endpoints.algorithms
Methods in org.apache.synapse.endpoints.algorithms with parameters of type MessageContext Modifier and Type Method Description Endpoint
LoadbalanceAlgorithm. getNextEndpoint(MessageContext synapseMessageContext, AlgorithmContext algorithmContext)
This method returns the next node according to the algorithm implementation.Endpoint
RoundRobin. getNextEndpoint(MessageContext synCtx, AlgorithmContext algorithmContext)
Choose an active endpoint using the round robin algorithm.Endpoint
WeightedRoundRobin. getNextEndpoint(MessageContext synapseMessageContext, AlgorithmContext algorithmContext)
Endpoint
WeightedRRLCAlgorithm. getNextEndpoint(MessageContext messageContext, AlgorithmContext algorithmContext)
-
Uses of MessageContext in org.apache.synapse.endpoints.auth
Methods in org.apache.synapse.endpoints.auth with parameters of type MessageContext Modifier and Type Method Description void
AuthHandler. setAuthHeader(MessageContext messageContext)
This method will set the Authorization header with the relevant auth token. -
Uses of MessageContext in org.apache.synapse.endpoints.auth.basicauth
Methods in org.apache.synapse.endpoints.auth.basicauth with parameters of type MessageContext Modifier and Type Method Description void
BasicAuthHandler. setAuthHeader(MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.endpoints.auth.oauth
Methods in org.apache.synapse.endpoints.auth.oauth that return MessageContext Modifier and Type Method Description MessageContext
MessageCache. removeMessageContext(String id)
Remove a MessageContext from the cache and return itMethods in org.apache.synapse.endpoints.auth.oauth with parameters of type MessageContext Modifier and Type Method Description void
MessageCache. addMessageContext(String id, MessageContext synCtx)
Add a message context to the cachestatic void
OAuthUtils. append401HTTPSC(MessageContext synCtx)
Method to append 401 status code to NON_ERROR_HTTP_STATUS_CODES property.protected String
AuthorizationCodeHandler. buildTokenRequestPayload(MessageContext messageContext)
protected String
ClientCredentialsHandler. buildTokenRequestPayload(MessageContext messageContext)
protected abstract String
OAuthHandler. buildTokenRequestPayload(MessageContext messageContext)
Return the request payload relevant to the OAuth handler.protected String
PasswordCredentialsHandler. buildTokenRequestPayload(MessageContext messageContext)
static String
OAuthClient. generateToken(String tokenApiUrl, String payload, String credentials, MessageContext messageContext, Map<String,String> customHeaders, int connectionTimeout, int connectionRequestTimeout, int socketTimeout)
Method to generate the access token from an OAuth serverprotected String
OAuthHandler. getEncodedCredentials(MessageContext messageContext)
Return the base 64 encoded clientId:clientSecret relevant to the OAuth handler.protected String
OAuthHandler. getRequestParametersAsString(MessageContext messageContext)
Return the request parameters as a string.static String
OAuthUtils. resolveExpression(String value, MessageContext messageContext)
This method evaluate the value as an expression or return the value.static boolean
OAuthUtils. retryOnOAuthFailure(OAuthConfiguredHTTPEndpoint httpEndpoint, MessageContext synapseInMsgCtx, MessageContext synapseOutMsgCtx)
Method to check whether retry is needed.void
OAuthHandler. setAuthHeader(MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.endpoints.dispatch
Methods in org.apache.synapse.endpoints.dispatch with parameters of type MessageContext Modifier and Type Method Description protected SessionCookie
AbstractDispatcher. extractSessionCookie(MessageContext synCtx, String key)
protected String
AbstractDispatcher. extractSessionID(MessageContext synCtx, String key)
protected List<String>
HttpSessionDispatcher. extractSessionIDs(MessageContext synCtx, String key)
SessionInformation
Dispatcher. getSession(MessageContext synCtx)
Dispatcher should check the session id pattern in the synapseMessageContext and return the matching endpoint for that session id, if available.SessionInformation
HttpSessionDispatcher. getSession(MessageContext synCtx)
Check if "Cookie" HTTP header is available.SessionInformation
SimpleClientSessionDispatcher. getSession(MessageContext synCtx)
SessionInformation
SoapSessionDispatcher. getSession(MessageContext synCtx)
Gives the endpoint based on the service group context ID of the request message.protected void
AbstractDispatcher. removeSessionID(MessageContext synCtx, String key)
void
Dispatcher. removeSessionID(MessageContext syCtx)
Remove the session Id - To clear out session information from current messagevoid
HttpSessionDispatcher. removeSessionID(MessageContext syCtx)
void
SimpleClientSessionDispatcher. removeSessionID(MessageContext syCtx)
void
SoapSessionDispatcher. removeSessionID(MessageContext syCtx)
void
Dispatcher. unbind(MessageContext synCtx)
Removes the session belonging to the given message context.void
HttpSessionDispatcher. unbind(MessageContext synCtx)
void
SimpleClientSessionDispatcher. unbind(MessageContext synCtx)
void
SoapSessionDispatcher. unbind(MessageContext synCtx)
void
Dispatcher. updateSession(MessageContext synCtx)
Updates the session maps.void
HttpSessionDispatcher. updateSession(MessageContext synCtx)
Searches for "Set-Cookie" HTTP header in the message context.void
SALSessions. updateSession(MessageContext synCtx, String sessionID)
Update or establish a sessionvoid
SALSessions. updateSession(MessageContext synCtx, SessionCookie cookie)
Update or establish a sessionvoid
SimpleClientSessionDispatcher. updateSession(MessageContext synCtx)
void
SoapSessionDispatcher. updateSession(MessageContext synCtx)
As this is a server initiated session, this method will only be called for response messages. -
Uses of MessageContext in org.apache.synapse.eventing
Methods in org.apache.synapse.eventing with parameters of type MessageContext Modifier and Type Method Description void
SynapseEventSource. dispatchEvents(MessageContext msgCtx)
Public method for event dispatching, used by the eventPublisher mediator and eventSourceboolean
SynapseEventFilter. isSatisfied(MessageContext mc)
Check the incoming event satisfied with the defined filter -
Uses of MessageContext in org.apache.synapse.eventing.filters
Methods in org.apache.synapse.eventing.filters with parameters of type MessageContext Modifier and Type Method Description boolean
XPathBasedEventFilter. isSatisfied(MessageContext mc)
-
Uses of MessageContext in org.apache.synapse.inbound
Methods in org.apache.synapse.inbound with parameters of type MessageContext Modifier and Type Method Description void
InboundEndpointStatisticsCloseEventListener. invokeCloseEventEntry(MessageContext synCtx)
void
InboundResponseSender. sendBack(MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.mediators
Methods in org.apache.synapse.mediators that return MessageContext Modifier and Type Method Description MessageContext
GetPropertyFunction. getSynCtx()
Methods in org.apache.synapse.mediators with parameters of type MessageContext Modifier and Type Method Description protected void
AbstractMediator. auditLog(String msg, MessageContext msgContext)
Deprecated.This method will be removed in a future version of Synapse.protected void
AbstractMediator. auditWarn(String msg, MessageContext msgContext)
Deprecated.This method will be removed in a future version of Synapse.boolean
AbstractMediator. divertMediationRoute(MessageContext synCtx)
This method is invoked when mediation happens in debug mode, branches execution to the Debug Manager, further behavior is governed by the Debug Manager.void
MediatorProperty. evaluate(MessageContext synCtx)
Object
Value. evaluateObjectValue(MessageContext synCtx)
String
Value. evaluateValue(MessageContext synCtx)
Evaluating key based on message context used when key is a xpath expressionObject
Value. evalutePropertyExpression(MessageContext synCtx)
String
MediatorProperty. getEvaluatedExpression(MessageContext synCtx)
protected MediatorFaultHandler
AbstractMediator. getLastSequenceFaultHandler(MessageContext synCtx)
protected SynapseLog
AbstractMediator. getLog(MessageContext synCtx)
Get a SynapseLog instance appropriate for the given context.protected void
AbstractMediator. handleException(String msg, Exception e, MessageContext msgContext)
Perform an error log message to all logs @ ERROR.protected void
AbstractMediator. handleException(String msg, MessageContext msgContext)
Perform an error log message to all logs @ ERROR.protected boolean
AbstractMediator. isTraceOn(MessageContext msgCtx)
Deprecated.This method will be removed in a future version of Synapse.boolean
AbstractListMediator. mediate(MessageContext synCtx)
boolean
AbstractListMediator. mediate(MessageContext synCtx, int mediatorPosition)
boolean
FlowContinuableMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
Mediate the message using a ContinuationState.void
MediatorFaultHandler. onFault(MessageContext synCtx)
Implements the fault handling method for the mediators (basically sequences)void
AbstractMediator. reportCloseStatistics(MessageContext messageContext, Integer currentIndex)
Integer
AbstractMediator. reportOpenStatistics(MessageContext messageContext, boolean isContentAltering)
Object
Value. resolveObject(MessageContext synCtx)
Resolve the object defined in the Valuevoid
AbstractMediator. setEffectiveTraceState(MessageContext synCtx)
This method is used to save previous tracing state and set next the tracing state for a child mediatorprotected boolean
AbstractMediator. shouldCaptureTracing(MessageContext synCtx)
boolean
AbstractMediator. shouldTrace(MessageContext msgCtx)
boolean
FilterMediator. test(MessageContext synCtx)
Should return true if the sub/child mediators should execute.Constructors in org.apache.synapse.mediators with parameters of type MessageContext Constructor Description GetPropertyFunction(MessageContext synCtx)
MediatorLog(org.apache.commons.logging.Log defaultLog, boolean traceOn, MessageContext synCtx)
MediatorWorker(Mediator seq, MessageContext synCtx)
Constructor of the MediatorWorker which sets the sequence and the message contextMediatorWorker(MessageContext synCtx)
Constructor od the MediatorWorker which sets the provided message context and the main sequence as the sequence for mediation -
Uses of MessageContext in org.apache.synapse.mediators.base
Methods in org.apache.synapse.mediators.base with parameters of type MessageContext Modifier and Type Method Description boolean
SequenceMediator. mediate(MessageContext synCtx)
If this mediator refers to another named Sequence, execute that.boolean
SequenceMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
boolean
SynapseMediator. mediate(MessageContext synCtx)
Perform the mediation specified by the rule setvoid
SequenceMediator. reportCloseStatistics(MessageContext messageContext, Integer currentIndex)
Integer
SequenceMediator. reportOpenStatistics(MessageContext messageContext, boolean isContentAltering)
-
Uses of MessageContext in org.apache.synapse.mediators.bean
Methods in org.apache.synapse.mediators.bean with parameters of type MessageContext Modifier and Type Method Description void
Target. insert(MessageContext synCtx, Object object)
Inserts the given object into the target specified by the current Target object.boolean
BeanMediator. mediate(MessageContext synCtx)
Manipulates a JavaBean attached to the current message context according to the supplied semantics. -
Uses of MessageContext in org.apache.synapse.mediators.bean.enterprise
Methods in org.apache.synapse.mediators.bean.enterprise with parameters of type MessageContext Modifier and Type Method Description boolean
EJBMediator. mediate(MessageContext synCtx)
Calls an external EJB according to the supplied semantics and attaches the result into the message/message context. -
Uses of MessageContext in org.apache.synapse.mediators.builtin
Methods in org.apache.synapse.mediators.builtin with parameters of type MessageContext Modifier and Type Method Description boolean
CallMediator. mediate(MessageContext synInCtx)
This will call the send method on the messages with implicit message parameters or else if there is an endpoint, with that endpoint parametersboolean
CalloutMediator. mediate(MessageContext synCtx)
boolean
CommentMediator. mediate(MessageContext synCtx)
Mediation method.boolean
DropMediator. mediate(MessageContext synCtx)
Halts further mediation of the current message by returning false.boolean
EnqueueMediator. mediate(MessageContext synCtx)
boolean
ForEachMediator. mediate(MessageContext synCtx)
boolean
JSONTransformMediator. mediate(MessageContext synCtx)
boolean
LogMediator. mediate(MessageContext synCtx)
Logs the current message according to the supplied semanticsboolean
LoopBackMediator. mediate(MessageContext synCtx)
boolean
NTLMMediator. mediate(MessageContext messageContext)
boolean
PropertyGroupMediator. mediate(MessageContext synCtx)
Sets the properties into the current (local) Synapse Context or into the Axis Message Context or into Transports Header and removes above properties from the corresponding locations.boolean
PropertyMediator. mediate(MessageContext synCtx)
Sets a property into the current (local) Synapse Context or into the Axis Message Context or into Transports Header and removes above properties from the corresponding locations.boolean
RespondMediator. mediate(MessageContext synCtx)
boolean
SendMediator. mediate(MessageContext synCtx)
This will call the send method on the messages with implicit message parameters or else if there is an endpoint, with that endpoint parametersboolean
ValidateMediator. mediate(MessageContext synCtx)
boolean
ValidateMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
void
CallMediator. postMediate(MessageContext response, String originalMessageType, String originalContentType, Map originalTransportHeaders)
void
CommentMediator. reportCloseStatistics(MessageContext messageContext, Integer currentIndex)
void
PropertyMediator. reportCloseStatistics(MessageContext messageContext, Integer currentIndex)
Integer
CommentMediator. reportOpenStatistics(MessageContext synCtx, boolean isContentAltering)
-
Uses of MessageContext in org.apache.synapse.mediators.db
Methods in org.apache.synapse.mediators.db with parameters of type MessageContext Modifier and Type Method Description protected PreparedStatement
AbstractDBMediator. getPreparedStatement(Statement stmnt, Connection con, MessageContext msgCtx)
Return a Prepared statement for the given Statement object, which is ready to be executedboolean
AbstractDBMediator. mediate(MessageContext synCtx)
Process each SQL statement against the current messageprotected abstract void
AbstractDBMediator. processStatement(Statement query, MessageContext msgCtx)
Subclasses must specify how each SQL statement is processedprotected void
DBLookupMediator. processStatement(Statement stmnt, MessageContext msgCtx)
protected void
DBReportMediator. processStatement(Statement stmnt, MessageContext msgCtx)
-
Uses of MessageContext in org.apache.synapse.mediators.eip
Methods in org.apache.synapse.mediators.eip with parameters of type MessageContext Modifier and Type Method Description static void
EIPUtils. createSynapseEIPTemplateProperty(MessageContext synCtxt, String templateName, String paramName, Object value)
static void
EIPUtils. enrichEnvelope(org.apache.axiom.soap.SOAPEnvelope envelope, org.apache.axiom.soap.SOAPEnvelope enricher, MessageContext synCtxt, SynapseXPath expression)
Merge two SOAP envelopes using the given XPath expression that specifies the element that enriches the first envelope from the secondstatic void
EIPUtils. enrichEnvelope(org.apache.axiom.soap.SOAPEnvelope envelope, MessageContext synCtxt, SynapseXPath expression)
Modifies the envelope based on the provided XPath expression element that enriches the first envelope from the secondstatic List<org.apache.axiom.om.OMNode>
EIPUtils. getDetachedMatchingElements(org.apache.axiom.soap.SOAPEnvelope envelope, MessageContext synCtxt, SynapseXPath expression)
Return the set of detached elements specified by the XPath over the given envelopestatic com.google.gson.JsonElement
EIPUtils. getJSONElement(MessageContext messageContext, SynapseJsonPath jsonPath)
Evaluate JSON path and retrieve the result as JsonElement.static com.google.gson.JsonElement
EIPUtils. getJSONObjectAsElement(MessageContext messageContext, SynapseJsonPath jsonPath)
Evaluate JSON path and retrieve the result as JsonElement while checking if the evaluated results are nothing other than JSON objects.static List
EIPUtils. getMatchingElements(org.apache.axiom.soap.SOAPEnvelope envelope, MessageContext synCtxt, SynapseXPath expression)
Return the set of elements specified by the XPath over the given envelopeboolean
Target. mediate(MessageContext synCtx)
process the message through this target (may be to mediate using the target sequence, send message to the target endpoint or both) -
Uses of MessageContext in org.apache.synapse.mediators.eip.aggregator
Methods in org.apache.synapse.mediators.eip.aggregator that return MessageContext Modifier and Type Method Description MessageContext
Aggregate. getLastMessage()
Methods in org.apache.synapse.mediators.eip.aggregator that return types with arguments of type MessageContext Modifier and Type Method Description List<MessageContext>
Aggregate. getMessages()
Methods in org.apache.synapse.mediators.eip.aggregator with parameters of type MessageContext Modifier and Type Method Description boolean
Aggregate. addMessage(MessageContext synCtx)
Add a message to the interlan message listboolean
AggregateMediator. mediate(MessageContext synCtx)
Aggregate messages flowing through this mediator according to the correlation criteria and the aggregation algorithm specified to itboolean
AggregateMediator. mediate(MessageContext synCtx, ContinuationState contState)
Integer
AggregateMediator. reportOpenStatistics(MessageContext messageContext, boolean isContentAltering)
Method parameters in org.apache.synapse.mediators.eip.aggregator with type arguments of type MessageContext Modifier and Type Method Description void
Aggregate. setMessages(List<MessageContext> messages)
-
Uses of MessageContext in org.apache.synapse.mediators.eip.sample
Methods in org.apache.synapse.mediators.eip.sample that return MessageContext Modifier and Type Method Description MessageContext
MessageQueue. get()
MessageContext
UnboundedMessageQueue. get()
Methods in org.apache.synapse.mediators.eip.sample with parameters of type MessageContext Modifier and Type Method Description void
MessageQueue. add(MessageContext synCtx)
void
UnboundedMessageQueue. add(MessageContext synCtx)
boolean
SamplingThrottleMediator. mediate(MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.mediators.eip.splitter
Methods in org.apache.synapse.mediators.eip.splitter with parameters of type MessageContext Modifier and Type Method Description boolean
CloneMediator. mediate(MessageContext synCtx)
This will implement the mediate method of the Mediator interface and will provide the functionality of cloning message into the specified targets and mediationboolean
CloneMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
boolean
IterateMediator. mediate(MessageContext synCtx)
Splits the message by iterating over the results of the given Path expressionboolean
IterateMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
Integer
CloneMediator. reportOpenStatistics(MessageContext messageContext, boolean isContentAltering)
Integer
IterateMediator. reportOpenStatistics(MessageContext messageContext, boolean isContentAltering)
-
Uses of MessageContext in org.apache.synapse.mediators.elementary
Methods in org.apache.synapse.mediators.elementary with parameters of type MessageContext Modifier and Type Method Description ArrayList<org.apache.axiom.om.OMNode>
Source. evaluate(MessageContext synCtx, SynapseLog synLog)
com.google.gson.JsonElement
Source. evaluateJson(MessageContext synCtx, SynapseLog synLog, com.google.gson.JsonElement sourcePropertyJson)
This method will evaluate a specified source json element.void
Target. insert(MessageContext synContext, ArrayList<org.apache.axiom.om.OMNode> sourceNodeList, SynapseLog synLog)
void
Target. insertJson(MessageContext synCtx, Object sourceJsonElement, SynapseLog synLog)
This method will insert a provided json element to a specified target.boolean
EnrichMediator. mediate(MessageContext synCtx)
void
Target. removeJsonFromBody(MessageContext synCtx, SynapsePath jsonPath)
This method will remove all the matching elements of the given jsonPath from the JSON payload in the msg context.void
Target. removeJsonFromProperty(MessageContext synCtx, String property, SynapsePath jsonPath)
This method will remove all the matching elements of the given jsonPath from the JSON payload in the property and set the result back to the same property.void
Target. renameKey(MessageContext synapseContext, String jsonPath, String keyName, String newKeyName)
Renames a json key name at the specified json path with a new key namevoid
Target. setProperty(String scope, MessageContext messageContext, Object documentElement)
Sets the property value in appropriate message context -
Uses of MessageContext in org.apache.synapse.mediators.eventing
Methods in org.apache.synapse.mediators.eventing with parameters of type MessageContext Modifier and Type Method Description boolean
EventPublisherMediator. mediate(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.mediators.ext
Methods in org.apache.synapse.mediators.ext with parameters of type MessageContext Modifier and Type Method Description boolean
AnnotatedCommandMediator. mediate(MessageContext synCtx)
boolean
ClassMediator. mediate(MessageContext synCtx)
Don't use a new instance...boolean
POJOCommandMediator. mediate(MessageContext synCtx)
Implements the mediate method of the Mediator interface. -
Uses of MessageContext in org.apache.synapse.mediators.filters
Methods in org.apache.synapse.mediators.filters with parameters of type MessageContext Modifier and Type Method Description boolean
FilterMediator. mediate(MessageContext synCtx)
Executes the list of sub/child mediators, if the filter condition is satisfiedboolean
FilterMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
boolean
InMediator. mediate(MessageContext synCtx)
Executes the list of sub/child mediators, if the filter condition is satisfiedboolean
InMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
boolean
OutMediator. mediate(MessageContext synCtx)
Executes the list of sub/child mediators, if the filter condition is satisfiedboolean
OutMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
boolean
SwitchMediator. mediate(MessageContext synCtx)
Iterate over switch cases and find match and execute selected sequenceboolean
SwitchMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
Integer
InMediator. reportOpenStatistics(MessageContext messageContext, boolean isContentAltering)
Integer
OutMediator. reportOpenStatistics(MessageContext messageContext, boolean isContentAltering)
boolean
FilterMediator. test(MessageContext synCtx)
Tests the supplied condition after evaluation against the given XPath or Regex (against a source XPath).boolean
InMediator. test(MessageContext synCtx)
Apply mediation only on request messagesboolean
OutMediator. test(MessageContext synCtx)
Apply mediation only on response messages -
Uses of MessageContext in org.apache.synapse.mediators.filters.router
Methods in org.apache.synapse.mediators.filters.router with parameters of type MessageContext Modifier and Type Method Description boolean
ConditionalRouterMediator. mediate(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.mediators.store
Methods in org.apache.synapse.mediators.store with parameters of type MessageContext Modifier and Type Method Description boolean
MessageStoreMediator. mediate(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.mediators.template
Methods in org.apache.synapse.mediators.template with parameters of type MessageContext Modifier and Type Method Description boolean
InvokeMediator. mediate(MessageContext synCtx)
boolean
InvokeMediator. mediate(MessageContext synCtx, ContinuationState continuationState)
boolean
TemplateMediator. mediate(MessageContext synCtx)
void
TemplateMediator. popFuncContextFrom(MessageContext synCtx)
void
TemplateContext. setupParams(MessageContext synCtxt)
evaluate raw parameters passed from an invoke medaiator and store them in this context -
Uses of MessageContext in org.apache.synapse.mediators.transaction
Methods in org.apache.synapse.mediators.transaction with parameters of type MessageContext Modifier and Type Method Description boolean
TransactionMediator. mediate(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.mediators.transform
Methods in org.apache.synapse.mediators.transform with parameters of type MessageContext Modifier and Type Method Description boolean
FaultMediator. mediate(MessageContext synCtx)
boolean
HeaderMediator. mediate(MessageContext synCtx)
Sets/Removes a SOAP header on the current messageboolean
PayloadFactoryMediator. mediate(MessageContext synCtx)
Contains 2 paths - one when JSON Streaming is in use (mediateJsonStreamPayload) and the other for regular builders (mediatePayload).boolean
XSLTMediator. mediate(MessageContext synCtx)
Transforms this message (or its element specified as the source) using the given XSLT transformation -
Uses of MessageContext in org.apache.synapse.mediators.transform.pfutils
Methods in org.apache.synapse.mediators.transform.pfutils with parameters of type MessageContext Modifier and Type Method Description protected HashMap<String,ArgumentDetails>[]
TemplateProcessor. getArgValues(String mediaType, MessageContext synCtx)
Goes through SynapsePath argument list, evaluating each by calling stringValueOf and returns a HashMap String, String array where each item will contain a hash map with key "evaluated expression" and value "SynapsePath type".protected String
TemplateProcessor. prepareReplacementValue(String mediaType, MessageContext synCtx, Map.Entry<String,ArgumentDetails> replacementEntry)
Preprocess and converty types of the given arg value.String
FreeMarkerTemplateProcessor. processTemplate(String template, String mediaType, MessageContext messageContext)
String
RegexTemplateProcessor. processTemplate(String template, String mediaType, MessageContext synCtx)
abstract String
TemplateProcessor. processTemplate(String template, String mediaType, MessageContext synCtx)
Process the given template and return the output as String -
Uses of MessageContext in org.apache.synapse.mediators.transform.url
Methods in org.apache.synapse.mediators.transform.url with parameters of type MessageContext Modifier and Type Method Description void
RewriteAction. execute(URIFragments fragments, MessageContext messageContext)
boolean
URLRewriteMediator. mediate(MessageContext messageContext)
void
RewriteRule. rewrite(URIFragments fragments, MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.message
Methods in org.apache.synapse.message that return MessageContext Modifier and Type Method Description MessageContext
MessageConsumer. receive()
Receives the next message from the store.Methods in org.apache.synapse.message with parameters of type MessageContext Modifier and Type Method Description boolean
MessageProducer. storeMessage(MessageContext synCtx)
Stores the given message to the store associated with this message consumer. -
Uses of MessageContext in org.apache.synapse.message.processor
Methods in org.apache.synapse.message.processor that return MessageContext Modifier and Type Method Description MessageContext
Service. fetch(MessageConsumer msgConsumer)
This method has the responsibility of fetching message from the message store.Methods in org.apache.synapse.message.processor with parameters of type MessageContext Modifier and Type Method Description boolean
Service. dispatch(MessageContext msgCtx)
This has the responsibility of dispatching the fetched message from the message store to the client.static void
MessageProcessorUtils. removeStatisticsReportingEventHolder(MessageContext messageContext)
Since the request stored in the store and consumed by the processor are considered as separate requests we need to remove the existing StatisticsReportingEventHolder object -
Uses of MessageContext in org.apache.synapse.message.processor.impl.failover
Methods in org.apache.synapse.message.processor.impl.failover that return MessageContext Modifier and Type Method Description MessageContext
FailoverForwardingService. fetch(MessageConsumer msgConsumer)
Receives the next message from the message store.Methods in org.apache.synapse.message.processor.impl.failover with parameters of type MessageContext Modifier and Type Method Description void
FailoverForwardingService. dispatch(MessageContext messageContext)
Sends the message to a given message store.void
FailoverForwardingService. sendThroughDeactivateSeq(MessageContext msgCtx)
Sending the out message through the deactivate sequence.void
FailoverForwardingService. sendThroughFaultSeq(MessageContext msgCtx)
Sending the out message through the fault sequence. -
Uses of MessageContext in org.apache.synapse.message.processor.impl.forwarder
Methods in org.apache.synapse.message.processor.impl.forwarder that return MessageContext Modifier and Type Method Description MessageContext
ForwardingService. fetch()
Receives the next message from the message store.Methods in org.apache.synapse.message.processor.impl.forwarder with parameters of type MessageContext Modifier and Type Method Description void
ForwardingService. dispatch(MessageContext messageContext)
Sends the message to a given endpoint.void
ForwardingService. sendThroughDeactivateSeq(MessageContext msgCtx)
Sending the out message through the deactivate sequence.void
ForwardingService. sendThroughFaultSeq(MessageContext msgCtx)
Sending the out message through the fault sequence.boolean
ForwardingService. sendThroughReplySeq(MessageContext outCtx)
Sending the out message through the reply sequence. -
Uses of MessageContext in org.apache.synapse.message.processor.impl.sampler
Methods in org.apache.synapse.message.processor.impl.sampler that return MessageContext Modifier and Type Method Description MessageContext
SamplingService. fetch()
Receives the next message from the message store.Methods in org.apache.synapse.message.processor.impl.sampler with parameters of type MessageContext Modifier and Type Method Description void
SamplingService. dispatch(MessageContext messageContext)
Sends the message to a given sequence. -
Uses of MessageContext in org.apache.synapse.message.senders.blocking
Methods in org.apache.synapse.message.senders.blocking that return MessageContext Modifier and Type Method Description MessageContext
BlockingMsgSender. send(Endpoint endpoint, MessageContext synapseInMsgCtx)
Methods in org.apache.synapse.message.senders.blocking with parameters of type MessageContext Modifier and Type Method Description static void
BlockingMsgSenderUtils. fillClientOptions(EndpointDefinition endpoint, org.apache.axis2.client.Options clientOptions, MessageContext synapseInMsgCtx)
Fill client options extracting properties from the original message context and endpoint definitionstatic void
BlockingMsgSenderUtils. fillMessageContext(EndpointDefinition endpoint, org.apache.axis2.context.MessageContext axisOutMsgCtx, MessageContext synapseInMsgCtx)
Fill the target message context extracting the required properties of the original message context and the endpointvoid
BlockingMsgSender. send(EndpointDefinition endpointDefinition, MessageContext synapseInMsgCtx)
Blocking InvocationMessageContext
BlockingMsgSender. send(Endpoint endpoint, MessageContext synapseInMsgCtx)
-
Uses of MessageContext in org.apache.synapse.message.store
Methods in org.apache.synapse.message.store that return MessageContext Modifier and Type Method Description MessageContext
MessageStore. get(int index)
Return the Message in given index position (this may depend on the implementation)MessageContext
MessageStore. get(String messageId)
Get the Message with the given ID from the Message store without removing itMessageContext
MessageStore. remove()
Retrieves and removes the first Message in this store.MessageContext
MessageStore. remove(String messageID)
Delete and return the MessageContext with given Message idMethods in org.apache.synapse.message.store that return types with arguments of type MessageContext Modifier and Type Method Description List<MessageContext>
MessageStore. getAll()
Get the All messages in the Message store without removing them from the queue -
Uses of MessageContext in org.apache.synapse.message.store.impl.commons
Methods in org.apache.synapse.message.store.impl.commons that return MessageContext Modifier and Type Method Description static MessageContext
MessageConverter. toMessageContext(StorableMessage message, org.apache.axis2.context.MessageContext axis2Ctx, MessageContext synCtx)
Converts a message read from the message store to a Synapse Message Context object.Methods in org.apache.synapse.message.store.impl.commons with parameters of type MessageContext Modifier and Type Method Description static MessageContext
MessageConverter. toMessageContext(StorableMessage message, org.apache.axis2.context.MessageContext axis2Ctx, MessageContext synCtx)
Converts a message read from the message store to a Synapse Message Context object.static StorableMessage
MessageConverter. toStorableMessage(MessageContext synCtx)
Converts a Synapse Message Context to a representation that can be stored in the Message store queue. -
Uses of MessageContext in org.apache.synapse.message.store.impl.jdbc
Methods in org.apache.synapse.message.store.impl.jdbc that return MessageContext Modifier and Type Method Description protected MessageContext
JDBCMessageStore. deserializeMessage(byte[] msgObj)
Will convert the byte[] message to store-able message.MessageContext
JDBCMessageStore. get(int position)
Get the message at given position Only can be done with MYSQL, and no use-case in current implementationMessageContext
JDBCMessageStore. get(String msgId)
Return the first element with given msg_idMessageContext
JDBCMessageStore. peek()
Select and return the first element in current tableMessageContext
JDBCConsumer. receive()
Select and return the first element in current tableMessageContext
JDBCMessageStore. remove()
Removes the first element from tableMessageContext
JDBCMessageStore. remove(String msgId)
Remove the message with given msg_idMethods in org.apache.synapse.message.store.impl.jdbc that return types with arguments of type MessageContext Modifier and Type Method Description List<MessageContext>
JDBCMessageStore. getAll()
Get all messages in the tableMethods in org.apache.synapse.message.store.impl.jdbc with parameters of type MessageContext Modifier and Type Method Description protected Statement
JDBCMessageStore. getStoreMessageStatement(MessageContext messageContext, Long sequenceId)
Generates the statement to store message in database.boolean
JDBCMessageStore. store(MessageContext messageContext)
Add a message to the end of the table.boolean
JDBCProducer. storeMessage(MessageContext synCtx)
Add a message to the end of the table. -
Uses of MessageContext in org.apache.synapse.message.store.impl.jms
Methods in org.apache.synapse.message.store.impl.jms that return MessageContext Modifier and Type Method Description MessageContext
JmsStore. get(int index)
MessageContext
JmsStore. get(String messageId)
MessageContext
JmsStore. newSynapseMc(org.apache.axis2.context.MessageContext msgCtx)
MessageContext
JmsConsumer. receive()
MessageContext
JmsStore. remove()
JMS Message store does not support following operations.MessageContext
JmsStore. remove(String messageID)
Methods in org.apache.synapse.message.store.impl.jms that return types with arguments of type MessageContext Modifier and Type Method Description List<MessageContext>
JmsStore. getAll()
Methods in org.apache.synapse.message.store.impl.jms with parameters of type MessageContext Modifier and Type Method Description boolean
JmsProducer. storeMessage(MessageContext synCtx)
-
Uses of MessageContext in org.apache.synapse.message.store.impl.memory
Methods in org.apache.synapse.message.store.impl.memory that return MessageContext Modifier and Type Method Description MessageContext
InMemoryStore. get(int index)
MessageContext
InMemoryStore. get(String messageId)
MessageContext
InMemoryConsumer. receive()
MessageContext
InMemoryStore. remove()
MessageContext
InMemoryStore. remove(String messageID)
Methods in org.apache.synapse.message.store.impl.memory that return types with arguments of type MessageContext Modifier and Type Method Description List<MessageContext>
InMemoryStore. getAll()
Methods in org.apache.synapse.message.store.impl.memory with parameters of type MessageContext Modifier and Type Method Description boolean
InMemoryProducer. storeMessage(MessageContext synCtx)
Method parameters in org.apache.synapse.message.store.impl.memory with type arguments of type MessageContext Modifier and Type Method Description InMemoryConsumer
InMemoryConsumer. setDestination(Queue<MessageContext> queue)
InMemoryProducer
InMemoryProducer. setDestination(Queue<MessageContext> queue)
-
Uses of MessageContext in org.apache.synapse.message.store.impl.rabbitmq
Methods in org.apache.synapse.message.store.impl.rabbitmq that return MessageContext Modifier and Type Method Description MessageContext
RabbitMQStore. get(int index)
MessageContext
RabbitMQStore. get(String messageId)
MessageContext
RabbitMQStore. newSynapseMc(org.apache.axis2.context.MessageContext msgCtx)
MessageContext
RabbitMQConsumer. receive()
Get a single message from the queue and deserialize for set into the message contextMessageContext
RabbitMQStore. remove()
MessageContext
RabbitMQStore. remove(String messageID)
Methods in org.apache.synapse.message.store.impl.rabbitmq that return types with arguments of type MessageContext Modifier and Type Method Description List<MessageContext>
RabbitMQStore. getAll()
Methods in org.apache.synapse.message.store.impl.rabbitmq with parameters of type MessageContext Modifier and Type Method Description boolean
RabbitMQProducer. storeMessage(MessageContext synCtx)
Store the given message into the queue and return whether the operation success or not -
Uses of MessageContext in org.apache.synapse.message.store.impl.resequencer
Methods in org.apache.synapse.message.store.impl.resequencer that return MessageContext Modifier and Type Method Description MessageContext
ResequenceMessageStore. peek()
Select and return the first element in current tableMethods in org.apache.synapse.message.store.impl.resequencer with parameters of type MessageContext Modifier and Type Method Description protected Statement
ResequenceMessageStore. getStoreMessageStatement(MessageContext context, Long sequenceId)
Stores message in database by providing the correct sequence id. -
Uses of MessageContext in org.apache.synapse.rest
Methods in org.apache.synapse.rest with parameters of type MessageContext Modifier and Type Method Description static String
RESTUtils. getFullRequestPath(MessageContext synCtx)
Deprecated.Replaced byApiUtils.getFullRequestPath(MessageContext)
static String
RESTUtils. getSubRequestPath(MessageContext synCtx)
Deprecated.Replaced byApiUtils.getSubRequestPath(MessageContext)
boolean
Handler. handleRequest(MessageContext messageContext)
boolean
Handler. handleResponse(MessageContext messageContext)
static void
RESTUtils. populateQueryParamsToMessageContext(MessageContext synCtx)
Deprecated.boolean
RESTRequestHandler. process(MessageContext synCtx)
Deprecated.Attempt to process the given message through one of the available APIs. -
Uses of MessageContext in org.apache.synapse.util
Methods in org.apache.synapse.util that return MessageContext Modifier and Type Method Description static MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx)
This method does exactly whatMessageHelper.cloneMessageContext(MessageContext)
does, other than cloning the SOAP envelop based on thecloneSOAPEnvelope
argument.static MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope)
static MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope, boolean isCloneJson)
This method is similar toMessageHelper.cloneMessageContext(MessageContext, boolean, boolean, boolean, boolean)
In order to refactor the code, new method signature was created and this method calls the new methodstatic MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope, boolean isCloneJson, boolean isAggregate)
This method is similar toMessageHelper.cloneMessageContext(MessageContext, boolean, boolean, boolean, boolean)
other than always generating seperate correlation ids for the cloned message contextsstatic MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope, boolean isCloneJson, boolean isAggregate, boolean isCloneCorrelationId)
This method will simulate cloning the message context and creating an exact copy of the passed message.static MessageContext
MessageHelper. cloneMessageContextForAggregateMediator(MessageContext synCtx)
Deprecated.Methods in org.apache.synapse.util with parameters of type MessageContext Modifier and Type Method Description static void
CallMediatorEnrichUtil. buildMessage(MessageContext synCtx)
static MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx)
This method does exactly whatMessageHelper.cloneMessageContext(MessageContext)
does, other than cloning the SOAP envelop based on thecloneSOAPEnvelope
argument.static MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope)
static MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope, boolean isCloneJson)
This method is similar toMessageHelper.cloneMessageContext(MessageContext, boolean, boolean, boolean, boolean)
In order to refactor the code, new method signature was created and this method calls the new methodstatic MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope, boolean isCloneJson, boolean isAggregate)
This method is similar toMessageHelper.cloneMessageContext(MessageContext, boolean, boolean, boolean, boolean)
other than always generating seperate correlation ids for the cloned message contextsstatic MessageContext
MessageHelper. cloneMessageContext(MessageContext synCtx, boolean cloneSoapEnvelope, boolean isCloneJson, boolean isAggregate, boolean isCloneCorrelationId)
This method will simulate cloning the message context and creating an exact copy of the passed message.static MessageContext
MessageHelper. cloneMessageContextForAggregateMediator(MessageContext synCtx)
Deprecated.static void
ConcurrencyThrottlingUtils. decrementConcurrencyThrottleAccessController(MessageContext synCtx)
Decrement the internal counter for concurrency throttling, in case of normal response retrieval, delayed response at synapse timeout, exceptional cases while mediation end up trigger fault.static void
CallMediatorEnrichUtil. doEnrich(MessageContext synCtx, Source source, Target target, String sourceContentType)
static DataHandler
PayloadHelper. getBinaryPayload(MessageContext mc)
static String
InlineExpressionUtil. getDynamicValue(MessageContext messageContext, String expression)
Get dynamic value for the expressionstatic SynapseLog
CallMediatorEnrichUtil. getLog(MessageContext synCtx)
static SimpleMap
PayloadHelper. getMapPayload(MessageContext mc)
static int
PayloadHelper. getPayloadType(MessageContext mc)
static org.apache.neethi.Policy
MessageHelper. getPolicy(MessageContext synCtx, String propertyKey)
Get the Policy object for the given name from the Synapse configuration at runtimestatic XMLStreamReader
PayloadHelper. getStAXPayload(MessageContext mc)
static String
PayloadHelper. getTextPayload(MessageContext mc)
static void
CallMediatorEnrichUtil. handleException(String msg, Exception e, MessageContext msgContext)
static void
CallMediatorEnrichUtil. handleException(String msg, MessageContext msgContext)
static void
CallMediatorEnrichUtil. preservetransportHeaders(MessageContext synMsgCtx, Map originalTransportHeaders)
static String
InlineExpressionUtil. replaceDynamicValues(MessageContext messageContext, String inlineText)
Replaces Dynamic Values represented by expressions in inline textstatic String
InlineExpressionUtil. replaceDynamicValuesForJSONPath(MessageContext messageContext, String inlineText)
Replaces Dynamic Values represented by expressions inside json-eval.static void
MediatorPropertyUtils. serializeOMElement(MessageContext msgCtx)
This method just serializes the OMElement, when setting a message type, we need to serialize to access the inner element.static void
PayloadHelper. setBinaryPayload(MessageContext mc, DataHandler dh)
static void
CallMediatorEnrichUtil. setContentType(MessageContext synCtx, String targetMessageType, String targetContentType)
static void
PayloadHelper. setMapPayload(MessageContext mc, SimpleMap map)
static void
PayloadHelper. setStAXPayload(MessageContext mc, XMLStreamReader streamReader)
static void
PayloadHelper. setTextPayload(MessageContext mc, String text)
static void
MessageHelper. setWireLogHolderProperties(MessageContext synCtx, boolean isBreakPoint, SynapseMediationFlowPoint mediationFlowPoint)
This method is to set mediatorId property to axis2 message context.static void
PayloadHelper. setXMLPayload(MessageContext mc, org.apache.axiom.om.OMElement element)
static void
MediatorPropertyUtils. updateSendToUrlForMockServices(EndpointDefinition endpoint, MessageContext synapseOutMessageContext, org.apache.axis2.context.MessageContext axisOutMsgCtx)
Updates the message context To address with mock URL if mock service exists in unit test mode. -
Uses of MessageContext in org.apache.synapse.util.jaxp
Methods in org.apache.synapse.util.jaxp with parameters of type MessageContext Modifier and Type Method Description void
SchemaResourceResolver. setMessageContext(MessageContext messageContext)
Constructors in org.apache.synapse.util.jaxp with parameters of type MessageContext Constructor Description SchemaResourceResolver(SynapseConfiguration synCfg, ResourceMap resourceMap, MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.util.logging
Methods in org.apache.synapse.util.logging with parameters of type MessageContext Modifier and Type Method Description static String
LoggingUtils. getFormattedLog(MessageContext synCtx, Object msg)
-
Uses of MessageContext in org.apache.synapse.util.resolver
Methods in org.apache.synapse.util.resolver with parameters of type MessageContext Modifier and Type Method Description InputSource
ResourceMap. resolve(SynapseConfiguration synCfg, String location, MessageContext messageContext)
Resolve a resource for a given location.void
CustomJAXPURIResolver. setMessageContext(MessageContext messageContext)
-
Uses of MessageContext in org.apache.synapse.util.xpath
Methods in org.apache.synapse.util.xpath with parameters of type MessageContext Modifier and Type Method Description boolean
SynapseJsonPath. booleanValueOf(MessageContext synCtx)
This method will return the boolean value of the jsonpath.Object
SynapseXPath. evaluate(Object primaryContext, MessageContext secondaryContext)
Specialized form of xpath evaluation function.An xpath evaluate() will be performed using two contexts (ie:-soap-envelope and on Synapse Message Context).String
SynapseXPath. evaluateDOMXPath(MessageContext synCtx)
org.apache.axiom.om.OMNode
SourceXPathSupport. selectOMNode(MessageContext synCtx, SynapseLog synLog)
Get the first node selected by the configured XPath expression.void
DOMSynapseXPathVariableResolver. setSynCtx(MessageContext synCtx)
void
GetPropertyFunctionResolver. setSynCtx(MessageContext synCtx)
String
SynapseJsonPath. stringValueOf(MessageContext synCtx)
String
SynapseXPath. stringValueOf(MessageContext synCtx)
Evaluates the XPath expression against the MessageContext of the current message and returns a String representation of the resultConstructors in org.apache.synapse.util.xpath with parameters of type MessageContext Constructor Description DOMSynapseXPathVariableResolver(org.jaxen.VariableContext parentVariableContext, MessageContext synCtx)
GetPropertyFunctionResolver(MessageContext synCtx)
SynapseXPathFunctionContext(org.jaxen.FunctionContext parent, MessageContext synCtx)
Initialises the function contextSynapseXPathVariableContext(org.jaxen.VariableContext parent, MessageContext synCtx)
Initializes theSynapseVariableContext
with the specified contextSynapseXPathVariableContext(org.jaxen.VariableContext parent, MessageContext synCtx, org.apache.axiom.soap.SOAPEnvelope env)
Initializes theSynapseVariableContext
with the specified envelope -
Uses of MessageContext in org.apache.synapse.util.xpath.ext
Methods in org.apache.synapse.util.xpath.ext with parameters of type MessageContext Modifier and Type Method Description static org.jaxen.Function
XpathExtensionUtil. getFunctionContext(MessageContext ctxt, String namespaceURI, String prefix, String localName)
Returns a Function Context extension registered for given QName/namespaceURI+prefix+localName combinationorg.jaxen.Function
SynapseXpathFunctionContextProvider. getInitializedExtFunction(MessageContext msgCtxt)
This method should implement instatntiation code for custom xpath function for the registered QNames given by #getResolvingQName().Note that this extension provider is responsible for initalizing custom xpath function and returning a fresh function instance to Synapse.Object
SynapseXpathVariableResolver. resolve(MessageContext msgCtxt)
This method should implement the resolving code for custom xpath variable for the registered QName given by #getResolvingQName().static Object
XpathExtensionUtil. resolveVariableContext(MessageContext ctxt, String namespaceURI, String prefix, String localName)
Returns an object resolved by Variable Context extension registered for given QName/namespaceURI+prefix+localName combination
-