java.lang.Object
com.sun.xml.ws.model.wsdl.WSDLPortImpl
- All Implemented Interfaces:
EditableWSDLPort
,WSDLExtensible
,WSDLFeaturedObject
,WSDLObject
,WSDLPort
Implementation of
WSDLPort
- Author:
- Vivek Pandey
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<WSDLExtension>
protected WebServiceFeatureList
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>
-
Constructor Summary
ConstructorsConstructorDescriptionWSDLPortImpl
(XMLStreamReader xsr, EditableWSDLService owner, QName name, QName binding) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a newWSDLExtension
to this object.final void
addFeature
(jakarta.xml.ws.WebServiceFeature feature) Enables aWebServiceFeature
based upon policy assertions on this port.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 endpoint address of this port.GetsWSDLBoundPortType
associated with theWSDLPort
.getEPR()
Returns endpoint reference<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.<F extends jakarta.xml.ws.WebServiceFeature>
FgetFeature
(Class<F> featureType) final jakarta.xml.ws.WebServiceFeature
getFeature
(String id) Gets the feature list associated with this object.final Locator
Gets the source location information in the parsed WSDL.getName()
Gets wsdl:port@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 understoodgetOwner()
Gets theWSDLService
that owns this port.void
setAddress
(EndpointAddress address) Only meant forRuntimeWSDLParser
to call.void
Only meant forRuntimeWSDLParser
to call.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.WSDLFeaturedObject
addFeature, getFeature, getFeatures
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
-
Field Details
-
features
-
extensions
-
notUnderstoodExtensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
-
-
Constructor Details
-
WSDLPortImpl
-
-
Method Details
-
getName
Description copied from interface:WSDLPort
Gets wsdl:port@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri. -
getBindingName
-
getAddress
Description copied from interface:WSDLPort
Gets endpoint address of this port.- Specified by:
getAddress
in interfaceWSDLPort
- Returns:
- always non-null.
-
getOwner
Description copied from interface:WSDLPort
Gets theWSDLService
that owns this port.- Specified by:
getOwner
in interfaceEditableWSDLPort
- Specified by:
getOwner
in interfaceWSDLPort
- Returns:
- always non-null.
-
setAddress
Only meant forRuntimeWSDLParser
to call.- Specified by:
setAddress
in interfaceEditableWSDLPort
- Parameters:
address
- Endpoint address
-
setEPR
Only meant forRuntimeWSDLParser
to call.- Specified by:
setEPR
in interfaceEditableWSDLPort
- Parameters:
epr
- Endpoint reference
-
getEPR
Description copied from interface:WSDLPort
Returns endpoint reference -
getBinding
Description copied from interface:WSDLPort
GetsWSDLBoundPortType
associated with theWSDLPort
.- Specified by:
getBinding
in interfaceEditableWSDLPort
- Specified by:
getBinding
in interfaceWSDLPort
-
freeze
Description copied from interface:EditableWSDLPort
Freezes WSDL model to prevent further modification- Specified by:
freeze
in interfaceEditableWSDLPort
- Parameters:
root
- WSDL Model
-
addFeature
public final void addFeature(jakarta.xml.ws.WebServiceFeature feature) Description copied from interface:WSDLFeaturedObject
Enables aWebServiceFeature
based upon policy assertions on this port. This method would be called during WSDL parsing by WS-Policy code.- Specified by:
addFeature
in interfaceWSDLFeaturedObject
-
getFeatures
Description copied from interface:WSDLFeaturedObject
Gets the feature list associated with this object.- Specified by:
getFeatures
in interfaceWSDLFeaturedObject
-
getFeature
-
getFeature
@Nullable public <F extends jakarta.xml.ws.WebServiceFeature> F getFeature(@NotNull Class<F> featureType) - Specified by:
getFeature
in interfaceWSDLFeaturedObject
-
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
-