All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.silentgo.core.render.RenderModel Maven / Gradle / Ivy

There is a newer version: 0.0.49
Show newest version
package com.silentgo.core.render;

import com.silentgo.core.config.Const;
import com.silentgo.core.exception.AppRenderException;
import com.silentgo.core.render.support.JspRender;
import com.silentgo.servlet.http.Request;
import com.silentgo.servlet.http.Response;

/**
 * Project : silentgo
 * com.silentgo.core.render
 *
 * @author teddyzhu
 *         

* Created by teddyzhu on 16/8/29. */ public class RenderModel { private Render render = new JspRender(Const.BaseView); private Object result = null; private Request request; private Response response; public RenderModel(Render render, Object result, Request request, Response response) { this.render = render; this.result = result; this.request = request; this.response = response; } public void render() throws AppRenderException { render.render(response, request, result); } public Render getRender() { return render; } public void setRender(Render render) { this.render = render; } public Object getResult() { return result; } public void setResult(Object result) { this.result = result; } public Request getRequest() { return request; } public void setRequest(Request request) { this.request = request; } public Response getResponse() { return response; } public void setResponse(Response response) { this.response = response; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy