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

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.ByteLengthTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class ByteLengthTag
extends HttpValidatorTagSupport

A class to check the size of an HTTP response

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

Field Summary
protected static org.apache.log4j.Category _log
           
protected  int _maxLength
           
protected  int _minLength
           
 
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
ByteLengthTag()
           
 
Method Summary
 Validator getValidator()
           
 void setMax(int maxLength)
          Setter for maximum byte length.
 void setMin(int minLength)
          Setter for minimum byte length.
 
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

_minLength

protected int _minLength

_maxLength

protected int _maxLength

_log

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

ByteLengthTag

public ByteLengthTag()
Method Detail

getValidator

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

setMin

public void setMin(int minLength)
Setter for minimum byte length.

Parameters:
minLength - minimum byte length

setMax

public void setMax(int maxLength)
Setter for maximum byte length.

Parameters:
maxLength - max byte length


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