Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.endpoint
Class DynamicOutboundEndpoint

    java.lang.Object
      org.mule.endpoint.DynamicURIOutboundEndpoint
          org.mule.endpoint.DynamicOutboundEndpoint

All Implemented Interfaces:
  Serializable, ImmutableEndpoint, OutboundEndpoint, MessageProcessor

Direct Known Subclasses:
  CallOutboundEndpoint

    public class DynamicOutboundEndpoint

extends DynamicURIOutboundEndpoint

An Outbound endpoint who's URI will be constructed based on the current message. This allows for the destination of a message to change based on the contents of the message. Note that this endpoint ONLY substitutes the URI, but other config elements such as the connector (and scheme), transformers, filters, etc do not change. You cannot change an endpoint scheme dynamically so you can't switch between HTTP and JMS for example using the same dynamic endpoint.

See Also:
  Serialized Form

Nested Class Summary
`protected static class` | `DynamicOutboundEndpoint.NullOutboundEndpoint`

Field Summary
`static String` | `DYNAMIC_URI_PLACEHOLDER`
`protected Log` | `logger` logger used by this class
`protected String` | `uriTemplate` The URI template used to construct the actual URI to send the message to.

Fields inherited from class org.mule.endpoint.DynamicURIOutboundEndpoint
`endpoint`

Fields inherited from interface org.mule.api.endpoint.ImmutableEndpoint
`INITIAL_STATE_STARTED, INITIAL_STATE_STOPPED`

Constructor Summary
`DynamicOutboundEndpoint(MuleContext muleContext, EndpointBuilder builder, String uriTemplate)`

Method Summary
`boolean` | `equals(Object o)`
`protected EndpointURI` | `getEndpointURIForMessage(MuleEvent event)`
`int` | `hashCode()`
`protected String` | `parseURIString(String uri, MuleMessage message)`
`MuleEvent` | `process(MuleEvent event)` Invokes the MessageProcessor.
`protected void` | `validateUriTemplate(String uri)`

Methods inherited from class org.mule.endpoint.DynamicURIOutboundEndpoint
`getConnector, getEncoding, getEndpointBuilderName, getEndpointURI, getExchangePattern, getFilter, getInitialState, getMessageProcessors, getMessageProcessorsFactory, getMimeType, getMuleContext, getName, getProperties, getProperty, getProtocol, getResponseMessageProcessors, getResponseProperties, getResponseTimeout, getResponseTransformers, getRetryPolicyTemplate, getSecurityFilter, getTransactionConfig, getTransformers, isDeleteUnacceptedMessages, isDisableTransportTransformer, isProtocolSupported, isReadOnly, setEndpointURI`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DYNAMIC_URI_PLACEHOLDER

    public static final String DYNAMIC_URI_PLACEHOLDER

See Also:
  Constant Field Values

### logger

    protected final transient Log logger

  logger used by this class

### uriTemplate

    protected String uriTemplate

  The URI template used to construct the actual URI to send the message to.

Constructor Detail

### DynamicOutboundEndpoint

    public DynamicOutboundEndpoint(MuleContext muleContext,
                                   EndpointBuilder builder,
                                   String uriTemplate)
                            throws MalformedEndpointException

Throws:
  `MalformedEndpointException`

Method Detail

### validateUriTemplate

    protected void validateUriTemplate(String uri)
                                throws MalformedEndpointException

  Throws:
    `MalformedEndpointException`

### getEndpointURIForMessage

    protected EndpointURI getEndpointURIForMessage(MuleEvent event)
                                            throws DispatchException

  Throws:
    `DispatchException`

### parseURIString

    protected String parseURIString(String uri,
                                    MuleMessage message)

### process

    public MuleEvent process(MuleEvent event)
                      throws MuleException

  Description copied from interface: `MessageProcessor`
  Invokes the MessageProcessor.

  Specified by:
    `process` in interface `MessageProcessor`
  Overrides:
    `process` in class `DynamicURIOutboundEndpoint`
  Parameters:
    `event` - MuleEvent to be processed
  Returns:
    optional response MuleEvent
  Throws:
    `MuleException`

### equals

    public boolean equals(Object o)

  Overrides:
    `equals` in class `DynamicURIOutboundEndpoint`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `DynamicURIOutboundEndpoint`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.