public class TapeDeckServer
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
EMPTY |
static java.lang.String |
LOADED |
static java.lang.String |
PAUSED |
static java.lang.String |
PLAYING |
static java.lang.String |
ROOT |
构造器和说明 |
---|
TapeDeckServer() |
限定符和类型 | 方法和说明 |
---|---|
void |
commandSyntaxError(IoSession session,
CommandSyntaxException e) |
void |
connect(IoSession session) |
void |
ejectTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context,
IoSession session,
EjectCommand cmd) |
void |
error(Event event,
StateContext context,
IoSession session,
Command cmd) |
void |
exceptionCaught(IoSession session,
java.lang.Exception e) |
void |
info(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context,
IoSession session,
InfoCommand cmd) |
void |
listTapes(IoSession session,
ListCommand cmd) |
void |
loadTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context,
IoSession session,
LoadCommand cmd) |
void |
pauseTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context,
IoSession session,
PauseCommand cmd) |
void |
playTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context,
IoSession session,
PlayCommand cmd) |
void |
quit(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context,
IoSession session,
QuitCommand cmd) |
void |
stopTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context,
IoSession session,
StopCommand cmd) |
void |
unhandledEvent() |
public static final java.lang.String ROOT
public static final java.lang.String EMPTY
public static final java.lang.String LOADED
public static final java.lang.String PLAYING
public static final java.lang.String PAUSED
public void connect(IoSession session)
public void loadTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context, IoSession session, LoadCommand cmd)
public void playTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context, IoSession session, PlayCommand cmd)
public void pauseTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context, IoSession session, PauseCommand cmd)
public void stopTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context, IoSession session, StopCommand cmd)
public void ejectTape(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context, IoSession session, EjectCommand cmd)
public void listTapes(IoSession session, ListCommand cmd)
public void info(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context, IoSession session, InfoCommand cmd)
public void quit(org.apache.mina.example.tapedeck.TapeDeckServer.TapeDeckContext context, IoSession session, QuitCommand cmd)
public void error(Event event, StateContext context, IoSession session, Command cmd)
public void commandSyntaxError(IoSession session, CommandSyntaxException e)
public void exceptionCaught(IoSession session, java.lang.Exception e)
public void unhandledEvent()