Package net.hasor.mvc.web

Examples of net.hasor.mvc.web.WebModelController


        this.servletRequest = servletRequest;
        this.servletResponse = servletResponse;
    }
    @Override
    public Object exeCall(Call call) throws Throwable {
        WebModelController webController = null;
        try {
            ModelController controller = call.getTarget();
            if (controller instanceof WebModelController) {
                webController = ((WebModelController) controller);
                webController.initController(this.servletRequest, this.servletResponse);
            }
            return super.exeCall(new WebCallWrap(call, this.servletRequest, this.servletResponse));
        } finally {
            if (webController != null) {
                webController.initController(null, null);
            }
        }
    }
View Full Code Here

TOP

Related Classes of net.hasor.mvc.web.WebModelController

Copyright © 2018 www.massapicom. 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.