package com.eactive.eai.rms.client.handler;//package com.eactive.eai.rms.client.handler;
//
//import com.eactive.eai.rms.onl.vo.LogConfigurationCommand;
//
//import kr.co.kpl.org.apache.log4j.Logger;
//import org.apache.mina.common.IoSession;
//
//public class LogConfigurationCommandHandler implements IMessageHandler {
//
//    private static final Logger logger = Logger.getLogger(LogConfigurationCommandHandler.class);
//
//    public Class<LogConfigurationCommand> targetClass() {
//        return LogConfigurationCommand.class;
//    }
//
//    public void messageReceived(IoSession session, Object message)
//            throws Exception {
//
//        LogConfigurationCommand command = (LogConfigurationCommand) message;
//
//        LogConfigurer configurer = new LogConfigurer();
//
//        try {
//            switch (command.getCommand()) {
//            case LogConfigurationCommand.VIEW_COMMAND:
//                command.setCategoryMap(configurer.view());
//                break;
//            case LogConfigurationCommand.EDIT_COMMAND:
//                configurer.edit(command.getLogCategorys(),
//                    command.getLogCategoryLevels(),
//                    command.getLogDetailCategorys(),
//                    command.getLogDetailCategoryLevels(),
//                    command.getForeceLevel(), command.getForceDetailLevel());
//                break;
//            case LogConfigurationCommand.DETAIL_COMMAND:
//                command.setCategoryMap(configurer.detail(command.getLogCategory()));
//                break;
//            case LogConfigurationCommand.NEW_LOGGER_COMMAND:
//                configurer.newLogger(command.getLogCategory());
//                break;
//            case 0:
//                break;
//            }
//
//            command.setCommand(LogConfigurationCommand.PROCESS_OK_COMMAND);
//        } catch (Exception e) {
//            logger.error(this, e);
//        }
//
//        session.write(command);
//
//    }
//
//}
