org.apache.commons.jelly.tags.http
Class BodyTag

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

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

A tag to set the body for posts and puts etc

Version:
$Id: BodyTag.java,v 1.3 2002/07/14 16:44:10 dion Exp $
Author:
dion

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
BodyTag()
          Creates a new instance of BodyTag
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Perform the tag functionality.
 
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

BodyTag

public BodyTag()
Creates a new instance of BodyTag
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, get the parent http tag, and if it's a post or put, set the request body from the body of this tag.
Overrides:
doTag in class org.apache.commons.jelly.TagSupport
Parameters:
xmlOutput - for writing output to
Throws:
java.lang.Exception - when any error occurs


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