Class As4LazyAttachmentCollection

  • All Implemented Interfaces:
    Iterable<org.apache.cxf.message.Attachment>, Collection<org.apache.cxf.message.Attachment>

    public class As4LazyAttachmentCollection
    extends Object
    implements Collection<org.apache.cxf.message.Attachment>
    • Constructor Detail

      • As4LazyAttachmentCollection

        public As4LazyAttachmentCollection​(As4AttachmentDeserializer deserializer,
                                           int maxAttachmentCount)
    • Method Detail

      • getLoadedAttachments

        public List<org.apache.cxf.message.Attachment> getLoadedAttachments()
      • hasNext

        public boolean hasNext​(boolean shouldLoadNew)
                        throws IOException
        Check for more attachments by attempting to deserialize the next attachment.
        Parameters:
        shouldLoadNew - if false, the "loaded attachments" List will not be changed.
        Returns:
        there is more attachment or not
        Throws:
        IOException
      • iterator

        public Iterator<org.apache.cxf.message.Attachment> iterator()
        Specified by:
        iterator in interface Collection<org.apache.cxf.message.Attachment>
        Specified by:
        iterator in interface Iterable<org.apache.cxf.message.Attachment>
      • size

        public int size()
        Specified by:
        size in interface Collection<org.apache.cxf.message.Attachment>
      • add

        public boolean add​(org.apache.cxf.message.Attachment arg0)
        Specified by:
        add in interface Collection<org.apache.cxf.message.Attachment>
      • addAll

        public boolean addAll​(Collection<? extends org.apache.cxf.message.Attachment> arg0)
        Specified by:
        addAll in interface Collection<org.apache.cxf.message.Attachment>
      • clear

        public void clear()
        Specified by:
        clear in interface Collection<org.apache.cxf.message.Attachment>
      • contains

        public boolean contains​(Object arg0)
        Specified by:
        contains in interface Collection<org.apache.cxf.message.Attachment>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Collection<org.apache.cxf.message.Attachment>
      • remove

        public boolean remove​(Object arg0)
        Specified by:
        remove in interface Collection<org.apache.cxf.message.Attachment>
      • removeAll

        public boolean removeAll​(Collection<?> arg0)
        Specified by:
        removeAll in interface Collection<org.apache.cxf.message.Attachment>
      • retainAll

        public boolean retainAll​(Collection<?> arg0)
        Specified by:
        retainAll in interface Collection<org.apache.cxf.message.Attachment>
      • toArray

        public Object[] toArray()
        Specified by:
        toArray in interface Collection<org.apache.cxf.message.Attachment>
      • toArray

        public <T> T[] toArray​(T[] arg0)
        Specified by:
        toArray in interface Collection<org.apache.cxf.message.Attachment>
      • createDataHandlerMap

        public Map<String,​javax.activation.DataHandler> createDataHandlerMap()