com.sun.xml.ws.developer
Class ValidationErrorHandler

java.lang.Object
  extended by com.sun.xml.ws.developer.ValidationErrorHandler
All Implemented Interfaces:
ErrorHandler
Direct Known Subclasses:
DraconianValidationErrorHandler

public abstract class ValidationErrorHandler
extends Object
implements ErrorHandler

An ErrorHandler to receive errors encountered during the Validator.validate(javax.xml.transform.Source) method invocation. Specify a custom handler in SchemaValidation, SchemaValidationFeature to customize the error handling process during validaiton.

See Also:
SchemaValidation

Field Summary
protected  Packet packet
           
 
Constructor Summary
ValidationErrorHandler()
           
 
Method Summary
 void setPacket(Packet packet)
          Use it to communicate validation errors with the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ErrorHandler
error, fatalError, warning
 

Field Detail

packet

protected Packet packet
Constructor Detail

ValidationErrorHandler

public ValidationErrorHandler()
Method Detail

setPacket

public void setPacket(Packet packet)
Use it to communicate validation errors with the application. For e.g validation exceptions can be stored in Packet.invocationProperties during request processing and can be accessed in the endpoint via MessageContext

Parameters:
packet - for request or response message