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

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.jetty.ResponseCodeTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

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

Set the response code in the request handler of a Jetty http server

Author:
rtl

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ResponseCodeTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Perform the tag functionality.
 int getValue()
          Getter for property value.
 void setValue(int 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
 

Constructor Detail

ResponseCodeTag

public ResponseCodeTag()
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, set the response code in the http response found in the jelly context

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

getValue

public int getValue()
Getter for property value.

Returns:
value of property value.

setValue

public void setValue(int value)
Setter for property value.

Parameters:
value - New value of property value.


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