org.jbrain.qlink.state
Class GatewayState

java.lang.Object
  |
  +--org.jbrain.qlink.state.AbstractState
        |
        +--org.jbrain.qlink.state.GatewayState
All Implemented Interfaces:
QState, java.lang.Runnable

public class GatewayState
extends AbstractState
implements java.lang.Runnable


Field Summary
 
Fields inherited from class org.jbrain.qlink.state.AbstractState
_session
 
Constructor Summary
GatewayState(QSession session, java.lang.String host, int port)
           
 
Method Summary
 void activate()
           
 boolean execute(Action a)
           
 void run()
           
 void terminate()
           
 
Methods inherited from class org.jbrain.qlink.state.AbstractState
checkEmail, getName, passivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GatewayState

public GatewayState(QSession session,
                    java.lang.String host,
                    int port)
Method Detail

activate

public void activate()
              throws java.io.IOException
Specified by:
activate in interface QState
Overrides:
activate in class AbstractState
java.io.IOException

execute

public boolean execute(Action a)
                throws java.io.IOException
Specified by:
execute in interface QState
Overrides:
execute in class AbstractState
java.io.IOException

run

public void run()
Specified by:
run in interface java.lang.Runnable

terminate

public void terminate()
Specified by:
terminate in interface QState
Overrides:
terminate in class AbstractState