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

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

public class PutTag
extends HttpTagSupport

A http put

Version:
$Id: PutTag.java,v 1.3 2002/07/14 12:38:22 dion Exp $
Author:
dion

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
PutTag()
          Creates a new instance of PutTag
 
Method Summary
 void addParameter(java.lang.String name, java.lang.String value)
          Fail as PUT requests don't have parameters
protected  org.apache.commons.httpclient.HttpMethod getHttpMethod()
          Return a method to be used for put'ing
protected  void setParameters()
          Set the current parameters on the url method ready for processing
 
Methods inherited from class org.apache.commons.jelly.tags.http.HttpTagSupport
addRequestHeader, doTag, getParameters, getPath, getRequestHeaders, getResolvedUrl, getUri, getVar, isFollowRedirects, setFollowRedirects, setParameters, setParameters, setPath, setRequestHeaders, setUri, setVar
 
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

PutTag

public PutTag()
Creates a new instance of PutTag
Method Detail

getHttpMethod

protected org.apache.commons.httpclient.HttpMethod getHttpMethod()
                                                          throws java.net.MalformedURLException
Return a method to be used for put'ing
Overrides:
getHttpMethod in class HttpTagSupport
Returns:
a HttpMethod implementation
Throws:
java.net.MalformedURLException - when the url or path is invalid

setParameters

protected void setParameters()
Set the current parameters on the url method ready for processing

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String value)
Fail as PUT requests don't have parameters
Overrides:
addParameter in class HttpTagSupport
Parameters:
name - the parameter name
value - the parameter value


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