com.sun.xml.ws.util.pipe
Class AbstractSchemaValidationTube
java.lang.Object
com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl
com.sun.xml.ws.api.pipe.helper.AbstractFilterTubeImpl
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
binding
protected final WSBinding binding
feature
protected final SchemaValidationFeature feature
resolver
protected final DocumentAddressResolver resolver
AbstractSchemaValidationTube
public AbstractSchemaValidationTube(WSBinding binding,
Tube next)
AbstractSchemaValidationTube
protected AbstractSchemaValidationTube(AbstractSchemaValidationTube that,
TubeCloner cloner)
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 documentsystemId
- systemId for WSDL documentlist
- 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)