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

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.http.HttpTagSupport
          extended byorg.apache.commons.jelly.tags.http.HeadTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class HeadTag
extends HttpTagSupport

A http get tag

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

Field Summary
private  org.apache.commons.httpclient.methods.HeadMethod _headMethod
          the head method
 
Fields inherited from class org.apache.commons.jelly.tags.http.HttpTagSupport
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
HeadTag()
          Creates a new instance of HeadTag
 
Method Summary
protected  org.apache.commons.httpclient.HttpMethod getHttpMethod()
          A method that must be implemented by subclasses to provide the url method implementation
 
Methods inherited from class org.apache.commons.jelly.tags.http.HttpTagSupport
addParameter, 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, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_headMethod

private org.apache.commons.httpclient.methods.HeadMethod _headMethod
the head method

Constructor Detail

HeadTag

public HeadTag()
Creates a new instance of HeadTag

Method Detail

getHttpMethod

protected org.apache.commons.httpclient.HttpMethod getHttpMethod()
                                                          throws java.net.MalformedURLException
Description copied from class: HttpTagSupport
A method that must be implemented by subclasses to provide the url method implementation

Specified by:
getHttpMethod in class HttpTagSupport
Returns:
a url method for a Head request
Throws:
java.net.MalformedURLException - when the url is bad