private boolean processOneSetOfInstructions(SlimStreamReader reader, OutputStream writer, ListExecutor executor) throws IOException { String instructions = reader.getSlimMessage(); // Not sure why this is need but we keep it. if (instructions == null) return true; // We are done Bye Bye message received if (instructions.equalsIgnoreCase(SlimVersion.BYEMESSAGE)) { return false; } // Do some real work String resultString = executeInstructions(executor, instructions); SlimStreamReader.sendSlimMessage(writer, resultString); return true; }
private boolean processOneSetOfInstructions(SlimStreamReader reader, OutputStream writer, ListExecutor executor) throws IOException { String instructions = reader.getSlimMessage(); // Not sure why this is need but we keep it. if (instructions == null) return true; // We are done Bye Bye message received if (instructions.equalsIgnoreCase(SlimVersion.BYEMESSAGE)) { return false; } // Do some real work String resultString = executeInstructions(executor, instructions); SlimStreamReader.sendSlimMessage(writer, resultString); return true; }