org.ofbiz.webapp.view
Class JPublishWrapper

java.lang.Object
  extended by org.ofbiz.webapp.view.JPublishWrapper

public class JPublishWrapper
extends java.lang.Object

JPublishWrapper - Used for calling pages through JPublish


Field Summary
static java.lang.String module
           
protected  ServletContext servletContext
           
protected  SiteContext siteContext
           
 
Constructor Summary
JPublishWrapper(ServletContext context)
           
 
Method Summary
protected  void configureClasspath(java.io.File webInfPath)
           
protected  boolean executeGlobalActions(HttpServletRequest request, HttpServletResponse response, JPublishContext context, java.lang.String path, boolean allowRedirect)
           
protected  boolean executeParameterActions(HttpServletRequest request, HttpServletResponse response, JPublishContext context, java.lang.String path, boolean allowRedirect)
           
protected  boolean executePathActions(HttpServletRequest request, HttpServletResponse response, JPublishContext context, java.lang.String path, boolean allowRedirect)
           
protected  boolean executePostEvaluationActions(HttpServletRequest request, HttpServletResponse response, JPublishContext context, java.lang.String path)
           
protected  boolean executePreEvaluationActions(HttpServletRequest request, HttpServletResponse response, JPublishContext context, java.lang.String path)
           
 java.lang.String render(java.lang.String path, HttpServletRequest request, HttpServletResponse response)
          Renders a page and returns the string containing the content of the rendered page
 void render(java.lang.String path, HttpServletRequest request, HttpServletResponse response, java.io.Writer writer)
           
 void render(java.lang.String path, HttpServletRequest request, HttpServletResponse response, java.io.Writer writer, java.io.OutputStream outputStream)
           
 void render(java.lang.String path, HttpServletRequest request, HttpServletResponse response, java.io.Writer writer, java.io.OutputStream outputStream, boolean allowRedirect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

servletContext

protected ServletContext servletContext

siteContext

protected SiteContext siteContext
Constructor Detail

JPublishWrapper

public JPublishWrapper(ServletContext context)
Method Detail

configureClasspath

protected void configureClasspath(java.io.File webInfPath)

executeGlobalActions

protected boolean executeGlobalActions(HttpServletRequest request,
                                       HttpServletResponse response,
                                       JPublishContext context,
                                       java.lang.String path,
                                       boolean allowRedirect)
                                throws java.lang.Exception
Throws:
java.lang.Exception

executePathActions

protected boolean executePathActions(HttpServletRequest request,
                                     HttpServletResponse response,
                                     JPublishContext context,
                                     java.lang.String path,
                                     boolean allowRedirect)
                              throws java.lang.Exception
Throws:
java.lang.Exception

executeParameterActions

protected boolean executeParameterActions(HttpServletRequest request,
                                          HttpServletResponse response,
                                          JPublishContext context,
                                          java.lang.String path,
                                          boolean allowRedirect)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

executePreEvaluationActions

protected boolean executePreEvaluationActions(HttpServletRequest request,
                                              HttpServletResponse response,
                                              JPublishContext context,
                                              java.lang.String path)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

executePostEvaluationActions

protected boolean executePostEvaluationActions(HttpServletRequest request,
                                               HttpServletResponse response,
                                               JPublishContext context,
                                               java.lang.String path)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

render

public java.lang.String render(java.lang.String path,
                               HttpServletRequest request,
                               HttpServletResponse response)
                        throws GeneralException
Renders a page and returns the string containing the content of the rendered page

Parameters:
path - Path to the page
request - HttpServletRequest object for page prep
response - HttpServletResponse object (not used for writing).
Returns:
a String containing the rendered page
Throws:
GeneralException

render

public void render(java.lang.String path,
                   HttpServletRequest request,
                   HttpServletResponse response,
                   java.io.Writer writer)
            throws GeneralException
Throws:
GeneralException

render

public void render(java.lang.String path,
                   HttpServletRequest request,
                   HttpServletResponse response,
                   java.io.Writer writer,
                   java.io.OutputStream outputStream)
            throws GeneralException
Throws:
GeneralException

render

public void render(java.lang.String path,
                   HttpServletRequest request,
                   HttpServletResponse response,
                   java.io.Writer writer,
                   java.io.OutputStream outputStream,
                   boolean allowRedirect)
            throws GeneralException
Throws:
GeneralException