package nc.bs.gl.impl;

import java.io.IOException;

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

import nc.bs.framework.adaptor.IHttpServletAdaptor;
import nc.bs.framework.common.InvocationInfoProxy;
import nc.bs.framework.common.NCLocator;
import nc.bs.framework.server.ISecurityTokenCallback;
import nc.bs.servlet.service.BaseServlet;
import nc.itf.uap.IUAPQueryBS;
import nc.log.NcLog;
import net.sf.json.JSONObject;

public class VoucherAddImpl extends BaseServlet implements IHttpServletAdaptor{
	private IUAPQueryBS iuap = (IUAPQueryBS) NCLocator.getInstance().lookup(IUAPQueryBS.class.getName());

	@Override
	public void doAction(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		//InvocationInfoProxy.getInstance().setUserDataSource("NC6337");
		NCLocator.getInstance().lookup(ISecurityTokenCallback.class).token("NCSystem".getBytes(),"pfxx".getBytes());
		String createStr = buildJson(req, resp, this.getClass().getName());
		JSONObject json = JSONObject.fromObject(createStr);
		NcLog.info("틴聯"+json.toString());
		checkJson(json);//렷왕털뙤
		
	}

	/**
	 * 렷왕털뙤
	 * @param json
	 */
	private void checkJson(JSONObject json) {
		// TODO Auto-generated method stub
		
	}

}
