public EndpointURI getEndpointURI() { if (dynamicEndpointURI != null) { return dynamicEndpointURI; } else { return endpoint.getEndpointURI(); } }
@Override public EndpointURI getEndpointURI() { return realEndpoint.getEndpointURI(); }
/** * Should be a 1 line description of the agent */ @Override public String getDescription() { StringBuilder buf = new StringBuilder(); buf.append(getName()).append(": "); if (endpoint != null) { buf.append("Forwarding notifications to: ").append(endpoint.getEndpointURI().getAddress()); } return buf.toString(); }
protected void returnDispatcher(OutboundEndpoint endpoint, MessageDispatcher dispatcher) { if (endpoint != null && dispatcher != null) { if (logger.isDebugEnabled()) { logger.debug("Returning dispatcher for endpoint: " + endpoint.getEndpointURI() + " = " + dispatcher.toString()); } try { dispatchers.returnObject(endpoint, dispatcher); } catch (Exception e) { // ignore - if the dispatcher is broken, it will likely get cleaned // up by the factory logger.error("Failed to dispose dispatcher for endpoint: " + endpoint + ". This will cause a memory leak. Please report to", e); } } }
private void processCookies(Object cookieObject, String policy, MuleEvent event) { URI uri = this.getEndpoint().getEndpointURI().getUri(); CookieHelper.addCookiesToClient(this.client, cookieObject, policy, event, uri); }
+ ((OutboundEndpoint) route).getEndpointURI()); if (route instanceof OutboundEndpoint) buf.append(" for endpoint: ").append(((OutboundEndpoint) route).getEndpointURI());
public MuleEvent process(MuleEvent event) throws MuleException { event.getMessage().setOutboundProperty(MuleProperties.MULE_ENDPOINT_PROPERTY, endpoint.getEndpointURI().toString()); if (endpoint.getProperties() != null) { for (Iterator<?> iterator = endpoint.getProperties().keySet().iterator(); iterator.hasNext();) { String prop = (String) iterator.next(); Object value = endpoint.getProperties().get(prop); // don't overwrite property on the message if (!ignoreProperty(event.getMessage(), prop)) { // inbound endpoint properties are in the invocation scope event.getMessage().setInvocationProperty(prop, value); } } } event = OptimizedRequestContext.unsafeSetEvent(event); return event; }
logger.debug("Message being sent to: " + ((OutboundEndpoint) route).getEndpointURI());
this.getProtocol(), endpoint.getEndpointURI().toString()).getMessage()); logger.debug("Borrowing a dispatcher for endpoint: " + endpoint.getEndpointURI()); logger.debug("Borrowed a dispatcher for endpoint: " + endpoint.getEndpointURI() + " = " + dispatcher.toString());
logger.debug("Message being sent to: " + ((OutboundEndpoint) route).getEndpointURI());
+ endpoint.getEndpointURI().toString());
logger.warn("Endpoint not started: " + endpoint.getEndpointURI() + ". Cannot dispatch notification: " + e); return;
throws MuleException, NoSuchMethodException, ClassNotFoundException EndpointURI endpointUri = outboundEndpoint.getEndpointURI(); String methodName = MapUtils.getString(endpointUri.getParams(), MuleProperties.MULE_METHOD_PROPERTY, null);
EndpointURI endpointURI = ep.getEndpointURI(); if (endpointURI != null && !newUri.getScheme().equalsIgnoreCase(endpointURI.getScheme())) CoreMessages.schemeCannotChangeForRouter(ep.getEndpointURI().getScheme(), newUri.getScheme()), event, ep);
logger.info("Failed to send/dispatch to endpoint: " + endpoint.getEndpointURI().toString() + ". Error was: " + e.getMessage() + ". Trying next endpoint");
String address = endpoint.getEndpointURI().getAddress(); String writeToDirectory = message.getOutboundProperty(FileConnector.PROPERTY_WRITE_TO_DIRECTORY); if (writeToDirectory == null)
requestChainBuilder.setName("OutboundEndpoint '" + endpoint.getEndpointURI().getUri() + "' request chain"); responseChainBuilder.setName("OutboundEndpoint '" + endpoint.getEndpointURI().getUri() + "' response chain"); compositeChainBuilder.setName("OutboundEndpoint '" + endpoint.getEndpointURI().getUri() + "' composite request/response chain"); compositeChainBuilder.chain(requestChainBuilder.build(), responseChainBuilder.build()); return compositeChainBuilder.build();
final String uriTemplate = outboundEndpoint.getEndpointURI().getUri().toString() + "#[variable:http.path.extension]";