org.mule.module.ibeans.spi.support
Class DynamicRequestEndpoint
java.lang.Object
org.mule.endpoint.DynamicURIInboundEndpoint
org.mule.module.ibeans.spi.support.DynamicRequestEndpoint
- All Implemented Interfaces:
- Serializable, FlowConstructAware, ImmutableEndpoint, InboundEndpoint, Startable, Stoppable, NamedObject, MessageSource, MessageRequesting
- Direct Known Subclasses:
- CallRequestEndpoint
public class DynamicRequestEndpoint
- extends DynamicURIInboundEndpoint
A dynamic request endpoint is used in conjunction with the Call
annotation when there are no Body
,
BodyParam
or HeaderParam
annotations
on a method and allows a dynamic InboundEndpoint
to be created. This endpoint is then used via the Mule MessageRequester
interface to make a specific request to a transport for a message.
- See Also:
- Serialized Form
Methods inherited from class org.mule.endpoint.DynamicURIInboundEndpoint |
createDefaultRedeliveryPolicy, getAddress, getConnector, getEncoding, getEndpointBuilderName, getEndpointURI, getExchangePattern, getFilter, getInitialState, getMessageProcessors, getMessageProcessorsFactory, getMimeType, getMuleContext, getName, getProperties, getProperty, getProtocol, getRedeliveryPolicy, getResponseMessageProcessors, getResponseTimeout, getResponseTransformers, getRetryPolicyTemplate, getSecurityFilter, getTransactionConfig, getTransformers, isDeleteUnacceptedMessages, isDisableTransportTransformer, isProtocolSupported, isReadOnly, request, setEndpointURI, setFlowConstruct, setListener, start, stop |
EVAL_PARAM_PROPERTY
public static final String EVAL_PARAM_PROPERTY
- See Also:
- Constant Field Values
logger
protected final transient Log logger
- logger used by this class
parser
protected TemplateParser parser
uriTemplate
protected String uriTemplate
- The URI template used to construct the actual URI to send the message to.
DynamicRequestEndpoint
public DynamicRequestEndpoint(MuleContext muleContext,
EndpointBuilder builder,
String uriTemplate)
throws MalformedEndpointException
- Throws:
MalformedEndpointException
validateUriTemplate
protected void validateUriTemplate(String uri)
throws MalformedEndpointException
- Throws:
MalformedEndpointException
getPropertiesForTemplate
protected Map<String,Object> getPropertiesForTemplate(MuleMessage message)
getEndpointURIForMessage
protected EndpointURI getEndpointURIForMessage(MuleEvent event)
throws MessagingException
- Throws:
MessagingException
parseURIString
protected String parseURIString(String uri,
MuleMessage message)
request
public MuleMessage request(long timeout,
MuleEvent event)
throws Exception
- Throws:
Exception
equals
public boolean equals(Object o)
- Overrides:
equals
in class DynamicURIInboundEndpoint
hashCode
public int hashCode()
- Overrides:
hashCode
in class DynamicURIInboundEndpoint
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.