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()
void
handleBindResponse
(int status, String detail) Handle the response to a Bind operationvoid
handleResponse
(SomCommand command, int status, SomPumiceConnection object) void
handleResponse
(SomCommand command, int status, SomPumiceMailbox object) void
handleResponse
(SomCommand command, int status, SomPumiceMessage object) void
handleResponse
(SomCommand command, int status, SomPumiceMessageStore object) void
handleResponse
(SomCommand command, int status, String detail) Generic command response handlervoid
handleResponse
(SomCommand command, int status, String[] pairs) void
handleResponse
(SomCommand command, String detail, int status) void
handleResponseWithDetail
(SomCommand command, int status) listOps()
void
logout
(SomCommandListener listener) Log out this connectionvoid
parsePairs
(String[] pairs) void
refresh
(SomCommandListener listener) Refresh the status of this connection objectvoid
removeFromArray
(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:
parsePairs
in classSomPumiceObject
-
removeFromArray
-
uniqueId
-
handleResponse
Description copied from interface:SomHandler
Generic command response handler- Specified by:
handleResponse
in interfaceSomHandler
- Specified by:
handleResponse
in interfaceSomPumiceHandler
- Parameters:
command
- the command to which the response appliesstatus
- status from commanddetail
- error detail
-
handleResponse
-
handleResponseWithDetail
-
handleResponse
-
handleResponse
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleResponse
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleResponse
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleBindResponse
Description copied from interface:SomHandler
Handle the response to a Bind operation- Specified by:
handleBindResponse
in interfaceSomHandler
- Parameters:
status
- operation statusdetail
- error detail on failure
-
handleResponse
- Specified by:
handleResponse
in 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
-