Package com.sun.xml.ws.model.wsdl
Class WSDLPortImpl
- java.lang.Object
-
- com.sun.xml.ws.model.wsdl.WSDLPortImpl
-
- All Implemented Interfaces:
EditableWSDLPort,WSDLExtensible,WSDLFeaturedObject,WSDLObject,WSDLPort
public final class WSDLPortImpl extends Object implements EditableWSDLPort
Implementation ofWSDLPort- Author:
- Vivek Pandey
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<WSDLExtension>extensionsprotected WebServiceFeatureListfeaturesprotected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>notUnderstoodExtensions
-
Constructor Summary
Constructors Constructor Description WSDLPortImpl(XMLStreamReader xsr, EditableWSDLService owner, QName name, QName binding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtension(WSDLExtension ex)Adds a newWSDLExtensionto this object.voidaddFeature(jakarta.xml.ws.WebServiceFeature feature)Enables aWebServiceFeaturebased upon policy assertions on this port.voidaddNotUnderstoodExtension(QName extnEl, Locator locator)This can be used if a WSDL extension element that has wsdl:required=true is not understoodbooleanareRequiredExtensionsUnderstood()This method should be called after freezing the WSDLModelvoidfreeze(EditableWSDLModel root)Freezes WSDL model to prevent further modificationEndpointAddressgetAddress()Gets endpoint address of this port.EditableWSDLBoundPortTypegetBinding()GetsWSDLBoundPortTypeassociated with theWSDLPort.QNamegetBindingName()WSEndpointReferencegetEPR()Returns endpoint reference<T extends WSDLExtension>
TgetExtension(Class<T> type)Gets the extension that is assignable to the given type.Iterable<WSDLExtension>getExtensions()Gets all theWSDLExtensions added throughWSDLExtensible.addExtension(WSDLExtension).<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)jakarta.xml.ws.WebServiceFeaturegetFeature(String id)WebServiceFeatureListgetFeatures()Gets the feature list associated with this object.LocatorgetLocation()Gets the source location information in the parsed WSDL.QNamegetName()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>getNotUnderstoodExtensions()Lists extensions marked as not understoodEditableWSDLServicegetOwner()Gets theWSDLServicethat owns this port.voidsetAddress(EndpointAddress address)Only meant forRuntimeWSDLParserto call.voidsetEPR(WSEndpointReference epr)Only meant forRuntimeWSDLParserto 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 Detail
-
features
protected WebServiceFeatureList features
-
extensions
protected final Set<WSDLExtension> extensions
-
notUnderstoodExtensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
-
-
Constructor Detail
-
WSDLPortImpl
public WSDLPortImpl(XMLStreamReader xsr, EditableWSDLService owner, QName name, QName binding)
-
-
Method Detail
-
getName
public QName getName()
Description copied from interface:WSDLPortGets wsdl:port@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.
-
getBindingName
public QName getBindingName()
-
getAddress
public EndpointAddress getAddress()
Description copied from interface:WSDLPortGets endpoint address of this port.- Specified by:
getAddressin interfaceWSDLPort- Returns:
- always non-null.
-
getOwner
public EditableWSDLService getOwner()
Description copied from interface:WSDLPortGets theWSDLServicethat owns this port.- Specified by:
getOwnerin interfaceEditableWSDLPort- Specified by:
getOwnerin interfaceWSDLPort- Returns:
- always non-null.
-
setAddress
public void setAddress(EndpointAddress address)
Only meant forRuntimeWSDLParserto call.- Specified by:
setAddressin interfaceEditableWSDLPort- Parameters:
address- Endpoint address
-
setEPR
public void setEPR(@NotNull WSEndpointReference epr)
Only meant forRuntimeWSDLParserto call.- Specified by:
setEPRin interfaceEditableWSDLPort- Parameters:
epr- Endpoint reference
-
getEPR
@Nullable public WSEndpointReference getEPR()
Description copied from interface:WSDLPortReturns endpoint reference
-
getBinding
public EditableWSDLBoundPortType getBinding()
Description copied from interface:WSDLPortGetsWSDLBoundPortTypeassociated with theWSDLPort.- Specified by:
getBindingin interfaceEditableWSDLPort- Specified by:
getBindingin interfaceWSDLPort
-
freeze
public void freeze(EditableWSDLModel root)
Description copied from interface:EditableWSDLPortFreezes WSDL model to prevent further modification- Specified by:
freezein interfaceEditableWSDLPort- Parameters:
root- WSDL Model
-
addFeature
public final void addFeature(jakarta.xml.ws.WebServiceFeature feature)
Description copied from interface:WSDLFeaturedObjectEnables aWebServiceFeaturebased upon policy assertions on this port. This method would be called during WSDL parsing by WS-Policy code.- Specified by:
addFeaturein interfaceWSDLFeaturedObject
-
getFeatures
@NotNull public WebServiceFeatureList getFeatures()
Description copied from interface:WSDLFeaturedObjectGets the feature list associated with this object.- Specified by:
getFeaturesin interfaceWSDLFeaturedObject
-
getFeature
public final jakarta.xml.ws.WebServiceFeature getFeature(String id)
-
getFeature
@Nullable public <F extends jakarta.xml.ws.WebServiceFeature> F getFeature(@NotNull Class<F> featureType)
- Specified by:
getFeaturein interfaceWSDLFeaturedObject
-
getExtensions
public final Iterable<WSDLExtension> getExtensions()
Description copied from interface:WSDLExtensibleGets all theWSDLExtensions added throughWSDLExtensible.addExtension(WSDLExtension).- Specified by:
getExtensionsin interfaceWSDLExtensible- Returns:
- never null.
-
getExtensions
public final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
Description copied from interface:WSDLExtensibleGets 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:
getExtensionsin 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
public <T extends WSDLExtension> T getExtension(Class<T> type)
Description copied from interface:WSDLExtensibleGets 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:
getExtensionin interfaceWSDLExtensible- Returns:
- null if the extension was not found.
-
addExtension
public void addExtension(WSDLExtension ex)
Description copied from interface:WSDLExtensibleAdds a newWSDLExtensionto this object.- Specified by:
addExtensionin interfaceWSDLExtensible- Parameters:
ex- must not be null.
-
getNotUnderstoodExtensions
public List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
Description copied from interface:WSDLExtensibleLists extensions marked as not understood- Specified by:
getNotUnderstoodExtensionsin interfaceWSDLExtensible- Returns:
- List of not understood extensions
-
addNotUnderstoodExtension
public void addNotUnderstoodExtension(QName extnEl, Locator locator)
This can be used if a WSDL extension element that has wsdl:required=true is not understood- Specified by:
addNotUnderstoodExtensionin interfaceWSDLExtensible- Parameters:
extnEl-locator-
-
areRequiredExtensionsUnderstood
public boolean areRequiredExtensionsUnderstood()
This method should be called after freezing the WSDLModel- Specified by:
areRequiredExtensionsUnderstoodin interfaceWSDLExtensible- Returns:
- true if all wsdl required extensions on Port and Binding are understood
-
getLocation
@NotNull public final Locator getLocation()
Description copied from interface:WSDLObjectGets the source location information in the parsed WSDL. This is useful when producing error messages.- Specified by:
getLocationin interfaceWSDLObject
-
-