com.sun.xml.ws.util.pipe
Class AbstractSchemaValidationTube

java.lang.Object
  extended by com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
      extended by com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
          extended by com.sun.xml.ws.util.pipe.AbstractSchemaValidationTube
All Implemented Interfaces:
Pipe, Tube
Direct Known Subclasses:
ClientSchemaValidationTube, ServerSchemaValidationTube

public abstract class AbstractSchemaValidationTube
extends AbstractFilterTubeImpl

Tube that does the schema validation.


Field Summary
protected  WSBinding binding
           
protected  SchemaValidationFeature feature
           
protected  DocumentAddressResolver resolver
           
 
Fields inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
next
 
Constructor Summary
protected AbstractSchemaValidationTube(AbstractSchemaValidationTube that, TubeCloner cloner)
           
  AbstractSchemaValidationTube(WSBinding binding, Tube next)
           
 
Method Summary
protected  void addSchemaFragmentSource(Document doc, String systemId, List<Source> list)
          Locates xsd:schema elements in the WSDL and creates DOMSource and adds them to the list
protected  Document createDOM(SDDocument doc)
           
protected abstract  Validator getValidator()
           
protected abstract  boolean isNoValidation()
           
protected static void printDOM(DOMSource src)
           
 NextAction processRequest(Packet request)
          Default no-op implementation.
 NextAction processResponse(Packet response)
          Default no-op implementation.
protected  DOMSource toDOMSource(Source source)
           
 
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
preDestroy, processException
 
Methods inherited from class com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
copy, copy, doInvoke, doInvokeAndForget, doReturnWith, doSuspend, doThrow, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

binding

protected final WSBinding binding

feature

protected final SchemaValidationFeature feature

resolver

protected final DocumentAddressResolver resolver
Constructor Detail

AbstractSchemaValidationTube

public AbstractSchemaValidationTube(WSBinding binding,
                                    Tube next)

AbstractSchemaValidationTube

protected AbstractSchemaValidationTube(AbstractSchemaValidationTube that,
                                       TubeCloner cloner)
Method Detail

getValidator

protected abstract Validator getValidator()

isNoValidation

protected abstract boolean isNoValidation()

createDOM

protected Document createDOM(SDDocument doc)

addSchemaFragmentSource

@Nullable
protected void addSchemaFragmentSource(Document doc,
                                                String systemId,
                                                List<Source> list)
Locates xsd:schema elements in the WSDL and creates DOMSource and adds them to the list

Parameters:
doc - WSDL document
systemId - systemId for WSDL document
list - xsd:schema DOMSource list

processRequest

public NextAction processRequest(Packet request)
Description copied from class: AbstractFilterTubeImpl
Default no-op implementation.

Specified by:
processRequest in interface Tube
Overrides:
processRequest in class AbstractFilterTubeImpl
Parameters:
request - The packet that represents a request message. If the packet has a non-null message, it must be a valid unconsumed Message. This message represents the SOAP message to be sent as a request.

The packet is also allowed to carry no message, which indicates that this is an output-only request. (that's called "solicit", right? - KK)

Returns:
A NextAction object that represents the next action to be taken by the JAX-WS runtime.

processResponse

public NextAction processResponse(Packet response)
Description copied from class: AbstractFilterTubeImpl
Default no-op implementation.

Specified by:
processResponse in interface Tube
Overrides:
processResponse in class AbstractFilterTubeImpl
Parameters:
response - If the packet has a non-null message, it must be a valid unconsumed Message. This message represents a response to the request message passed to Tube.processRequest(Packet) earlier.

The packet is also allowed to carry no message, which indicates that there was no response. This is used for things like one-way message and/or one-way transports. TODO: exception handling semantics need more discussion

Returns:
A NextAction object that represents the next action to be taken by the JAX-WS runtime.

toDOMSource

protected DOMSource toDOMSource(Source source)

printDOM

protected static void printDOM(DOMSource src)