org.apache.commons.latka.jelly.validators
Class CookieTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.latka.jelly.validators.HttpValidatorTagSupport
          extended by org.apache.commons.latka.jelly.validators.CookieTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class CookieTag
extends HttpValidatorTagSupport

A class to check for the existence and value of cookies

Version:
$Id: CookieTag.java 155424 2005-02-26 13:09:29Z dirkv $
Author:
Morgan Delagrange

Field Summary
protected  boolean _cond
           
protected static org.apache.log4j.Category _log
           
protected  String _name
           
protected  String _value
           
 
Fields inherited from class org.apache.commons.latka.jelly.validators.HttpValidatorTagSupport
_label, _listener, _response
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
CookieTag()
           
 
Method Summary
 Validator getValidator()
           
 void setCond(boolean cond)
          sets whether or not this cookie is expected
 void setName(String name)
          Setter the cookie name.
 void setValue(String value)
          Set the cookie value
 
Methods inherited from class org.apache.commons.latka.jelly.validators.HttpValidatorTagSupport
doTag, getResponse, init, setLabel, validate
 
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

_cond

protected boolean _cond

_name

protected String _name

_value

protected String _value

_log

protected static final org.apache.log4j.Category _log
Constructor Detail

CookieTag

public CookieTag()
Method Detail

getValidator

public Validator getValidator()
Specified by:
getValidator in class HttpValidatorTagSupport

setName

public void setName(String name)
Setter the cookie name.

Parameters:
name - cookie name to look for

setValue

public void setValue(String value)
Set the cookie value

Parameters:
value - cookie value

setCond

public void setCond(boolean cond)
sets whether or not this cookie is expected

Parameters:
cond - true if the cookie is epected, false otherwise


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.