org.apache.commons.jelly.tags.jetty
Class JellyResourceHandlerTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.tags.jetty.JellyResourceHandlerTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class JellyResourceHandlerTag
extends org.apache.commons.jelly.TagSupport

A resource handler that uses Jelly scripts to provide resources to a context in a Jetty http server

Version:
$Id: JellyResourceHandlerTag.java 155420 2005-02-26 13:06:03Z dirkv $
Author:
rtl

Field Summary
private  JellyResourceHttpHandler _jellyResourceHttpHandler
          The http handler that calls the body of the tag.
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
JellyResourceHandlerTag()
          Creates a new instance of JellyResourceHandlerTag
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Perform the tag functionality.
protected  JellyResourceHttpHandler getJellyResourceHttpHandler()
           
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_jellyResourceHttpHandler

private JellyResourceHttpHandler _jellyResourceHttpHandler
The http handler that calls the body of the tag.

Constructor Detail

JellyResourceHandlerTag

public JellyResourceHandlerTag()
Creates a new instance of JellyResourceHandlerTag

Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
           throws org.apache.commons.jelly.JellyTagException
Perform the tag functionality. In this case, add an http handler to the parent context that runs the script in the body of this tag

Parameters:
xmlOutput - where to send output
Throws:
java.lang.Exception - when an error occurs
org.apache.commons.jelly.JellyTagException

getJellyResourceHttpHandler

protected JellyResourceHttpHandler getJellyResourceHttpHandler()