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

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.jetty.ResourceHandlerTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

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

Declare a static file resource handler for a Jetty http server

Version:
$Id: ResourceHandlerTag.java,v 1.3 2002/07/14 12:38:22 dion Exp $
Author:
rtl

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ResourceHandlerTag()
          Creates a new instance of ResourceHandlerTag
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Perform the tag functionality.
 java.lang.String getAllowedMethods()
          Getter for property allowedMethods.
 void setAllowedMethods(java.lang.String allowedMethods)
          Setter for property allowedMethods.
 
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
 

Constructor Detail

ResourceHandlerTag

public ResourceHandlerTag()
Creates a new instance of ResourceHandlerTag
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 a resource handler to the parent context, setting the allowed methods if required
Overrides:
doTag in class org.apache.commons.jelly.TagSupport
Parameters:
xmlOutput - where to send output
Throws:
java.lang.Exception - when an error occurs

getAllowedMethods

public java.lang.String getAllowedMethods()
Getter for property allowedMethods.
Returns:
value of property allowedMethods.

setAllowedMethods

public void setAllowedMethods(java.lang.String allowedMethods)
Setter for property allowedMethods.
Parameters:
allowedMethods - Comma separated list of allowed methods.


Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.