org.ofbiz.webapp.view
Class GenericViewRenderer

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

public class GenericViewRenderer
extends java.lang.Object

Generic JPublish View Renderer - This is in testing; for use in wrapping other renderers


Field Summary
static java.lang.String DEFAULT_RENDERER
           
static java.lang.String module
           
 java.util.Map renderers
           
protected  SiteContext siteContext
           
 
Constructor Summary
GenericViewRenderer()
           
 
Method Summary
 void init()
           
 void loadConfiguration(Configuration config)
           
 void render(JPublishContext context, java.lang.String path, java.io.InputStream in, java.io.OutputStream out)
           
 void render(JPublishContext context, java.lang.String path, java.io.Reader in, java.io.Writer out)
           
 void setSiteContext(SiteContext siteContext)
           
 
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

DEFAULT_RENDERER

public static final java.lang.String DEFAULT_RENDERER
See Also:
Constant Field Values

renderers

public java.util.Map renderers

siteContext

protected SiteContext siteContext
Constructor Detail

GenericViewRenderer

public GenericViewRenderer()
Method Detail

setSiteContext

public void setSiteContext(SiteContext siteContext)
See Also:
org.jpublish.view.ViewRenderer#setSiteContext(org.jpublish.SiteContext)

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

render

public void render(JPublishContext context,
                   java.lang.String path,
                   java.io.Reader in,
                   java.io.Writer out)
            throws java.io.IOException,
                   ViewRenderException
Throws:
java.io.IOException
ViewRenderException
See Also:
org.jpublish.view.ViewRenderer#render(org.jpublish.JPublishContext, java.io.Reader, java.io.Writer)

render

public void render(JPublishContext context,
                   java.lang.String path,
                   java.io.InputStream in,
                   java.io.OutputStream out)
            throws java.io.IOException,
                   ViewRenderException
Throws:
java.io.IOException
ViewRenderException
See Also:
org.jpublish.view.ViewRenderer#render(org.jpublish.JPublishContext, java.io.InputStream, java.io.OutputStream)

loadConfiguration

public void loadConfiguration(Configuration config)
                       throws ConfigurationException
Throws:
ConfigurationException
See Also:
org.jpublish.view.ViewRenderer#loadConfiguration(com.anthonyeden.lib.config.Configuration)