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

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

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

A tag to hold a part of a multiPartPost


Nested Class Summary
private  class PartTag.MyStringPart
          Extend StringPart so that I can specify the content type (ex: text/plain)
 
Field Summary
private  java.lang.String _contentType
          parameter type (like text/plain)
private  java.lang.String _name
          parameter name
private  java.lang.String _value
          parameter value
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
PartTag()
          Creates a new instance of PartTag
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Perform the tag functionality.
 java.lang.String getContentType()
          Getter for property contentType.
 java.lang.String getName()
          Getter for property name.
 java.lang.String getValue()
          Getter for property value.
 void setContentType(java.lang.String contentType)
          Setter for property contentType.
 void setName(java.lang.String name)
          Setter for property name.
 void setValue(java.lang.String value)
          Setter for property value.
 
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

_name

private java.lang.String _name
parameter name


_value

private java.lang.String _value
parameter value


_contentType

private java.lang.String _contentType
parameter type (like text/plain)

Constructor Detail

PartTag

public PartTag()
Creates a new instance of PartTag

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, store this parameter in the <mppost> tag above me

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

getName

public java.lang.String getName()
Getter for property name.

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

getValue

public java.lang.String getValue()
Getter for property value.

Returns:
Value of property value.

setValue

public void setValue(java.lang.String value)
Setter for property value.

Parameters:
value - New value of property value.

getContentType

public java.lang.String getContentType()
Getter for property contentType.

Returns:
Value of contentType.

setContentType

public void setContentType(java.lang.String contentType)
Setter for property contentType.

Parameters:
value - New value of contentType.