hudson.plugins.im
Class IMConnectionProvider

java.lang.Object
  extended by hudson.plugins.im.IMConnectionProvider
All Implemented Interfaces:
IMConnectionListener

public abstract class IMConnectionProvider
extends java.lang.Object
implements IMConnectionListener

Abstract implementation of a provider of IMConnections.

Author:
kutzi

Field Summary
protected  IMPublisherDescriptor descriptor
           
 
Constructor Summary
protected IMConnectionProvider()
           
 
Method Summary
 void connectionBroken(java.lang.Exception e)
           
abstract  IMConnection createConnection()
           
 IMConnection currentConnection()
           
 org.acegisecurity.Authentication getAuthentication()
           
protected  IMPublisherDescriptor getDescriptor()
           
 void releaseConnection()
          Releases (and thus closes) the current connection.
 void setDescriptor(IMPublisherDescriptor desc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

protected IMPublisherDescriptor descriptor
Constructor Detail

IMConnectionProvider

protected IMConnectionProvider()
Method Detail

createConnection

public abstract IMConnection createConnection()
                                       throws IMException
Throws:
IMException

currentConnection

public IMConnection currentConnection()

releaseConnection

public void releaseConnection()
Releases (and thus closes) the current connection.


getDescriptor

protected IMPublisherDescriptor getDescriptor()

setDescriptor

public void setDescriptor(IMPublisherDescriptor desc)

connectionBroken

public void connectionBroken(java.lang.Exception e)
Specified by:
connectionBroken in interface IMConnectionListener

getAuthentication

public org.acegisecurity.Authentication getAuthentication()


Copyright © 2010. All Rights Reserved.