net.javacrumbs.springws.test.validator
Class XPathRequestValidator

java.lang.Object
  extended by net.javacrumbs.springws.test.expression.AbstractExpressionProcessor
      extended by net.javacrumbs.springws.test.validator.XPathRequestValidator
All Implemented Interfaces:
RequestProcessor, org.springframework.core.Ordered

public class XPathRequestValidator
extends AbstractExpressionProcessor
implements RequestProcessor, org.springframework.core.Ordered

Validates request using given XPath expressions. If the expression is evaluated as true WsTestException is thrown.

Author:
Lukas Krecan

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
XPathRequestValidator()
           
 
Method Summary
protected  void expressionValid(java.lang.String expression, java.lang.String errorMessage)
          Method called if any XPath expression is evaluated as "true".
 
Methods inherited from class net.javacrumbs.springws.test.expression.AbstractExpressionProcessor
getExceptionMapping, getExpressionResolver, getOrder, getXmlUtil, processRequest, setExceptionMapping, setExpressionResolver, setOrder, setXmlUtil
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.javacrumbs.springws.test.RequestProcessor
processRequest
 
Methods inherited from interface org.springframework.core.Ordered
getOrder
 

Constructor Detail

XPathRequestValidator

public XPathRequestValidator()
Method Detail

expressionValid

protected void expressionValid(java.lang.String expression,
                               java.lang.String errorMessage)
Description copied from class: AbstractExpressionProcessor
Method called if any XPath expression is evaluated as "true".

Specified by:
expressionValid in class AbstractExpressionProcessor


Copyright © 2011. All Rights Reserved.