public abstract class AbstractEndpoint extends AbstractAnnotatedObject implements ImmutableEndpoint, Disposable
ImmutableMuleEndpoint describes a Provider in the Mule Server. A
endpoint is a grouping of an endpoint, an endpointUri and a transformer.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger
logger used by this class
|
static String |
PROPERTY_PROCESS_SYNCHRONOUSLY |
protected RetryPolicyTemplate |
retryPolicyTemplate |
INITIAL_STATE_STARTED, INITIAL_STATE_STOPPEDPHASE_NAMEPROPERTY_NAME| Constructor and Description |
|---|
AbstractEndpoint(Connector connector,
EndpointURI endpointUri,
String name,
Map properties,
TransactionConfig transactionConfig,
boolean deleteUnacceptedMessages,
MessageExchangePattern messageExchangePattern,
int responseTimeout,
String initialState,
String endpointEncoding,
String endpointBuilderName,
MuleContext muleContext,
RetryPolicyTemplate retryPolicyTemplate,
AbstractRedeliveryPolicy redeliveryPolicy,
EndpointMessageProcessorChainFactory messageProcessorsFactory,
List<MessageProcessor> messageProcessors,
List<MessageProcessor> responseMessageProcessors,
boolean disableTransportTransformer,
String endpointMimeType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract MessageProcessor |
createMessageProcessorChain(FlowConstruct flowContruct) |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected static boolean |
equal(Object a,
Object b) |
boolean |
equals(Object obj) |
String |
getAddress()
This returns the address of the endpoint.
|
Connector |
getConnector()
The endpoint that will be used to send the message on.
|
String |
getEncoding()
Decides the encoding to be used for events received by this endpoint
|
String |
getEndpointBuilderName()
The name of the endpoint builder used to create this endpoint.
|
EndpointURI |
getEndpointURI()
This specifess the communication endpointUri.
|
MessageExchangePattern |
getExchangePattern() |
Filter |
getFilter()
The filter to apply to incoming messages.
|
String |
getInitialState()
Sets the state the endpoint will be loaded in.
|
MessageProcessor |
getMessageProcessorChain(FlowConstruct flowContruct) |
List<MessageProcessor> |
getMessageProcessors() |
EndpointMessageProcessorChainFactory |
getMessageProcessorsFactory() |
String |
getMimeType()
Return the mime type defined for the endpoint, if any
|
MuleContext |
getMuleContext() |
String |
getName()
Gets the name of the object
|
Map |
getProperties()
Returns any properties set on this endpoint
|
Object |
getProperty(Object key)
Retrieves a property set on the endpoint
|
String |
getProtocol()
The transport protocol name that the message endpoint communicates over.
|
AbstractRedeliveryPolicy |
getRedeliveryPolicy()
Return the endpoint's redelivery policy, if any
|
List<MessageProcessor> |
getResponseMessageProcessors() |
int |
getResponseTimeout()
The timeout value for remoteSync invocations
|
List<Transformer> |
getResponseTransformers()
Deprecated.
use getResponseMessageProcessors()
|
RetryPolicyTemplate |
getRetryPolicyTemplate()
The retry policy on the endpoint configures how retries are handled.
|
EndpointSecurityFilter |
getSecurityFilter()
Returns an EndpointSecurityFilter for this endpoint.
|
TransactionConfig |
getTransactionConfig()
Returns the transaction configuration for this endpoint
|
List<Transformer> |
getTransformers()
Deprecated.
use getMessageProcessors()
|
int |
hashCode() |
boolean |
isDeleteUnacceptedMessages()
If a filter is configured on this endpoint, this property will determine if
message that are not excepted by the filter are deleted
|
boolean |
isDisableTransportTransformer() |
boolean |
isProtocolSupported(String protocol) |
boolean |
isReadOnly() |
String |
toString() |
getAnnotation, getAnnotations, setAnnotationspublic static final String PROPERTY_PROCESS_SYNCHRONOUSLY
protected static final org.apache.commons.logging.Log logger
protected RetryPolicyTemplate retryPolicyTemplate
public AbstractEndpoint(Connector connector, EndpointURI endpointUri, String name, Map properties, TransactionConfig transactionConfig, boolean deleteUnacceptedMessages, MessageExchangePattern messageExchangePattern, int responseTimeout, String initialState, String endpointEncoding, String endpointBuilderName, MuleContext muleContext, RetryPolicyTemplate retryPolicyTemplate, AbstractRedeliveryPolicy redeliveryPolicy, EndpointMessageProcessorChainFactory messageProcessorsFactory, List<MessageProcessor> messageProcessors, List<MessageProcessor> responseMessageProcessors, boolean disableTransportTransformer, String endpointMimeType)
public EndpointURI getEndpointURI()
ImmutableEndpointgetEndpointURI in interface ImmutableEndpointpublic String getAddress()
ImmutableEndpointgetAddress in interface ImmutableEndpointpublic String getEncoding()
ImmutableEndpointgetEncoding in interface ImmutableEndpointpublic String getMimeType()
ImmutableEndpointgetMimeType in interface ImmutableEndpointpublic Connector getConnector()
ImmutableEndpointgetConnector in interface ImmutableEndpointpublic String getName()
NamedObjectgetName in interface NamedObjectpublic EndpointMessageProcessorChainFactory getMessageProcessorsFactory()
getMessageProcessorsFactory in interface ImmutableEndpointpublic List<MessageProcessor> getMessageProcessors()
getMessageProcessors in interface ImmutableEndpointpublic List<MessageProcessor> getResponseMessageProcessors()
getResponseMessageProcessors in interface ImmutableEndpointpublic List<Transformer> getTransformers()
ImmutableEndpointgetTransformers in interface ImmutableEndpointpublic Map getProperties()
ImmutableEndpointgetProperties in interface ImmutableEndpointpublic boolean isReadOnly()
isReadOnly in interface ImmutableEndpointpublic String getProtocol()
ImmutableEndpointgetProtocol in interface ImmutableEndpointpublic TransactionConfig getTransactionConfig()
ImmutableEndpointgetTransactionConfig in interface ImmutableEndpointpublic Filter getFilter()
ImmutableEndpointgetFilter in interface ImmutableEndpointpublic boolean isDeleteUnacceptedMessages()
ImmutableEndpointisDeleteUnacceptedMessages in interface ImmutableEndpointpublic EndpointSecurityFilter getSecurityFilter()
getSecurityFilter in interface ImmutableEndpointEndpointSecurityFilterpublic MessageExchangePattern getExchangePattern()
getExchangePattern in interface ImmutableEndpointpublic int getResponseTimeout()
getResponseTimeout in interface ImmutableEndpointpublic String getInitialState()
getInitialState in interface ImmutableEndpointpublic List<Transformer> getResponseTransformers()
ImmutableEndpointgetResponseTransformers in interface ImmutableEndpointpublic Object getProperty(Object key)
ImmutableEndpointgetProperty in interface ImmutableEndpointkey - the name of the propertypublic MuleContext getMuleContext()
getMuleContext in interface ImmutableEndpointpublic RetryPolicyTemplate getRetryPolicyTemplate()
ImmutableEndpointgetRetryPolicyTemplate in interface ImmutableEndpointpublic AbstractRedeliveryPolicy getRedeliveryPolicy()
ImmutableEndpointgetRedeliveryPolicy in interface ImmutableEndpointpublic String getEndpointBuilderName()
ImmutableEndpointgetEndpointBuilderName in interface ImmutableEndpointpublic boolean isProtocolSupported(String protocol)
isProtocolSupported in interface ImmutableEndpointpublic boolean isDisableTransportTransformer()
isDisableTransportTransformer in interface ImmutableEndpointpublic void dispose()
Disposabledispose in interface Disposablepublic MessageProcessor getMessageProcessorChain(FlowConstruct flowContruct) throws MuleException
MuleExceptionprotected abstract MessageProcessor createMessageProcessorChain(FlowConstruct flowContruct) throws MuleException
MuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.