Class MimePartSplitter

  • All Implemented Interfaces:
    MessageSplitter

    public class MimePartSplitter
    extends MessageSplitterImp

    Implementation of MessageSplitter which allows a single AdaptrisMessage that contains multiple mime parts to be split into AdaptrisMessage[].

    The Message must be a mime encoded message.

    In the adapter configuration file this class is aliased as mime-part-splitter which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • MimePartSplitter

        public MimePartSplitter()
    • Method Detail

      • getPreserveHeaders

        public java.lang.Boolean getPreserveHeaders()
        Get the preserve headers flag.
        Returns:
        the flag.
      • setPreserveHeaders

        public void setPreserveHeaders​(java.lang.Boolean b)
        Set the preserve headers flag.

        If set to true, then an attempt is made to copy all the headers from the mime part as metadata to the AdaptrisMessage object. Each header can optionally be prefixed with the value specfied by the value of getHeaderPrefix()

        Parameters:
        b - true or false.
        See Also:
        setHeaderPrefix(String)
      • preserveHeaders

        public boolean preserveHeaders()
      • setHeaderPrefix

        public void setHeaderPrefix​(java.lang.String s)
        Set the header prefix.

        The header prefix is used to prefix any headers that are preserved from the Mime Part

        Parameters:
        s - the prefix.
      • getHeaderPrefix

        public java.lang.String getHeaderPrefix()
        Get the header prefix.
        Returns:
        the header prefix