|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.endpoint.AbstractEndpointBuilder
public abstract class AbstractEndpointBuilder
Abstract endpoint builder used for externalizing the complex creation logic of
endpoints out of the endpoint instance itself.
The use of a builder allows i) Endpoints to be configured once and created in a
repeatable fashion (global endpoints), ii) Allow for much more extensibility in
endpoint creation for transport specific endpoints, streaming endpoints etc.
| Constructor Summary | |
|---|---|
AbstractEndpointBuilder()
|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_RESPONSE_TIMEOUT
public static final String PROPERTY_RESPONSE_PROPERTIES
protected URIBuilder uriBuilder
protected Connector connector
protected String name
protected Map<Object,Object> properties
protected TransactionConfig transactionConfig
protected Boolean deleteUnacceptedMessages
protected Boolean synchronous
protected MessageExchangePattern messageExchangePattern
protected Integer responseTimeout
protected String initialState
protected String encoding
protected Integer createConnector
protected RetryPolicyTemplate retryPolicyTemplate
protected String responsePropertiesList
protected EndpointMessageProcessorChainFactory messageProcessorsFactory
protected List<MessageProcessor> messageProcessors
protected List<MessageProcessor> responseMessageProcessors
protected List<Transformer> transformers
protected List<Transformer> responseTransformers
protected Boolean disableTransportTransformer
protected String mimeType
protected String registryId
protected MuleContext muleContext
protected transient Log logger
| Constructor Detail |
|---|
public AbstractEndpointBuilder()
| Method Detail |
|---|
public InboundEndpoint buildInboundEndpoint()
throws EndpointException,
InitialisationException
EndpointBuilder
buildInboundEndpoint in interface EndpointBuilderEndpointException
InitialisationException
public OutboundEndpoint buildOutboundEndpoint()
throws EndpointException,
InitialisationException
EndpointBuilder
buildOutboundEndpoint in interface EndpointBuilderEndpointException
InitialisationExceptionprotected void setPropertiesFromProperties(Map<Object,Object> properties)
protected InboundEndpoint doBuildInboundEndpoint()
throws InitialisationException,
EndpointException
InitialisationException
EndpointException
protected OutboundEndpoint doBuildOutboundEndpoint()
throws InitialisationException,
EndpointException
InitialisationException
EndpointExceptionprotected void prepareToBuildEndpoint()
protected void checkInboundExchangePattern()
throws EndpointException
EndpointException
protected void initExchangePatternFromConnectorDefault(TransportServiceDescriptor serviceDescriptor)
throws EndpointException
EndpointExceptionprotected RetryPolicyTemplate getRetryPolicyTemplate(Connector conn)
protected TransactionConfig getTransactionConfig()
protected TransactionConfig getDefaultTransactionConfig()
protected EndpointSecurityFilter getSecurityFilter()
protected EndpointSecurityFilter getDefaultSecurityFilter()
protected Connector getConnector()
throws EndpointException
EndpointException
protected Connector getDefaultConnector()
throws EndpointException
EndpointExceptionprotected String getName(EndpointURI endpointURI)
protected Map<Object,Object> getProperties()
protected boolean getDeleteUnacceptedMessages(Connector connector)
protected boolean getDefaultDeleteUnacceptedMessages(Connector connector)
protected String getEndpointEncoding(Connector connector)
protected String getDefaultEndpointEncoding(Connector connector)
protected String getInitialState(Connector connector)
protected String getDefaultInitialState(Connector connector)
protected int getResponseTimeout(Connector connector)
protected int getDefaultResponseTimeout(Connector connector)
protected void addTransformersFromUri(EndpointURI endpointURI)
throws TransportFactoryException
TransportFactoryException
protected void addResponseTransformersFromUri(EndpointURI endpointURI)
throws TransportFactoryException
TransportFactoryExceptionprotected void addTransformers()
protected void addResponseTransformers()
protected String getMimeType()
public void setMimeType(String mimeType)
protected String getScheme()
protected boolean isAlwaysCreateConnector()
public void setConnector(Connector connector)
setConnector in interface EndpointBuilder@Deprecated public void addTransformer(Transformer transformer)
addTransformer in interface EndpointBuilder@Deprecated public void setTransformers(List<Transformer> newTransformers)
setTransformers in interface EndpointBuilderprotected EndpointMessageProcessorChainFactory getMessageProcessorsFactory()
protected EndpointMessageProcessorChainFactory getDefaultMessageProcessorsFactory()
@Deprecated public void addResponseTransformer(Transformer transformer)
addResponseTransformer in interface EndpointBuilder@Deprecated public void setResponseTransformers(List<Transformer> newResponseTransformers)
setResponseTransformers in interface EndpointBuilderpublic void addMessageProcessor(MessageProcessor messageProcessor)
addMessageProcessor in interface EndpointBuilderpublic void setMessageProcessors(List<MessageProcessor> newMessageProcessors)
setMessageProcessors in interface EndpointBuilderpublic List<MessageProcessor> getMessageProcessors()
public void addResponseMessageProcessor(MessageProcessor messageProcessor)
addResponseMessageProcessor in interface EndpointBuilderpublic void setResponseMessageProcessors(List<MessageProcessor> newResponseMessageProcessors)
setResponseMessageProcessors in interface EndpointBuilderpublic List<MessageProcessor> getResponseMessageProcessors()
protected boolean isDisableTransportTransformer()
protected boolean getDefaultDisableTransportTransformer()
public void setName(String name)
setName in interface EndpointBuilderpublic void setProperties(Map<Object,Object> properties)
setProperties in interface EndpointBuilder
public void setProperty(Object key,
Object value)
setProperty in interface EndpointBuilderkey - the property keyvalue - the value of the propertypublic void setTransactionConfig(TransactionConfig transactionConfig)
setTransactionConfig in interface EndpointBuilderpublic void setDeleteUnacceptedMessages(boolean deleteUnacceptedMessages)
setDeleteUnacceptedMessages in interface EndpointBuilderpublic void setExchangePattern(MessageExchangePattern mep)
setExchangePattern in interface EndpointBuilderpublic void setResponseTimeout(int responseTimeout)
setResponseTimeout in interface EndpointBuilderpublic void setInitialState(String initialState)
setInitialState in interface EndpointBuilderpublic void setEncoding(String encoding)
setEncoding in interface EndpointBuilderpublic void setCreateConnector(int createConnector)
public void setRegistryId(String registryId)
setRegistryId in interface EndpointBuilderpublic void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwaresetMuleContext in interface EndpointBuilderpublic void setRetryPolicyTemplate(RetryPolicyTemplate retryPolicyTemplate)
setRetryPolicyTemplate in interface EndpointBuilderpublic void setDisableTransportTransformer(boolean disableTransportTransformer)
setDisableTransportTransformer in interface EndpointBuilderpublic URIBuilder getEndpointBuilder()
public void setURIBuilder(URIBuilder URIBuilder)
setURIBuilder in interface EndpointBuilderpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
protected static boolean equal(Object a,
Object b)
public Object clone()
throws CloneNotSupportedException
clone in interface EndpointBuilderclone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||