org.mule.module.rss.endpoint
Class RssEndpointBuilder

java.lang.Object
  extended by org.mule.endpoint.AbstractEndpointBuilder
      extended by org.mule.endpoint.EndpointURIEndpointBuilder
          extended by org.mule.endpoint.AbstractMetaEndpointBuilder
              extended by org.mule.module.rss.endpoint.RssEndpointBuilder
All Implemented Interfaces:
Cloneable, MuleContextAware, EndpointBuilder
Direct Known Subclasses:
RssInboundEndpointFactoryBean

public class RssEndpointBuilder
extends AbstractMetaEndpointBuilder

Creates RSS endpoints. Right now only inbound endpoints are supported, i.e. poll an RSS URL


Field Summary
static String DATE_FORMAT
           
static String SHORT_DATE_FORMAT
           
 
Fields inherited from class org.mule.endpoint.AbstractEndpointBuilder
connector, createConnector, deleteUnacceptedMessages, disableTransportTransformer, encoding, initialState, logger, messageExchangePattern, messageProcessors, messageProcessorsFactory, mimeType, muleContext, name, properties, PROPERTY_RESPONSE_PROPERTIES, PROPERTY_RESPONSE_TIMEOUT, registryId, responseMessageProcessors, responsePropertiesList, responseTimeout, responseTransformers, retryPolicyTemplate, synchronous, transactionConfig, transformers, uriBuilder
 
Constructor Summary
  RssEndpointBuilder()
           
protected RssEndpointBuilder(EndpointURI endpointURI)
           
  RssEndpointBuilder(EndpointURIEndpointBuilder global)
           
  RssEndpointBuilder(String address, MuleContext muleContext)
           
  RssEndpointBuilder(URIBuilder URIBuilder)
           
 
Method Summary
 InboundEndpoint buildInboundEndpoint()
          Constructs inbound endpoints
 OutboundEndpoint buildOutboundEndpoint()
          Constructs outbound endpoints
protected  Date formatDate(String date)
           
 String getLastUpdate()
           
 long getPollingFrequency()
           
protected  void init()
           
protected  boolean isAlwaysCreateConnector()
          Some endpoint may always require a new connector to be created for every endpoint
 boolean isSplitFeed()
           
 void setLastUpdate(String lastUpdate)
           
 void setPollingFrequency(long pollingFrequency)
           
 void setSplitFeed(boolean splitFeed)
           
 
Methods inherited from class org.mule.endpoint.AbstractMetaEndpointBuilder
getConnector, getEndpointAddressWithoutMetaScheme, getScheme, setProperties
 
Methods inherited from class org.mule.endpoint.AbstractEndpointBuilder
addMessageProcessor, addReplyToProcessors, addResponseMessageProcessor, addResponseTransformer, addResponseTransformerProcessors, addTransformer, addTransformerProcessors, checkInboundExchangePattern, clone, doBuildInboundEndpoint, doBuildOutboundEndpoint, equal, equals, getDefaultConnector, getDefaultDeleteUnacceptedMessages, getDefaultDisableTransportTransformer, getDefaultEndpointEncoding, getDefaultInitialState, getDefaultMessageProcessorsFactory, getDefaultResponseTimeout, getDefaultSecurityFilter, getDefaultTransactionConfig, getDeleteUnacceptedMessages, getEndpointBuilder, getEndpointEncoding, getInitialState, getMessageProcessors, getMessageProcessorsFactory, getMimeType, getName, getProperties, getResponseMessageProcessors, getResponseTimeout, getResponseTransformersFromUri, getRetryPolicyTemplate, getSecurityFilter, getTransactionConfig, getTransformersFromUri, hashCode, initExchangePatternFromConnectorDefault, isDisableTransportTransformer, prepareToBuildEndpoint, setConnector, setCreateConnector, setDeleteUnacceptedMessages, setDisableTransportTransformer, setEncoding, setExchangePattern, setInitialState, setMessageProcessors, setMimeType, setMuleContext, setName, setPropertiesFromProperties, setProperty, setRegistryId, setResponseMessageProcessors, setResponseTimeout, setResponseTransformers, setRetryPolicyTemplate, setTransactionConfig, setTransformers, setURIBuilder
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final String DATE_FORMAT
See Also:
Constant Field Values

SHORT_DATE_FORMAT

public static final String SHORT_DATE_FORMAT
See Also:
Constant Field Values
Constructor Detail

RssEndpointBuilder

public RssEndpointBuilder()

RssEndpointBuilder

public RssEndpointBuilder(EndpointURIEndpointBuilder global)
                   throws EndpointException
Throws:
EndpointException

RssEndpointBuilder

public RssEndpointBuilder(URIBuilder URIBuilder)

RssEndpointBuilder

public RssEndpointBuilder(String address,
                          MuleContext muleContext)

RssEndpointBuilder

protected RssEndpointBuilder(EndpointURI endpointURI)
Method Detail

init

protected void init()

buildInboundEndpoint

public InboundEndpoint buildInboundEndpoint()
                                     throws EndpointException,
                                            InitialisationException
Description copied from interface: EndpointBuilder
Constructs inbound endpoints

Specified by:
buildInboundEndpoint in interface EndpointBuilder
Overrides:
buildInboundEndpoint in class AbstractEndpointBuilder
Throws:
EndpointException
InitialisationException

buildOutboundEndpoint

public OutboundEndpoint buildOutboundEndpoint()
                                       throws EndpointException,
                                              InitialisationException
Description copied from interface: EndpointBuilder
Constructs outbound endpoints

Specified by:
buildOutboundEndpoint in interface EndpointBuilder
Overrides:
buildOutboundEndpoint in class AbstractEndpointBuilder
Throws:
EndpointException
InitialisationException

isAlwaysCreateConnector

protected boolean isAlwaysCreateConnector()
Description copied from class: AbstractEndpointBuilder
Some endpoint may always require a new connector to be created for every endpoint

Overrides:
isAlwaysCreateConnector in class AbstractEndpointBuilder
Returns:
the default if false but cusotm endpoints can override

getLastUpdate

public String getLastUpdate()

setLastUpdate

public void setLastUpdate(String lastUpdate)

isSplitFeed

public boolean isSplitFeed()

setSplitFeed

public void setSplitFeed(boolean splitFeed)

getPollingFrequency

public long getPollingFrequency()

setPollingFrequency

public void setPollingFrequency(long pollingFrequency)

formatDate

protected Date formatDate(String date)
                   throws ParseException
Throws:
ParseException


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