public final class ServiceDefinitionImpl extends Object implements ServiceDefinition, SDDocumentResolver
ServiceDefinition implementation.
You construct a ServiceDefinitionImpl by first constructing
a list of SDDocumentImpls.
| Modifier and Type | Field and Description |
|---|---|
(package private) List<SDDocumentFilter> |
filters |
(package private) WSEndpointImpl<?> |
owner
Set when
WSEndpointImpl is created. |
| Constructor and Description |
|---|
ServiceDefinitionImpl(List<SDDocumentImpl> docs,
SDDocumentImpl primaryWsdl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(SDDocumentFilter filter)
Adds a filter that is called while writing
SDDocument's infoset. |
SDDocument |
getPrimary()
Gets the "primary"
SDDocument that represents a WSDL. |
Iterator<SDDocument> |
iterator() |
SDDocument |
resolve(String systemId)
Gets the
SDDocumentImpl whose SDDocumentImpl.getURL()
returns the specified value. |
(package private) void |
setOwner(WSEndpointImpl<?> owner)
The owner is set when
WSEndpointImpl is created. |
WSEndpointImpl<?> owner
WSEndpointImpl is created.final List<SDDocumentFilter> filters
public ServiceDefinitionImpl(List<SDDocumentImpl> docs, @NotNull SDDocumentImpl primaryWsdl)
docs - List of SDDocumentImpls to form the description.
There must be at least one entry.
The first document is considered primary.void setOwner(WSEndpointImpl<?> owner)
WSEndpointImpl is created.@NotNull public SDDocument getPrimary()
ServiceDefinitionSDDocument that represents a WSDL.
This WSDL eventually refers to all the other SDDocuments.
getPrimary in interface ServiceDefinitionpublic void addFilter(SDDocumentFilter filter)
ServiceDefinitionSDDocument's infoset. This
filter is applied to the all the other reachable SDDocuments.addFilter in interface ServiceDefinitionfilter - that is called while writing the documentpublic Iterator<SDDocument> iterator()
iterator in interface Iterable<SDDocument>public SDDocument resolve(String systemId)
SDDocumentImpl whose SDDocumentImpl.getURL()
returns the specified value.resolve in interface SDDocumentResolversystemId - document's systemIdCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.