Package com.sun.xml.ws.server
Class ServiceDefinitionImpl
java.lang.Object
com.sun.xml.ws.server.ServiceDefinitionImpl
- All Implemented Interfaces:
ServiceDefinition,SDDocumentResolver,Iterable<SDDocument>
public final class ServiceDefinitionImpl
extends Object
implements ServiceDefinition, SDDocumentResolver
ServiceDefinition implementation.
You construct a ServiceDefinitionImpl by first constructing
a list of SDDocumentImpls.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
ConstructorsConstructorDescriptionServiceDefinitionImpl(Collection<SDDocumentImpl> docs, SDDocumentImpl primaryWsdl) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(SDDocumentFilter filter) Adds a filter that is called while writingSDDocument's infoset.Gets the "primary"SDDocumentthat represents a WSDL.iterator()Gets theSDDocumentImplwhoseSDDocumentImpl.getURL()returns the specified value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ServiceDefinitionImpl
- Parameters:
docs- List ofSDDocumentImpls to form the description. There must be at least one entry. The first document is consideredprimary.
-
-
Method Details
-
getPrimary
Description copied from interface:ServiceDefinitionGets the "primary"SDDocumentthat represents a WSDL.This WSDL eventually refers to all the other
SDDocuments.- Specified by:
getPrimaryin interfaceServiceDefinition- Returns:
- always non-null.
-
addFilter
Description copied from interface:ServiceDefinitionAdds a filter that is called while writingSDDocument's infoset. This filter is applied to the all the other reachableSDDocuments.- Specified by:
addFilterin interfaceServiceDefinition- Parameters:
filter- that is called while writing the document
-
iterator
- Specified by:
iteratorin interfaceIterable<SDDocument>
-
resolve
Gets theSDDocumentImplwhoseSDDocumentImpl.getURL()returns the specified value.- Specified by:
resolvein interfaceSDDocumentResolver- Parameters:
systemId- document's systemId- Returns:
- null if none is found.
-