com.sun.xml.ws.developer
Class SchemaValidationFeature

java.lang.Object
  extended by javax.xml.ws.WebServiceFeature
      extended by com.sun.xml.ws.developer.SchemaValidationFeature

public class SchemaValidationFeature
extends javax.xml.ws.WebServiceFeature

WebServiceFeature for schema validation.

Since:
JAX-WS 2.1.3
See Also:
SchemaValidation

Field Summary
static String ID
          Constant value identifying the SchemaValidationFeature
 
Fields inherited from class javax.xml.ws.WebServiceFeature
enabled
 
Constructor Summary
SchemaValidationFeature()
           
SchemaValidationFeature(Class<? extends ValidationErrorHandler> clazz)
          Create an SchemaValidationFeature.
 
Method Summary
 Class<? extends ValidationErrorHandler> getErrorHandler()
          Invalid schema instances are rejected, a SOAP fault message is created for any invalid request and response message.
 String getID()
           
 
Methods inherited from class javax.xml.ws.WebServiceFeature
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Constant value identifying the SchemaValidationFeature

See Also:
Constant Field Values
Constructor Detail

SchemaValidationFeature

public SchemaValidationFeature()

SchemaValidationFeature

public SchemaValidationFeature(Class<? extends ValidationErrorHandler> clazz)
Create an SchemaValidationFeature. The instance created will be enabled.

Method Detail

getID

public String getID()
Specified by:
getID in class javax.xml.ws.WebServiceFeature

getErrorHandler

public Class<? extends ValidationErrorHandler> getErrorHandler()
Invalid schema instances are rejected, a SOAP fault message is created for any invalid request and response message. If it is set to false, schema validation messages are just logged.