package cc.smtweb.framework.core.mvc.controller.binder.attr;

import javax.servlet.http.HttpServletRequest;

/**
 * API函数@SwBody参数的转换处理，POST请求直接转换Json内容为Bean对象，GET请求转换Map请求参数为Bean对
 *
 * @author xkliu
 */
public class BeanAttrEditor extends AbstractAttrEditor {
    @Override
    public Object getValue(String paramName, Class<?> paramType, HttpServletRequest request) {
        return request.getAttribute(paramName);
    }
}
