Package org.apache.synapse

Examples of org.apache.synapse.SynapseLog.traceOrDebug()


                synLog.traceTrace("Message : " + synCtx.getEnvelope());
            }
        }

        if (!(synCtx instanceof Axis2MessageContext)) {
            synLog.traceOrDebug("Only axis2 message contexts are supported");

        } else {
            Axis2MessageContext axis2MessageCtx = (Axis2MessageContext) synCtx;
            org.apache.axis2.context.MessageContext orgMessageCtx =
                axis2MessageCtx.getAxis2MessageContext();
View Full Code Here


            if (isSingle()) {
                orgMessageCtx.getOptions().setProperty(
                    SandeshaClientConstants.LAST_MESSAGE, "true");

                if (synLog.isTraceOrDebugEnabled()) {
                    synLog.traceOrDebug("Using WS-RM version " + version);
                }

            } else {

                String correlationValue = getCorrelationValue(synCtx);
View Full Code Here

                        SandeshaClientConstants.LAST_MESSAGE, "true");
                    sequenceMap.remove(correlationValue);
                }

                if (synLog.isTraceOrDebugEnabled()) {
                    synLog.traceOrDebug("Correlation value : " + correlationValue +
                            " last message = " + lastMessage + " using sequence : " + sequenceID +
                            (offeredSeqID != null ? " offering sequence : " + offeredSeqID : ""));
                }
            }
        }
View Full Code Here

                            (offeredSeqID != null ? " offering sequence : " + offeredSeqID : ""));
                }
            }
        }

        synLog.traceOrDebug("End : RMSequence mediator");
        return true;
    }

    private String retrieveSequenceID(String correlationValue) {
        String sequenceID;
View Full Code Here

    public boolean mediate(MessageContext synCtx) {

         SynapseLog synLog = getLog(synCtx);

        if (synLog.isTraceOrDebugEnabled()) {
            synLog.traceOrDebug("Start : Drop mediator");

            if (synLog.isTraceTraceEnabled()) {
                synLog.traceTrace("Message : " + synCtx.getEnvelope());
            }
        }
View Full Code Here

        if (synCtx.isResponse()) {
            StatisticsReporter.reportForAllOnOutFlowEnd(synCtx);
        }

        if (synLog.isTraceOrDebugEnabled()) {
            synLog.traceOrDebug("End : Drop mediator");
        }

        return false;
    }
}
View Full Code Here

    public boolean mediate(MessageContext synCtx) {

        SynapseLog synLog = getLog(synCtx);

        if (synLog.isTraceOrDebugEnabled()) {
            synLog.traceOrDebug("Start : Cache mediator");

            if (synLog.isTraceTraceEnabled()) {
                synLog.traceTrace("Message : " + synCtx.getEnvelope());
            }
        }
View Full Code Here

            try {
                MessageHelper.cloneSOAPEnvelope(synCtx.getEnvelope()).serialize(fbaos);
            } catch (XMLStreamException e) {
                handleException("Error in checking the message size", e, synCtx);
            } catch (SynapseException syne) {
                synLog.traceOrDebug("Message size exceeds the upper bound for caching, " +
                            "request will not be cached");
                return true;
            }
        }
View Full Code Here

                + " ConfigurationContext cannot be found", synCtx);
            return false; // never executes.. but keeps IDE happy
        }

        if (synLog.isTraceOrDebugEnabled()) {
            synLog.traceOrDebug("Looking up cache at scope : " + scope + " with ID : "
                    + cacheKey);
        }

        // look up cache
        Object prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
View Full Code Here

                prop = cfgCtx.getPropertyNonReplicable(CachingConstants.CACHE_MANAGER);
                if (prop != null && prop instanceof CacheManager) {
                    cacheManager = (CacheManager) prop;

                } else {
                    synLog.traceOrDebug("Creating/recreating the cache object");
                    cacheManager = new CacheManager();
                    cfgCtx.setProperty(CachingConstants.CACHE_MANAGER, cacheManager);
                }
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.