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
ServiceDefinitionimplementation.You construct a
ServiceDefinitionImplby first constructing a list ofSDDocumentImpls.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description ServiceDefinitionImpl(Collection<SDDocumentImpl> docs, SDDocumentImpl primaryWsdl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(SDDocumentFilter filter)Adds a filter that is called while writingSDDocument's infoset.SDDocumentgetPrimary()Gets the "primary"SDDocumentthat represents a WSDL.Iterator<SDDocument>iterator()SDDocumentresolve(String systemId)Gets theSDDocumentImplwhoseSDDocumentImpl.getURL()returns the specified value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ServiceDefinitionImpl
public ServiceDefinitionImpl(Collection<SDDocumentImpl> docs, @NotNull SDDocumentImpl primaryWsdl)
- Parameters:
docs- List ofSDDocumentImpls to form the description. There must be at least one entry. The first document is consideredprimary.
-
-
Method Detail
-
getPrimary
@NotNull public SDDocument 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
public void addFilter(SDDocumentFilter filter)
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
public Iterator<SDDocument> iterator()
- Specified by:
iteratorin interfaceIterable<SDDocument>
-
resolve
public SDDocument resolve(String systemId)
Gets theSDDocumentImplwhoseSDDocumentImpl.getURL()returns the specified value.- Specified by:
resolvein interfaceSDDocumentResolver- Parameters:
systemId- document's systemId- Returns:
- null if none is found.
-
-