org.mmbase.framework
Class JspRenderer

java.lang.Object
  extended by org.mmbase.framework.AbstractRenderer
      extended by org.mmbase.framework.JspRenderer
All Implemented Interfaces:
Renderer

public class JspRenderer
extends AbstractRenderer

A Renderer implementation based on a jsp in the /mmbase/components/ directory.

Since:
MMBase-1.9
Version:
$Id: JspRenderer.java 41989 2010-04-20 16:45:39Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.framework.Renderer
Renderer.Type
 
Field Summary
static String JSP_ROOT
           
protected  String path
           
 
Fields inherited from class org.mmbase.framework.AbstractRenderer
type
 
Constructor Summary
JspRenderer(Renderer.Type t, String p, Block parent)
           
 
Method Summary
 Parameter<?>[] getParameters()
          A renderer may need certain parameters.
 String getPath()
           
 URI getUri()
          An URI which may identify the implementation of this Renderer.
 void render(Parameters blockParameters, Writer w, RenderHints hints)
          Renders to a writer.
 String toString()
           
 
Methods inherited from class org.mmbase.framework.AbstractRenderer
decorateIntro, decorateOutro, getBlock, getType, getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JSP_ROOT

public static String JSP_ROOT

path

protected final String path
Constructor Detail

JspRenderer

public JspRenderer(Renderer.Type t,
                   String p,
                   Block parent)
Method Detail

getPath

public String getPath()

getParameters

public Parameter<?>[] getParameters()
Description copied from interface: Renderer
A renderer may need certain parameters. These are added to the block-parameters. This method is called on instantation of the renderer.

Specified by:
getParameters in interface Renderer
Overrides:
getParameters in class AbstractRenderer

render

public void render(Parameters blockParameters,
                   Writer w,
                   RenderHints hints)
            throws FrameworkException
Description copied from interface: Renderer
Renders to a writer. In case of e.g. a JSPView, the parameters must also contain the Http Servlet response and request, besided specific parameters for this component.

Specified by:
render in interface Renderer
Specified by:
render in class AbstractRenderer
Throws:
FrameworkException

toString

public String toString()
Overrides:
toString in class Object

getUri

public URI getUri()
Description copied from interface: Renderer
An URI which may identify the implementation of this Renderer.

Specified by:
getUri in interface Renderer
Overrides:
getUri in class AbstractRenderer


MMBase 2.0-SNAPSHOT - null