@Override public void process(Channel ctx) { if (ctx.isInitial()) { return; } ctx.writeln(ctx.readln().toUpperCase()); }
@Override public void process(Channel ctx) { if (ctx.isInitial()) { ctx.writeln("Hi there!"); return; } eq(ctx.readln(), "HI THERE!"); }
@Override public synchronized boolean isInitial() { return conn.isInitial(); }