hudson.plugins.jabber.im
Interface IMConnection


public interface IMConnection

Represents a connection to an IM-Server.

Author:
Uwe Schaefer

Method Summary
 void close()
          Closes the connection (includes logout) and releases resources.
 void send(IMMessageTarget target, java.lang.String text)
          Sends a Message-Text to an IMMessageTarget (aka a User ;).
 void setPresence(IMPresence presence)
          Sets the current connections?¿½ presence to a protocol specific adaption of the given presence parameter.
 

Method Detail

close

void close()
Closes the connection (includes logout) and releases resources.


send

void send(IMMessageTarget target,
          java.lang.String text)
          throws IMException
Sends a Message-Text to an IMMessageTarget (aka a User ;).

Parameters:
target - the target to send to
text - the text to be sent
Throws:
IMException

setPresence

void setPresence(IMPresence presence)
                 throws IMException
Sets the current connections?¿½ presence to a protocol specific adaption of the given presence parameter.

Parameters:
presence - the presence to set
Throws:
IMException - encapsulated exception of underlying protocol/client


Copyright © 2007. All Rights Reserved.