java.lang.Object
com.sun.xml.ws.model.wsdl.WSDLServiceImpl
- All Implemented Interfaces:
EditableWSDLService
,WSDLExtensible
,WSDLObject
,WSDLService
Implementation of
WSDLService
- Author:
- Vivek Pandey
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Set<WSDLExtension>
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a newWSDLExtension
to this object.void
addNotUnderstoodExtension
(QName extnEl, Locator locator) This can be used if a WSDL extension element that has wsdl:required=true is not understoodboolean
This method should be called after freezing the WSDLModelvoid
freeze
(EditableWSDLModel root) Freezes WSDL model to prevent further modificationGets theWSDLPort
for a given port name<T extends WSDLExtension>
TgetExtension
(Class<T> type) Gets the extension that is assignable to the given type.final Iterable<WSDLExtension>
Gets all theWSDLExtension
s added throughWSDLExtensible.addExtension(WSDLExtension)
.final <T extends WSDLExtension>
Iterable<T>getExtensions
(Class<T> type) Gets all the extensions that is assignable to the given type.Gets the firstWSDLPort
if any, or otherwise null.final Locator
Gets the source location information in the parsed WSDL.getMatchingPort
(QName portTypeName) gets the first port in this service which matches the portTypegetName()
Gets the name of the wsdl:service@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>
Lists extensions marked as not understoodGets theWSDLModel
that owns this service.getPorts()
Gives all theWSDLPort
in a wsdl:serviceWSDLService
void
put
(QName portName, EditableWSDLPort port) Populates the Map that holds port name as key andWSDLPort
as the value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLExtensible
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
-
Field Details
-
extensions
-
notUnderstoodExtensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
-
-
Constructor Details
-
WSDLServiceImpl
-
-
Method Details
-
getParent
Description copied from interface:WSDLService
Gets theWSDLModel
that owns this service.- Specified by:
getParent
in interfaceEditableWSDLService
- Specified by:
getParent
in interfaceWSDLService
-
getName
Description copied from interface:WSDLService
Gets the name of the wsdl:service@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.- Specified by:
getName
in interfaceWSDLService
-
get
Description copied from interface:WSDLService
Gets theWSDLPort
for a given port name- Specified by:
get
in interfaceEditableWSDLService
- Specified by:
get
in interfaceWSDLService
- Parameters:
portName
- non-null operationName- Returns:
- null if a
WSDLPort
is not found
-
getFirstPort
Description copied from interface:WSDLService
Gets the firstWSDLPort
if any, or otherwise null.- Specified by:
getFirstPort
in interfaceEditableWSDLService
- Specified by:
getFirstPort
in interfaceWSDLService
-
getPorts
Description copied from interface:WSDLService
Gives all theWSDLPort
in a wsdl:serviceWSDLService
- Specified by:
getPorts
in interfaceEditableWSDLService
- Specified by:
getPorts
in interfaceWSDLService
-
getMatchingPort
gets the first port in this service which matches the portType- Specified by:
getMatchingPort
in interfaceEditableWSDLService
- Specified by:
getMatchingPort
in interfaceWSDLService
-
put
Populates the Map that holds port name as key andWSDLPort
as the value.- Specified by:
put
in interfaceEditableWSDLService
- Parameters:
portName
- Must be non-nullport
- Must be non-null- Throws:
NullPointerException
- if either opName or ptOp is null
-
freeze
Description copied from interface:EditableWSDLService
Freezes WSDL model to prevent further modification- Specified by:
freeze
in interfaceEditableWSDLService
- Parameters:
root
- WSDL Model
-
getExtensions
Description copied from interface:WSDLExtensible
Gets all theWSDLExtension
s added throughWSDLExtensible.addExtension(WSDLExtension)
.- Specified by:
getExtensions
in interfaceWSDLExtensible
- Returns:
- never null.
-
getExtensions
Description copied from interface:WSDLExtensible
Gets all the extensions that is assignable to the given type.This allows clients to find specific extensions in a type-safe and convenient way.
- Specified by:
getExtensions
in interfaceWSDLExtensible
- Parameters:
type
- The type of the extension to obtain. Must not be null.- Returns:
- Can be an empty fromjava.collection but never null.
-
getExtension
Description copied from interface:WSDLExtensible
Gets the extension that is assignable to the given type.This is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
- Specified by:
getExtension
in interfaceWSDLExtensible
- Returns:
- null if the extension was not found.
-
addExtension
Description copied from interface:WSDLExtensible
Adds a newWSDLExtension
to this object.- Specified by:
addExtension
in interfaceWSDLExtensible
- Parameters:
ex
- must not be null.
-
getNotUnderstoodExtensions
public List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()Description copied from interface:WSDLExtensible
Lists extensions marked as not understood- Specified by:
getNotUnderstoodExtensions
in interfaceWSDLExtensible
- Returns:
- List of not understood extensions
-
addNotUnderstoodExtension
This can be used if a WSDL extension element that has wsdl:required=true is not understood- Specified by:
addNotUnderstoodExtension
in interfaceWSDLExtensible
- Parameters:
extnEl
- QName of extensionlocator
- Locator
-
areRequiredExtensionsUnderstood
public boolean areRequiredExtensionsUnderstood()This method should be called after freezing the WSDLModel- Specified by:
areRequiredExtensionsUnderstood
in interfaceWSDLExtensible
- Returns:
- true if all wsdl required extensions on Port and Binding are understood
-
getLocation
Description copied from interface:WSDLObject
Gets the source location information in the parsed WSDL. This is useful when producing error messages.- Specified by:
getLocation
in interfaceWSDLObject
-