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

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.jetty.AbstractMethodHandlerTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag
Direct Known Subclasses:
DeleteRequestTag, GetRequestTag, PostRequestTag, PutRequestTag

public abstract class AbstractMethodHandlerTag
extends org.apache.commons.jelly.TagSupport

An abstract base tag to declare a handler for a particular request method in an http context in an http server

Version:
$Id: AbstractMethodHandlerTag.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
AbstractMethodHandlerTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Perform the tag functionality.
abstract  java.lang.String getMethodHandled()
          Override this to return the name of the http method handled by this tag
 
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

AbstractMethodHandlerTag

public AbstractMethodHandlerTag()
Method Detail

getMethodHandled

public abstract java.lang.String getMethodHandled()
Override this to return the name of the http method handled by this tag

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 http method handler to the parent that invokes the script in the body of this tag when processing an http request
Overrides:
doTag in class org.apache.commons.jelly.TagSupport
Parameters:
xmlOutput - where to send output
Throws:
java.lang.Exception - when an error occurs


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