Package com.isode.som.pumice.objects
Class SomPumiceMessage
java.lang.Object
com.isode.som.pumice.objects.SomPumiceObject
com.isode.som.pumice.objects.SomPumiceMessage
- All Implemented Interfaces:
SomPumiceHandler,SomHandler
Class which models a message in a Message Store mailbox
The SomPumiceSubordinates command generates a list of objects of this
type when it is invoked to list messages
- Author:
- tc
-
Field Summary
Fields inherited from class com.isode.som.pumice.objects.SomPumiceObject
errortext, somSession -
Constructor Summary
ConstructorsConstructorDescriptionSomPumiceMessage(SomPumiceSession session, String[] pairs) Create a new SomPumiceMessage object, populating it with dataSomPumiceMessage(SomPumiceSession session, String mbx, Integer s) Create a new SomPumiceMessage objectSomPumiceMessage(SomPumiceSession session, String mbx, Integer s, String[] pairs) Create a new SomPumiceMessage object, populating it with data -
Method Summary
Modifier and TypeMethodDescriptionage()voiddelete(SomCommandListener listener) voidforward(SomCommandListener listener, String recip, String coverNote) voidhandleBindResponse(int status, String detail) Handle the response to a Bind operationvoidhandleResponse(SomCommand obj, int status, SomMessage msg) voidhandleResponse(SomCommand command, int status, SomPumiceConnection object) voidhandleResponse(SomCommand command, int status, SomPumiceMailbox object) voidhandleResponse(SomCommand command, int status, SomPumiceMessage object) voidhandleResponse(SomCommand command, int status, SomPumiceMessageStore object) voidhandleResponse(SomCommand command, int status, String detail) Generic command response handlervoidhandleResponse(SomCommand command, int status, String[] pairs) ipmType()voidmove(SomCommandListener listener, String destMailbox) priority()voidrefresh(SomCommandListener listener) voidremoveFromArray(ArrayList<SomPumiceMessage> messages) voidsetState(SomCommandListener listener, String newState) size()state()subject()type()uniqueId()Methods inherited from class com.isode.som.pumice.objects.SomPumiceObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, notifyListeners, notifyListeners, parsePairs, print, removeBindListener, setSkipNotifications
-
Constructor Details
-
SomPumiceMessage
Create a new SomPumiceMessage object- Parameters:
session- Session within which to create messagembx- Name of mailbox containing messages- Sequence number of message
-
SomPumiceMessage
Create a new SomPumiceMessage object, populating it with data- Parameters:
session- Session within which to create messagembx- Name of mailbox containing messages- Sequence number of messagepairs- Data type/value pairs
-
SomPumiceMessage
Create a new SomPumiceMessage object, populating it with data- Parameters:
session- Session within which to create messagepairs- Data type/value pairs
-
-
Method Details
-
removeFromArray
-
uniqueId
-
handleResponse
Description copied from interface:SomHandlerGeneric command response handler- Specified by:
handleResponsein interfaceSomHandler- Specified by:
handleResponsein interfaceSomPumiceHandler- Parameters:
command- the command to which the response appliesstatus- status from commanddetail- error detail
-
handleResponse
-
handleResponse
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleBindResponse
Description copied from interface:SomHandlerHandle the response to a Bind operation- Specified by:
handleBindResponsein interfaceSomHandler- Parameters:
status- operation statusdetail- error detail on failure
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
refresh
- Throws:
SomException
-
delete
- Throws:
SomException
-
move
- Throws:
SomException
-
setState
- Throws:
SomException
-
forward
public void forward(SomCommandListener listener, String recip, String coverNote) throws SomException - Throws:
SomException
-
buildInfoString
-
mailboxPath
- Throws:
SomException
-
sequenceNumber
- Throws:
SomException
-
size
- Throws:
SomException
-
age
- Throws:
SomException
-
type
- Throws:
SomException
-
ipmType
- Throws:
SomException
-
priority
- Throws:
SomException
-
state
- Throws:
SomException
-
originator
- Throws:
SomException
-
subject
- Throws:
SomException
-
mtsIdentifier
- Throws:
SomException
-