Class ValidationErrorHandler

java.lang.Object
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 validation.
Author:
Jitendra Kotamraju
See Also:
  • Field Details

    • packet

      protected Packet packet
  • Constructor Details

    • ValidationErrorHandler

      protected ValidationErrorHandler()
      Default constructor.
  • Method Details

    • 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