Class DefaultAdaptrisMessageImp

    • Constructor Detail

      • DefaultAdaptrisMessageImp

        protected DefaultAdaptrisMessageImp​(IdGenerator guid,
                                            AdaptrisMessageFactory fac)
                                     throws java.lang.RuntimeException
        Throws:
        java.lang.RuntimeException
    • Method Detail

      • equivalentForTracking

        public boolean equivalentForTracking​(AdaptrisMessage other)
        Description copied from interface: AdaptrisMessage

        AdaptrisMessage's are equivalent for tracking if they have the same unique Id, their payloads are equal, their char encodings are equal and their metadata is equal. NB equality of metadata is based on key only.

        Parameters:
        other - the message to compare
        Returns:
        true if the passed message is equivalent for tracking
        See Also:
        (com.adaptris.core.AdaptrisMessage)
      • getPayload

        public byte[] getPayload()
        Description copied from interface: AdaptrisMessage

        Returns a copy of this message's payload in its raw, byte[] form.

        Returns:
        payload in byte[] form
        See Also:
        AdaptrisMessage.getPayload()
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Description copied from interface: AdaptrisMessage

        Returns a deep clone of this object.

        Specified by:
        clone in interface AdaptrisMessage
        Overrides:
        clone in class AdaptrisMessageImp
        Returns:
        a deep clone of this object
        Throws:
        java.lang.CloneNotSupportedException - if the implementation does not support cloning
        See Also:
        Object.clone()
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
        See Also:
        InterlokMessage.getInputStream()