Package com.isode.som.messages
Class SomRfc822Message
- java.lang.Object
-
- com.isode.som.messages.SomMessage
-
- com.isode.som.messages.SomRfc822Message
-
public class SomRfc822Message extends SomMessage
Class for handling RFC822 messages returned by SOM commands- Author:
- tc
-
-
Field Summary
-
Fields inherited from class com.isode.som.messages.SomMessage
data
-
-
Constructor Summary
Constructors Constructor Description SomRfc822Message(byte[] d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.isode.x400api.BodyPartgetBodypart(int num)byte[]getByteArrayAttribute(int type)intgetIntegerAttribute(int type)java.lang.StringgetPriorityName()com.isode.x400api.RecipgetRecipient(int type, int num)java.lang.StringgetStringAttribute(int type)-
Methods inherited from class com.isode.som.messages.SomMessage
getData
-
-
-
-
Method Detail
-
getStringAttribute
public java.lang.String getStringAttribute(int type) throws SomException- Specified by:
getStringAttributein classSomMessage- Throws:
SomException
-
getIntegerAttribute
public int getIntegerAttribute(int type) throws SomException- Specified by:
getIntegerAttributein classSomMessage- Throws:
SomException
-
getRecipient
public com.isode.x400api.Recip getRecipient(int type, int num) throws SomException- Specified by:
getRecipientin classSomMessage- Throws:
SomException
-
getBodypart
public com.isode.x400api.BodyPart getBodypart(int num) throws SomException- Specified by:
getBodypartin classSomMessage- Throws:
SomException
-
getPriorityName
public java.lang.String getPriorityName() throws SomException- Specified by:
getPriorityNamein classSomMessage- Throws:
SomException
-
getByteArrayAttribute
public byte[] getByteArrayAttribute(int type) throws SomException- Specified by:
getByteArrayAttributein classSomMessage- 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
-
-