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
public class SomPumiceConnection extends SomPumiceObject implements SomPumiceHandler
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
Constructors Constructor Description SomPumiceConnection(SomPumiceSession session, java.lang.Integer c)Create a new objectSomPumiceConnection(SomPumiceSession session, java.lang.Integer c, java.lang.String[] pairs)Create a new objectSomPumiceConnection(SomPumiceSession session, java.lang.String s)Create a new objectSomPumiceConnection(SomPumiceSession session, java.lang.String[] pairs)Create a new object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbindTime()java.lang.StringbuildInfoString()java.lang.StringcallingAddress()java.lang.IntegercancelDeferredDeliveryOps()java.lang.IntegerchangeCredentialsOps()java.lang.IntegerconnectionId()java.lang.StringconnectionType()java.lang.IntegerdeleteOps()java.lang.IntegerdeliverMessageOps()java.lang.IntegerdeliverReportOps()java.lang.IntegerdeliveryControlOps()java.lang.Stringdn()java.lang.IntegerfetchOps()voidhandleBindResponse(int status, java.lang.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, java.lang.String detail)Generic command response handlervoidhandleResponse(SomCommand command, int status, java.lang.String[] pairs)voidhandleResponse(SomCommand command, java.lang.String detail, int status)voidhandleResponseWithDetail(SomCommand command, int status)java.lang.StringlastOpTime()java.lang.StringlastOpType()java.lang.IntegerlistOps()voidlogout(SomCommandListener listener)Log out this connectionjava.lang.StringmailboxPath()java.lang.StringorAddress()voidparsePairs(java.lang.String[] pairs)voidrefresh(SomCommandListener listener)Refresh the status of this connection objectjava.lang.IntegerregisterMsOps()java.lang.IntegerregisterOps()voidremoveFromArray(java.util.ArrayList<SomPumiceConnection> connections)java.lang.IntegersubmitMessageOps()java.lang.IntegersubmitProbeOps()java.lang.IntegersummarizeOps()java.lang.StringuniqueId()-
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 Detail
-
SomPumiceConnection
public SomPumiceConnection(SomPumiceSession session, java.lang.Integer c)
Create a new object- Parameters:
session- session to with which the object is associatedc- connection id
-
SomPumiceConnection
public SomPumiceConnection(SomPumiceSession session, java.lang.String s)
Create a new object- Parameters:
session- session to with which the object is associateds- connection id as string
-
SomPumiceConnection
public SomPumiceConnection(SomPumiceSession session, java.lang.String[] pairs)
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
public SomPumiceConnection(SomPumiceSession session, java.lang.Integer c, java.lang.String[] pairs)
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 Detail
-
parsePairs
public void parsePairs(java.lang.String[] pairs)
- Overrides:
parsePairsin classSomPumiceObject
-
removeFromArray
public void removeFromArray(java.util.ArrayList<SomPumiceConnection> connections)
-
uniqueId
public java.lang.String uniqueId()
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String detail)
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
public void handleResponse(SomCommand command, java.lang.String detail, int status)
-
handleResponseWithDetail
public void handleResponseWithDetail(SomCommand command, int status)
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMessageStore object)
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMailbox object)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMessage object)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceConnection object)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleBindResponse
public void handleBindResponse(int status, java.lang.String detail)Description copied from interface:SomHandlerHandle the response to a Bind operation- Specified by:
handleBindResponsein interfaceSomHandler- Parameters:
status- operation statusdetail- error detail on failure
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String[] pairs)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
refresh
public void refresh(SomCommandListener listener) throws SomException
Refresh the status of this connection object- Parameters:
listener- listener to be notified when status updated- Throws:
SomException- on error
-
logout
public void logout(SomCommandListener listener) throws SomException
Log out this connection- Parameters:
listener- listener to be notified when connection logged out- Throws:
SomException- on error
-
buildInfoString
public java.lang.String buildInfoString()
-
connectionId
public java.lang.Integer connectionId() throws SomException- Throws:
SomException
-
connectionType
public java.lang.String connectionType() throws SomException- Throws:
SomException
-
orAddress
public java.lang.String orAddress() throws SomException- Throws:
SomException
-
dn
public java.lang.String dn() throws SomException- Throws:
SomException
-
mailboxPath
public java.lang.String mailboxPath() throws SomException- Throws:
SomException
-
lastOpTime
public java.lang.String lastOpTime() throws SomException- Throws:
SomException
-
lastOpType
public java.lang.String lastOpType() throws SomException- Throws:
SomException
-
callingAddress
public java.lang.String callingAddress() throws SomException- Throws:
SomException
-
listOps
public java.lang.Integer listOps() throws SomException- Throws:
SomException
-
summarizeOps
public java.lang.Integer summarizeOps() throws SomException- Throws:
SomException
-
fetchOps
public java.lang.Integer fetchOps() throws SomException- Throws:
SomException
-
deleteOps
public java.lang.Integer deleteOps() throws SomException- Throws:
SomException
-
registerMsOps
public java.lang.Integer registerMsOps() throws SomException- Throws:
SomException
-
submitMessageOps
public java.lang.Integer submitMessageOps() throws SomException- Throws:
SomException
-
submitProbeOps
public java.lang.Integer submitProbeOps() throws SomException- Throws:
SomException
-
cancelDeferredDeliveryOps
public java.lang.Integer cancelDeferredDeliveryOps() throws SomException- Throws:
SomException
-
deliverMessageOps
public java.lang.Integer deliverMessageOps() throws SomException- Throws:
SomException
-
deliverReportOps
public java.lang.Integer deliverReportOps() throws SomException- Throws:
SomException
-
deliveryControlOps
public java.lang.Integer deliveryControlOps() throws SomException- Throws:
SomException
-
changeCredentialsOps
public java.lang.Integer changeCredentialsOps() throws SomException- Throws:
SomException
-
registerOps
public java.lang.Integer registerOps() throws SomException- Throws:
SomException
-
bindTime
public java.lang.String bindTime() throws SomException- Throws:
SomException
-
-