org.abstracthorizon.mercury.common.command
Class AbstractCommand

java.lang.Object
  extended by org.abstracthorizon.mercury.common.command.AbstractCommand
All Implemented Interfaces:
Command

public abstract class AbstractCommand
extends Object
implements Command

Abstract command.

Author:
Daniel Sendula

Field Summary
protected  String mnemonic
          Command's mnemonic
protected  org.abstracthorizon.danube.service.server.SocketConnection session
          Session
 
Constructor Summary
AbstractCommand(String mnemonic)
          Constructor
 
Method Summary
 String getMnemonic()
          Returns mnemonic
 org.abstracthorizon.danube.service.server.SocketConnection getSession()
          Returns session
 void init(org.abstracthorizon.danube.service.server.SocketConnection session)
          Sets session
protected  void setSession(org.abstracthorizon.danube.service.server.SocketConnection session)
          Sets session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected org.abstracthorizon.danube.service.server.SocketConnection session
Session


mnemonic

protected String mnemonic
Command's mnemonic

Constructor Detail

AbstractCommand

public AbstractCommand(String mnemonic)
Constructor

Parameters:
mnemonic - mnemonic
Method Detail

getSession

public org.abstracthorizon.danube.service.server.SocketConnection getSession()
Returns session

Returns:

setSession

protected void setSession(org.abstracthorizon.danube.service.server.SocketConnection session)
Sets session

Parameters:
session - session

getMnemonic

public String getMnemonic()
Returns mnemonic

Returns:
mnemonic

init

public void init(org.abstracthorizon.danube.service.server.SocketConnection session)
Sets session

Specified by:
init in interface Command
Parameters:
session -


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.