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.BodyPart
getBodypart(int num)
byte[]
getByteArrayAttribute(int type)
int
getIntegerAttribute(int type)
java.lang.String
getPriorityName()
com.isode.x400api.Recip
getRecipient(int type, int num)
java.lang.String
getStringAttribute(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:
getStringAttribute
in classSomMessage
- Throws:
SomException
-
getIntegerAttribute
public int getIntegerAttribute(int type) throws SomException
- Specified by:
getIntegerAttribute
in classSomMessage
- Throws:
SomException
-
getRecipient
public com.isode.x400api.Recip getRecipient(int type, int num) throws SomException
- Specified by:
getRecipient
in classSomMessage
- Throws:
SomException
-
getBodypart
public com.isode.x400api.BodyPart getBodypart(int num) throws SomException
- Specified by:
getBodypart
in classSomMessage
- Throws:
SomException
-
getPriorityName
public java.lang.String getPriorityName() throws SomException
- Specified by:
getPriorityName
in classSomMessage
- Throws:
SomException
-
getByteArrayAttribute
public byte[] getByteArrayAttribute(int type) throws SomException
- Specified by:
getByteArrayAttribute
in 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
-
-