Package com.isode.som.messages
Class SomMessage
- java.lang.Object
-
- com.isode.som.messages.SomMessage
-
- Direct Known Subclasses:
SomRfc822Message
,SomX400Message
public abstract class SomMessage extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
data
-
Constructor Summary
Constructors Constructor Description SomMessage()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.isode.x400api.BodyPart
getBodypart(int num)
abstract byte[]
getByteArrayAttribute(int type)
java.lang.String
getData()
abstract int
getIntegerAttribute(int type)
abstract java.lang.String
getPriorityName()
abstract com.isode.x400api.Recip
getRecipient(int type, int num)
abstract java.lang.String
getStringAttribute(int type)
-
-
-
Method Detail
-
getData
public java.lang.String getData()
-
getStringAttribute
public abstract java.lang.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 java.lang.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
-
-