Package org.apache.synapse.endpoints

Examples of org.apache.synapse.endpoints.Endpoint.send()


            Endpoint epr = synCtx.getConfiguration().getEndpoint(endpointRef);
            if (epr != null) {
                if (log.isDebugEnabled()) {
                    log.debug("Sending using the endpoint named : " + endpointRef);
                }
                epr.send(synCtx);
            } else {
                handleException("Couldn't find the endpoint named : " + endpointRef);
            }
        }
View Full Code Here


                    Endpoint endpoint = synCtx.getEndpoint(proxy.getTargetEndpoint());

                    if (endpoint != null) {
                        traceOrDebug(traceOn, "Forwarding message to the endpoint : "
                            + proxy.getTargetEndpoint());
                        endpoint.send(synCtx);

                    } else {
                        handleException("Unable to find the endpoint specified : " +
                            proxy.getTargetEndpoint(), synCtx);
                    }
View Full Code Here

        if (endpoint != null) {
            endpoint.send(synCtx);
        } else if (endpointRef != null) {
            Endpoint epr = synCtx.getConfiguration().getEndpoint(endpointRef);
            if (epr != null) {
                epr.send(synCtx);
            }
        }

    }
View Full Code Here

                    Endpoint endpoint = synCtx.getEndpoint(proxy.getTargetEndpoint());

                    if (endpoint != null) {
                        traceOrDebug(traceOn, "Forwarding message to the endpoint : "
                            + proxy.getTargetEndpoint());
                        endpoint.send(synCtx);

                    } else {
                        handleException("Unable to find the endpoint specified : " +
                            proxy.getTargetEndpoint(), synCtx);
                    }
View Full Code Here

        if (target.getEndpoint() != null) {
            target.getEndpoint().send(synCtx);
        } else if (target.getEndpointRef() != null) {
            Endpoint epr = synCtx.getConfiguration().getEndpoint(target.getEndpointRef());
            if (epr != null) {
                epr.send(synCtx);
            }
        }
    }

    public Pattern getMatch() {
View Full Code Here

                    Endpoint endpoint = synCtx.getEndpoint(proxy.getTargetEndpoint());

                    if (endpoint != null) {
                        traceOrDebug(traceOn, "Forwarding message to the endpoint : "
                            + proxy.getTargetEndpoint());
                        endpoint.send(synCtx);

                    } else {
                        handleException("Unable to find the endpoint specified : " +
                            proxy.getTargetEndpoint(), synCtx);
                    }
View Full Code Here

                                + proxy.getTargetEndpoint() + " after message mediation";
                        if (shouldTrace) {
                            trace.trace(msg);
                        }
                        log.debug(msg);
                        endpoint.send(synCtx);
                    } else {

                        log.error("Unable to find the endpoint for the proxy service " +
                                "specified by the name " + proxy.getTargetEndpoint());
                        throw new SynapseException("Unable to find the endpoint for the " +
View Full Code Here

        } else if (endpoint != null) {
            endpoint.send(synCtx);
        } else if (endpointRef != null) {
            Endpoint epr = synCtx.getConfiguration().getEndpoint(endpointRef);
            if (epr != null) {
                epr.send(synCtx);
            }
        }
    }

    ///////////////////////////////////////////////////////////////////////////////////////
View Full Code Here

                Endpoint endpoint = synCtx.getEndpoint(proxy.getTargetEndpoint());

                if (endpoint != null) {
                    traceOrDebug(traceOn, "Forwarding message to the endpoint : "
                        + proxy.getTargetEndpoint());
                    endpoint.send(synCtx);

                } else {
                    handleException("Unable to find the endpoint specified : " +
                        proxy.getTargetEndpoint(), synCtx);
                }
View Full Code Here

        try {
            if (log.isDebugEnabled()) {
                log.debug(String.format("Sending request to endpoint: %s", to.getAddress()));
            }
            endpoint.send(synCtx);

            // Increment in-flight request count
            incrementInFlightRequestCount(synCtx);
        } catch (Exception e) {
            if (e.getMessage().toLowerCase().contains("io reactor shutdown")) {
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.