Class ScreenFopViewHandler
- java.lang.Object
-
- org.apache.ofbiz.webapp.view.AbstractViewHandler
-
- org.apache.ofbiz.widget.renderer.fo.ScreenFopViewHandler
-
- All Implemented Interfaces:
ViewHandler
public class ScreenFopViewHandler extends AbstractViewHandler
Uses XSL-FO formatted templates to generate PDF, PCL, POSTSCRIPT etc. views This handler will use JPublish to generate the XSL-FO
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DEFAULT_ERROR_TEMPLATE
static java.lang.String
module
protected ServletContext
servletContext
-
Fields inherited from class org.apache.ofbiz.webapp.view.AbstractViewHandler
name
-
-
Constructor Summary
Constructors Constructor Description ScreenFopViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(ServletContext context)
Initializes the handler.void
render(java.lang.String name, java.lang.String page, java.lang.String info, java.lang.String contentType, java.lang.String encoding, HttpServletRequest request, HttpServletResponse response)
Render the page.protected void
renderError(java.lang.String msg, java.lang.Exception e, java.lang.String screenOutString, HttpServletRequest request, HttpServletResponse response)
-
Methods inherited from class org.apache.ofbiz.webapp.view.AbstractViewHandler
getName, setName
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
DEFAULT_ERROR_TEMPLATE
protected static final java.lang.String DEFAULT_ERROR_TEMPLATE
- See Also:
- Constant Field Values
-
servletContext
protected ServletContext servletContext
-
-
Method Detail
-
init
public void init(ServletContext context) throws ViewHandlerException
Description copied from interface:ViewHandler
Initializes the handler. Since handlers use the singleton pattern this method should only be called the first time the handler is used.- Parameters:
context
- ServletContext This may be needed by the handler in order to lookup properties or XML definition files for rendering pages or handler options.- Throws:
ViewHandlerException
- See Also:
ViewHandler.init(javax.servlet.ServletContext)
-
render
public void render(java.lang.String name, java.lang.String page, java.lang.String info, java.lang.String contentType, java.lang.String encoding, HttpServletRequest request, HttpServletResponse response) throws ViewHandlerException
Description copied from interface:ViewHandler
Render the page.- Parameters:
name
- The name of the view.page
- The source of the view; could be a page, url, etc depending on the type of handler.info
- An info string attached to this viewrequest
- The HttpServletRequest object used when requesting this page.response
- The HttpServletResponse object to be used to present the page.- Throws:
ViewHandlerException
- See Also:
ViewHandler.render(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
-
renderError
protected void renderError(java.lang.String msg, java.lang.Exception e, java.lang.String screenOutString, HttpServletRequest request, HttpServletResponse response) throws ViewHandlerException
- Throws:
ViewHandlerException
-
-