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
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
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 |
packet
protected Packet packet
ValidationErrorHandler
public ValidationErrorHandler()
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