Class SomMessage

java.lang.Object
com.isode.som.messages.SomMessage
Direct Known Subclasses:
SomRfc822Message, SomX400Message

public abstract class SomMessage extends Object
  • Field Details

    • data

      protected String data
  • Constructor Details

    • SomMessage

      public SomMessage()
  • Method Details

    • getData

      public String getData()
    • getStringAttribute

      public abstract String getStringAttribute(int type) throws SomException
      Throws:
      SomException
    • getIntegerAttribute

      public abstract int getIntegerAttribute(int type) throws SomException
      Throws:
      SomException
    • getRecipient

      public abstract com.isode.x400api.Recip getRecipient(int type, int num) throws SomException
      Throws:
      SomException
    • getBodypart

      public abstract com.isode.x400api.BodyPart getBodypart(int num) throws SomException
      Throws:
      SomException
    • getPriorityName

      public abstract String getPriorityName() throws SomException
      Throws:
      SomException
    • getByteArrayAttribute

      public abstract byte[] getByteArrayAttribute(int type) throws SomException
      Parameters:
      type - attribute type
      Returns:
      a byte array with the value of the requested attribute (type), or null, if the attribute is not present of if there was an error in retrieving it. The attribute type may not be null.
      Throws:
      SomException - on error