|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.im.IMConnectionProvider
public abstract class IMConnectionProvider
Abstract implementation of a provider of IMConnections.
| Field Summary | |
|---|---|
protected IMPublisherDescriptor |
descriptor
|
| Constructor Summary | |
|---|---|
protected |
IMConnectionProvider()
|
| Method Summary | |
|---|---|
void |
connectionBroken(java.lang.Exception e)
|
abstract IMConnection |
createConnection()
Creates a new connection. |
IMConnection |
currentConnection()
Return the current connection. |
AuthenticationHolder |
getAuthenticationHolder()
|
protected IMPublisherDescriptor |
getDescriptor()
|
protected void |
init()
Must be called once to initialize the provider. |
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 |
|---|
protected IMPublisherDescriptor descriptor
| Constructor Detail |
|---|
protected IMConnectionProvider()
| Method Detail |
|---|
protected void init()
public abstract IMConnection createConnection()
throws IMException
IMException - if the connection couldn't be created for any reason.
IMExceptionpublic IMConnection currentConnection()
DummyConnection if the plugin
is currently not connection to a IM network.
public void releaseConnection()
protected IMPublisherDescriptor getDescriptor()
public void setDescriptor(IMPublisherDescriptor desc)
public void connectionBroken(java.lang.Exception e)
connectionBroken in interface IMConnectionListenerpublic AuthenticationHolder getAuthenticationHolder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||