Package ir.xweb.module

Source Code of ir.xweb.module.ReplyModule

package ir.xweb.module;

import ir.xweb.data.DataTools;
import org.apache.commons.fileupload.FileItem;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;

public class ReplyModule extends Module {


    public ReplyModule(Manager manager, ModuleInfo info, ModuleParam properties) throws ModuleException {
        super(manager, info, properties);
    }

    @Override
    public void process(
            final ServletContext context,
            final HttpServletRequest request,
            final HttpServletResponse response,
            final ModuleParam param,
            final HashMap<String, FileItem> files) throws IOException {

        new DataTools().write(response, "json", null, param);
    }
}
TOP

Related Classes of ir.xweb.module.ReplyModule

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.