com.sun.xml.ws.developer
Class SchemaValidationFeature

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

@ManagedData
public class SchemaValidationFeature
extends WebServiceFeature

WebServiceFeature for schema validation.

Since:
JAX-WS 2.1.3
See Also:
SchemaValidation

Field Summary
static java.lang.String ID
          Constant value identifying the SchemaValidationFeature
 
Fields inherited from class javax.xml.ws.WebServiceFeature
enabled
 
Constructor Summary
SchemaValidationFeature()
           
SchemaValidationFeature(boolean inbound, boolean outbound)
           
SchemaValidationFeature(boolean inbound, boolean outbound, java.lang.Class<? extends ValidationErrorHandler> clazz)
           
SchemaValidationFeature(java.lang.Class<? extends ValidationErrorHandler> clazz)
          Create an SchemaValidationFeature.
 
Method Summary
 java.lang.Class<? extends ValidationErrorHandler> getErrorHandler()
          Invalid schema instances are rejected, a SOAP fault message is created for any invalid request and response message.
 java.lang.String getID()
           
 boolean isInbound()
          Turns validation on/off for inbound messages
 boolean isOutbound()
          Turns validation on/off for outbound messages
 
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 java.lang.String ID
Constant value identifying the SchemaValidationFeature

See Also:
Constant Field Values
Constructor Detail

SchemaValidationFeature

public SchemaValidationFeature()

SchemaValidationFeature

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


SchemaValidationFeature

public SchemaValidationFeature(boolean inbound,
                               boolean outbound)
Since:
JAX-WS RI 2.2.2

SchemaValidationFeature

public SchemaValidationFeature(boolean inbound,
                               boolean outbound,
                               java.lang.Class<? extends ValidationErrorHandler> clazz)
Since:
JAX-WS RI 2.2.2
Method Detail

getID

@ManagedAttribute
public java.lang.String getID()
Specified by:
getID in class WebServiceFeature

getErrorHandler

@ManagedAttribute
public java.lang.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.


isInbound

public boolean isInbound()
Turns validation on/off for inbound messages

Since:
JAX-WS RI 2.2.2

isOutbound

public boolean isOutbound()
Turns validation on/off for outbound messages

Since:
JAX-WS RI 2.2.2


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.