public class SomX400Message extends SomMessage
data
Constructor and Description |
---|
SomX400Message(byte[] buf)
Create a new SOMX400Message using a byte array containing
the encoding of the message
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
com.isode.x400api.BodyPart |
getBodypart(int num)
Get a bodypart object from a message
|
byte[] |
getByteArrayAttribute(int type)
Get a byte array attribute type
|
int |
getIntegerAttribute(int type)
Get an integer attribute value from a message
|
com.isode.x400api.Message |
getMessage()
Return underlying X400Message object
|
java.util.ArrayList<java.lang.String> |
getPrintableStringAttribute(int type)
Get a printable string attribute type
|
java.lang.String |
getPriorityName()
Get the priority for this message as a string
|
com.isode.x400api.Recip |
getRecipient(int type,
int num)
Get a recipient object from a message
|
java.lang.String |
getStringAttribute(int type)
Get a string attribute value from a message
|
getData
public SomX400Message(byte[] buf)
buf
- containing the encoding of the messagepublic void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public java.lang.String getStringAttribute(int type) throws SomException
getStringAttribute
in class SomMessage
type
- the attribute type to getSomException
- on errorpublic int getIntegerAttribute(int type) throws SomException
getIntegerAttribute
in class SomMessage
type
- the attribute type to getSomException
- on errorpublic com.isode.x400api.Recip getRecipient(int type, int num) throws SomException
getRecipient
in class SomMessage
type
- the recipient type to getnum
- the index of this recipientSomException
- on errorpublic com.isode.x400api.BodyPart getBodypart(int num) throws SomException
getBodypart
in class SomMessage
num
- the index of this bodypartSomException
- on errorpublic java.lang.String getPriorityName() throws SomException
getPriorityName
in class SomMessage
SomException
- on errorpublic com.isode.x400api.Message getMessage()
public byte[] getByteArrayAttribute(int type) throws SomException
getByteArrayAttribute
in class SomMessage
type
- attribute type to getSomException
- on errorpublic java.util.ArrayList<java.lang.String> getPrintableStringAttribute(int type) throws SomException
type
- attribute type to getSomException
- on errorVersion: 18.0v6-0
Copyright (c) 2017-2020 Isode