Package com.isode.som.pumice.objects
Class SomPumiceConnection
java.lang.Object
com.isode.som.pumice.objects.SomPumiceObject
com.isode.som.pumice.objects.SomPumiceConnection
- All Implemented Interfaces:
SomPumiceHandler,SomHandler
Class which models a (P7 or P3) connection into the Message Store
The SomPumiceSubordinates command generates a list of objects of this
type when it is invoked to list connections.
- Author:
- tc
-
Field Summary
Fields inherited from class com.isode.som.pumice.objects.SomPumiceObject
errortext, somSession -
Constructor Summary
ConstructorsConstructorDescriptionSomPumiceConnection(SomPumiceSession session, Integer c) Create a new objectSomPumiceConnection(SomPumiceSession session, Integer c, String[] pairs) Create a new objectSomPumiceConnection(SomPumiceSession session, String s) Create a new objectSomPumiceConnection(SomPumiceSession session, String[] pairs) Create a new object -
Method Summary
Modifier and TypeMethodDescriptionbindTime()dn()fetchOps()voidhandleBindResponse(int status, String detail) Handle the response to a Bind operationvoidhandleResponse(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) voidhandleResponse(SomCommand command, String detail, int status) voidhandleResponseWithDetail(SomCommand command, int status) listOps()voidlogout(SomCommandListener listener) Log out this connectionvoidparsePairs(String[] pairs) voidrefresh(SomCommandListener listener) Refresh the status of this connection objectvoidremoveFromArray(ArrayList<SomPumiceConnection> connections) uniqueId()Methods inherited from class com.isode.som.pumice.objects.SomPumiceObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, notifyListeners, notifyListeners, print, removeBindListener, setSkipNotifications
-
Constructor Details
-
SomPumiceConnection
Create a new object- Parameters:
session- session to with which the object is associatedc- connection id
-
SomPumiceConnection
Create a new object- Parameters:
session- session to with which the object is associateds- connection id as string
-
SomPumiceConnection
Create a new object- Parameters:
session- session to with which the object is associatedpairs- array of type/value pairs with which to populate object
-
SomPumiceConnection
Create a new object- Parameters:
session- session to with which the object is associatedc- connection idpairs- array of type/value pairs with which to populate object
-
-
Method Details
-
parsePairs
- Overrides:
parsePairsin classSomPumiceObject
-
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
-
handleResponseWithDetail
-
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
Refresh the status of this connection object- Parameters:
listener- listener to be notified when status updated- Throws:
SomException- on error
-
logout
Log out this connection- Parameters:
listener- listener to be notified when connection logged out- Throws:
SomException- on error
-
buildInfoString
-
connectionId
- Throws:
SomException
-
connectionType
- Throws:
SomException
-
orAddress
- Throws:
SomException
-
dn
- Throws:
SomException
-
mailboxPath
- Throws:
SomException
-
lastOpTime
- Throws:
SomException
-
lastOpType
- Throws:
SomException
-
callingAddress
- Throws:
SomException
-
listOps
- Throws:
SomException
-
summarizeOps
- Throws:
SomException
-
fetchOps
- Throws:
SomException
-
deleteOps
- Throws:
SomException
-
registerMsOps
- Throws:
SomException
-
submitMessageOps
- Throws:
SomException
-
submitProbeOps
- Throws:
SomException
-
cancelDeferredDeliveryOps
- Throws:
SomException
-
deliverMessageOps
- Throws:
SomException
-
deliverReportOps
- Throws:
SomException
-
deliveryControlOps
- Throws:
SomException
-
changeCredentialsOps
- Throws:
SomException
-
registerOps
- Throws:
SomException
-
bindTime
- Throws:
SomException
-