public final class ServiceDefinitionImpl extends Object implements ServiceDefinition, SDDocumentResolver
ServiceDefinition
implementation.
You construct a ServiceDefinitionImpl
by first constructing
a list of SDDocumentImpl
s.
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 SDDocumentImpl
s 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()
ServiceDefinition
SDDocument
that represents a WSDL.
This WSDL eventually refers to all the other SDDocument
s.
getPrimary
in interface ServiceDefinition
public void addFilter(SDDocumentFilter filter)
ServiceDefinition
SDDocument
's infoset. This
filter is applied to the all the other reachable SDDocument
s.addFilter
in interface ServiceDefinition
filter
- 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 SDDocumentResolver
systemId
- document's systemIdCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.