Package com.sun.xml.ws.developer
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
AnErrorHandler
to receive errors encountered during theValidator.validate(javax.xml.transform.Source)
method invocation. Specify a custom handler inSchemaValidation
,SchemaValidationFeature
to customize the error handling process during validation.- Author:
- Jitendra Kotamraju
- See Also:
SchemaValidation
-
-
Constructor Summary
Constructors Constructor Description ValidationErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
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 inPacket.invocationProperties
during request processing and can be accessed in the endpoint viaMessageContext
- Parameters:
packet
- for request or response message
-
-