public abstract class HttpValidatorTagSupport
extends org.apache.commons.jelly.TagSupport
Modifier and Type | Field and Description |
---|---|
protected java.lang.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
|
Constructor and Description |
---|
HttpValidatorTagSupport() |
Modifier and Type | Method and Description |
---|---|
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(java.lang.String label) |
boolean |
validate(Validator validator)
validate the response using the validator provided.
|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
protected Response _response
protected LatkaEventInfo _listener
protected java.lang.String _label
protected static final org.apache.log4j.Category _log
public abstract Validator getValidator()
public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput) throws org.apache.commons.jelly.JellyTagException
xmlOutput
- a place to write outputorg.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(java.lang.String label)
public Response getResponse()
public boolean validate(Validator validator)
validator
- the object that performs validationCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.