org.mmbase.framework
Class DeniedRenderer

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

public class DeniedRenderer
extends AbstractRenderer

Renderer to be used in case of access denied (status 401). If rendering of a certain block proved to be not allowed for the current user. Requests get dispatched to a block 'core/401.jspx' with a more or less userfriendly message.

Since:
MMBase-1.9
Version:
$Id: DeniedRenderer.java 41989 2010-04-20 16:45:39Z michiel $
Author:
Michiel Meeuwissen, André van Toly

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.framework.Renderer
Renderer.Type
 
Field Summary
 
Fields inherited from class org.mmbase.framework.AbstractRenderer
type
 
Constructor Summary
DeniedRenderer(Renderer.Type t, Block parent)
           
 
Method Summary
 Parameter[] getParameters()
          A renderer may need certain parameters.
 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, getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeniedRenderer

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

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


MMBase 2.0-SNAPSHOT - null