public class RenderFactory extends Object implements IRenderFactory
Modifier and Type | Field and Description |
---|---|
protected Constants |
constants |
protected Engine |
engine |
protected com.jfinal.render.RenderFactory.MainRenderFactory |
mainRenderFactory |
protected javax.servlet.ServletContext |
servletContext |
Constructor and Description |
---|
RenderFactory() |
protected Engine engine
protected Constants constants
protected javax.servlet.ServletContext servletContext
protected com.jfinal.render.RenderFactory.MainRenderFactory mainRenderFactory
public void init(Engine engine, Constants constants, javax.servlet.ServletContext servletContext)
init
in interface IRenderFactory
public Render getRender(String view)
getRender
in interface IRenderFactory
public Render getTemplateRender(String view)
getTemplateRender
in interface IRenderFactory
public Render getFreeMarkerRender(String view)
getFreeMarkerRender
in interface IRenderFactory
public Render getJspRender(String view)
getJspRender
in interface IRenderFactory
public Render getVelocityRender(String view)
getVelocityRender
in interface IRenderFactory
public Render getJsonRender()
getJsonRender
in interface IRenderFactory
public Render getJsonRender(String key, Object value)
getJsonRender
in interface IRenderFactory
public Render getJsonRender(String[] attrs)
getJsonRender
in interface IRenderFactory
public Render getJsonRender(String jsonText)
getJsonRender
in interface IRenderFactory
public Render getJsonRender(Object object)
getJsonRender
in interface IRenderFactory
public Render getTextRender(String text)
getTextRender
in interface IRenderFactory
public Render getTextRender(String text, String contentType)
getTextRender
in interface IRenderFactory
public Render getTextRender(String text, ContentType contentType)
getTextRender
in interface IRenderFactory
public Render getDefaultRender(String view)
getDefaultRender
in interface IRenderFactory
public Render getErrorRender(int errorCode, String view)
getErrorRender
in interface IRenderFactory
public Render getErrorRender(int errorCode)
getErrorRender
in interface IRenderFactory
public Render getFileRender(String fileName)
getFileRender
in interface IRenderFactory
public Render getFileRender(String fileName, String downloadFileName)
getFileRender
in interface IRenderFactory
public Render getFileRender(File file)
getFileRender
in interface IRenderFactory
public Render getFileRender(File file, String downloadFileName)
getFileRender
in interface IRenderFactory
public Render getRedirectRender(String url)
getRedirectRender
in interface IRenderFactory
public Render getRedirectRender(String url, boolean withQueryString)
getRedirectRender
in interface IRenderFactory
public Render getRedirect301Render(String url)
getRedirect301Render
in interface IRenderFactory
public Render getRedirect301Render(String url, boolean withQueryString)
getRedirect301Render
in interface IRenderFactory
public Render getNullRender()
getNullRender
in interface IRenderFactory
public Render getJavascriptRender(String jsText)
getJavascriptRender
in interface IRenderFactory
public Render getHtmlRender(String htmlText)
getHtmlRender
in interface IRenderFactory
public Render getXmlRender(String view)
getXmlRender
in interface IRenderFactory
public Render getCaptchaRender()
getCaptchaRender
in interface IRenderFactory
public Render getQrCodeRender(String content, int width, int height)
getQrCodeRender
in interface IRenderFactory
public Render getQrCodeRender(String content, int width, int height, char errorCorrectionLevel)
getQrCodeRender
in interface IRenderFactory
Copyright © 2018. All rights reserved.