|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.latka.jelly.validators.HttpValidatorTagSupport
public abstract class HttpValidatorTagSupport
A base class for validation tags
Field Summary | |
---|---|
protected String |
_label
label for the test |
protected LatkaEventInfo |
_listener
the listener handling request success/failure etc |
protected static org.apache.log4j.Category |
_log
|
protected Response |
_response
the response being validated |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
HttpValidatorTagSupport()
|
Method Summary | |
---|---|
void |
doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
Provides a default implementation for simple validation tags. |
Response |
getResponse()
the response being validated |
abstract Validator |
getValidator()
|
void |
init()
Called by the ValidationFactory. |
void |
setLabel(String label)
|
boolean |
validate(Validator validator)
validate the response using the validator provided. |
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 |
---|
protected Response _response
protected LatkaEventInfo _listener
protected String _label
protected static final org.apache.log4j.Category _log
Constructor Detail |
---|
public HttpValidatorTagSupport()
Method Detail |
---|
public abstract Validator getValidator()
public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput) throws org.apache.commons.jelly.JellyTagException
xmlOutput
- a place to write output
org.apache.commons.jelly.JellyTagException
- if the tag body could not be invokedpublic void init()
listener
- supplier of information about the suite/progresstagName
- name of the validating tagreader
- xml to processresponse
- response to validatepublic void setLabel(String label)
public Response getResponse()
public boolean validate(Validator validator)
validator
- the object that performs validation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |