org.mmbase.framework
Class ResourceRenderer

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

public class ResourceRenderer
extends AbstractRenderer

A Renderer implementation based on an MMBase's ResourceLoader. Blocks rendered with this, cannot have parameters.

Since:
MMBase-1.9
Version:
$Id: ResourceRenderer.java 37278 2009-07-27 12:11:20Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.framework.Renderer
Renderer.Type
 
Field Summary
protected  boolean decorate
           
protected  String resource
           
protected  String resourceType
           
protected  String xsl
           
 
Fields inherited from class org.mmbase.framework.AbstractRenderer
type
 
Constructor Summary
ResourceRenderer(Renderer.Type t, Block parent)
           
 
Method Summary
 URI getUri()
          An URI which may identify the implementation of this Renderer.
 void render(Parameters blockParameters, Writer w, RenderHints hints)
          Renders to a writer.
 void setDecorate(boolean d)
           
 void setResource(String r)
           
 void setType(String t)
           
 void setXslt(String x)
           
 String toString()
           
 
Methods inherited from class org.mmbase.framework.AbstractRenderer
decorateIntro, decorateOutro, getBlock, getParameters, getType, getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resource

protected String resource

resourceType

protected String resourceType

xsl

protected String xsl

decorate

protected boolean decorate
Constructor Detail

ResourceRenderer

public ResourceRenderer(Renderer.Type t,
                        Block parent)
Method Detail

setResource

public void setResource(String r)

setType

public void setType(String t)

setXslt

public void setXslt(String x)
             throws MalformedURLException
Throws:
MalformedURLException

setDecorate

public void setDecorate(boolean d)

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