public void handle(Transaction transaction) throws Exception { if (transaction.getSessionEnvironment().getUser() == null) { if (transaction.getGzipOk()) { transaction.sendHtmlNoExpireHeaderOkGzip(); transaction.write(loginOkGzipArray); } else { transaction.sendHtmlNoExpireHeaderNoGzip(); transaction.write(loginNoGzipArray); } } else { if (transaction.getGzipOk()) { transaction.sendHtmlNoExpireHeaderOkGzip(); transaction.write(logoutOkGzipArray); } else { transaction.sendHtmlNoExpireHeaderNoGzip(); transaction.write(logoutNoGzipArray); } } }