cdx.scorebot.net.tests.jabber
Class JabberService

java.lang.Object
  extended by cdx.scorebot.net.tests.Service
      extended by cdx.scorebot.net.tests.ConnectionOrientedService
          extended by cdx.scorebot.net.tests.ConnectionOrientedUserService
              extended by cdx.scorebot.net.tests.jabber.JabberService
All Implemented Interfaces:
java.io.Serializable

public class JabberService
extends ConnectionOrientedUserService
implements java.io.Serializable

extension of ConnectionOrientedUserService which handles connections to a Jabber server

Author:
Sean Sullivan
See Also:
Serialized Form

Constructor Summary
JabberService()
          default constructor
 
Method Summary
 boolean connect()
          try to connect to the service
 void disconnect()
          disconnect from the service
 org.jivesoftware.smack.XMPPConnection getXMPPConnection()
          Returns the XMPPconnection so that the send message thing can work
 
Methods inherited from class cdx.scorebot.net.tests.ConnectionOrientedUserService
getPassword, getUsername, setPassword, setUsername
 
Methods inherited from class cdx.scorebot.net.tests.Service
equals, getTargetAddress, getTargetInetAddress, getTargetPort, setTargetAddress, setTargetInetAddress, setTargetPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JabberService

public JabberService()
default constructor

Method Detail

connect

public boolean connect()
                throws org.jivesoftware.smack.XMPPException,
                       java.net.UnknownHostException
try to connect to the service

Returns:
whether or not the connection attempt succeeded
Throws:
org.jivesoftware.smack.XMPPException
java.net.UnknownHostException

disconnect

public void disconnect()
disconnect from the service


getXMPPConnection

public org.jivesoftware.smack.XMPPConnection getXMPPConnection()
Returns the XMPPconnection so that the send message thing can work

Returns:
the XMPP connection that was made