package com.eactive.eai.rms.onl.adapter.socket2.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.eactive.eai.rms.common.spring.BaseController;


/**
 * <pre>
 * 1. 기능 : 
 * 2. 처리 개요 : 
 *     - 
 * 3. 주의사항 : 
 * </pre>
 * 
 * @author : vs.net
 * @version : $Revision: 1.4 $
 * @since : rts 1.0
 */
@Controller
public class SocketLogInfomation2Controller extends BaseController 
{
	/**
	 * <pre>
	 * 1. 기능 : Socket 로그 위치 정보
	 * 2. 처리 개요 : 
	 *     - 
	 * 3. 주의사항 : Overriden 
	 * </pre>
	 * 
	 * @author : vs.net
	 * @version : $Revision: 1.4 $
	 * @since : rts 1.0
	 * @param request
	 * @param response
	 * @return
	 * @throws Exception
	 */
    @RequestMapping("/adapter/socket2/logInfomation2.do")
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception
	{
		String cmd = request.getParameter("cmd");

//		try
//		{
//			if ("SELECT_DEFAULT".equals(cmd))
//			{
//				getDefaultValue(response);
//			}
//		}
//		catch (BizException be)
//		{
//			//be.printStackTrace();
//			logger.error("[BIZ ERROR]");
//			((HttpGauceResponse) response).addException(be);
//		}
//		catch (SysException se)
//		{
//			//se.printStackTrace();
//			logger.error("[SYS ERROR]");
//			((HttpGauceResponse) response).addException(se);
//		}
//		catch (Exception e)
//		{
//			//e.printStackTrace();
//			logger.error("[SYS ERROR]");
//			((HttpGauceResponse) response).addException(e);
//		}
//		finally
//		{
//			GauceOutputStream gos = null;
//			gos = ((HttpGauceResponse) response).getGauceOutputStream();
//
//			if (gos != null)
//			{
//				try
//				{
//					gos.close();
//				}
//				catch (Exception e)
//				{
//					gos = null;
//				}
//			}
//		}

		return null;
	}

}
