Class ForEachAttachmentPipe<F,A,FS extends IMailFileSystem<F,A>>

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasSender, HasTransactionAttribute, IConfigurable, IForwardTarget, IPipe, IScopeProvider, IWithParameters, NameAware, EventThrowing, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

public class ForEachAttachmentPipe<F,A,FS extends IMailFileSystem<F,A>> extends IteratingPipe<A>
  • Constructor Details

    • ForEachAttachmentPipe

      public ForEachAttachmentPipe()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Description copied from class: FixedForwardPipe
      Checks for correct configuration of forward.
      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class IteratingPipe<A>
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • start

      public void start()
      Description copied from interface: IPipe
      Perform necessary action to start the pipe. This method is executed after the IConfigurable.configure() method, for each start and stop command of the adapter.
      Specified by:
      start in interface IPipe
      Specified by:
      start in interface org.springframework.context.Lifecycle
      Overrides:
      start in class MessageSendingPipe
    • stop

      public void stop()
      Description copied from interface: IPipe
      Perform necessary actions to stop the Pipe.
      For instance, closing JMS connections, DBMS connections etc.
      Specified by:
      stop in interface IPipe
      Specified by:
      stop in interface org.springframework.context.Lifecycle
      Overrides:
      stop in class MessageSendingPipe
    • getIterator

      protected IDataIterator<A> getIterator(Message message, PipeLineSession session, Map<String,Object> threadContext) throws SenderException
      Overrides:
      getIterator in class IteratingPipe<A>
      Throws:
      SenderException
    • itemToMessage

      protected Message itemToMessage(A item) throws SenderException
      Overrides:
      itemToMessage in class IteratingPipe<A>
      Throws:
      SenderException
    • getPhysicalDestinationName

      public String getPhysicalDestinationName()
    • getFileSystem

      public FS getFileSystem()
    • setFileSystem

      public void setFileSystem(FS fileSystem)
    • setOnlyProperties

      public void setOnlyProperties(String onlyPropertiesList)
      comma separated list of attachment properties to list
    • getOnlyPropertiesSet

      public Set<String> getOnlyPropertiesSet()
    • setExcludeProperties

      public void setExcludeProperties(String excludePropertiesList)
      comma separated list of attachment properties not to list. When specified, 'onlyProperties' is ignored
    • getExcludePropertiesSet

      public Set<String> getExcludePropertiesSet()