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

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.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 155420 2005-02-26 13:06:03Z dirkv $
Author:
dion

Field Summary
 
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.

Parameters:
xmlOutput - for writing output to
Throws:
java.lang.Exception - when any error occurs
org.apache.commons.jelly.JellyTagException


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