public final class WSDLPortImpl extends Object implements EditableWSDLPort
WSDLPort| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractExtensibleImpl.UnknownWSDLExtension |
| Modifier and Type | Field and Description |
|---|---|
protected Set<WSDLExtension> |
extensions |
protected WebServiceFeatureList |
features |
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions |
| Constructor and Description |
|---|
WSDLPortImpl(XMLStreamReader xsr,
EditableWSDLService owner,
QName name,
QName binding) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(WSDLExtension ex)
Adds a new
WSDLExtension
to this object. |
void |
addFeature(WebServiceFeature feature)
Enables a
WebServiceFeature 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 understood
|
boolean |
areRequiredExtensionsUnderstood()
This method should be called after freezing the WSDLModel
|
void |
freeze(EditableWSDLModel root)
Freezes WSDL model to prevent further modification
|
EndpointAddress |
getAddress()
Gets endpoint address of this port.
|
EditableWSDLBoundPortType |
getBinding()
Gets
WSDLBoundPortType associated with the WSDLPort. |
QName |
getBindingName() |
WSEndpointReference |
getEPR()
Returns endpoint reference
|
<T extends WSDLExtension> |
getExtension(Class<T> type)
Gets the extension that is assignable to the given type.
|
Iterable<WSDLExtension> |
getExtensions()
Gets all the
WSDLExtensions
added through WSDLExtensible.addExtension(WSDLExtension). |
<T extends WSDLExtension> |
getExtensions(Class<T> type)
Gets all the extensions that is assignable to the given type.
|
<F extends WebServiceFeature> |
getFeature(Class<F> featureType) |
WebServiceFeature |
getFeature(String id) |
WebServiceFeatureList |
getFeatures()
Gets the feature list associated with this object.
|
Locator |
getLocation()
Gets the source location information in the parsed WSDL.
|
QName |
getName()
Gets wsdl:port@name attribute value as local name and wsdl:definitions@targetNamespace
as the namespace uri.
|
List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> |
getNotUnderstoodExtensions()
Lists extensions marked as not understood
|
EditableWSDLService |
getOwner()
Gets the
WSDLService that owns this port. |
void |
setAddress(EndpointAddress address)
Only meant for
RuntimeWSDLParser to call. |
void |
setEPR(WSEndpointReference epr)
Only meant for
RuntimeWSDLParser to call. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFeature, getFeature, getFeaturesaddExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensionsgetLocationprotected WebServiceFeatureList features
protected final Set<WSDLExtension> extensions
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
public WSDLPortImpl(XMLStreamReader xsr, EditableWSDLService owner, QName name, QName binding)
public QName getName()
WSDLPortpublic QName getBindingName()
public EndpointAddress getAddress()
WSDLPortgetAddress in interface WSDLPortpublic EditableWSDLService getOwner()
WSDLPortWSDLService that owns this port.getOwner in interface EditableWSDLPortgetOwner in interface WSDLPortpublic void setAddress(EndpointAddress address)
RuntimeWSDLParser to call.setAddress in interface EditableWSDLPortaddress - Endpoint addresspublic void setEPR(@NotNull
WSEndpointReference epr)
RuntimeWSDLParser to call.setEPR in interface EditableWSDLPortepr - Endpoint reference@Nullable public WSEndpointReference getEPR()
WSDLPortpublic EditableWSDLBoundPortType getBinding()
WSDLPortWSDLBoundPortType associated with the WSDLPort.getBinding in interface EditableWSDLPortgetBinding in interface WSDLPortpublic void freeze(EditableWSDLModel root)
EditableWSDLPortfreeze in interface EditableWSDLPortroot - WSDL Modelpublic final void addFeature(WebServiceFeature feature)
WSDLFeaturedObjectWebServiceFeature based upon policy assertions on this port.
This method would be called during WSDL parsing by WS-Policy code.addFeature in interface WSDLFeaturedObject@NotNull public WebServiceFeatureList getFeatures()
WSDLFeaturedObjectgetFeatures in interface WSDLFeaturedObjectpublic final WebServiceFeature getFeature(String id)
@Nullable public <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType)
getFeature in interface WSDLFeaturedObjectpublic final Iterable<WSDLExtension> getExtensions()
WSDLExtensibleWSDLExtensions
added through WSDLExtensible.addExtension(WSDLExtension).getExtensions in interface WSDLExtensiblepublic final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
WSDLExtensibleThis allows clients to find specific extensions in a type-safe and convenient way.
getExtensions in interface WSDLExtensibletype - The type of the extension to obtain. Must not be null.public <T extends WSDLExtension> T getExtension(Class<T> type)
WSDLExtensibleThis is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
getExtension in interface WSDLExtensiblepublic void addExtension(WSDLExtension ex)
WSDLExtensibleWSDLExtension
to this object.addExtension in interface WSDLExtensibleex - must not be null.public List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensiblegetNotUnderstoodExtensions in interface WSDLExtensiblepublic void addNotUnderstoodExtension(QName extnEl, Locator locator)
addNotUnderstoodExtension in interface WSDLExtensibleextnEl - locator - public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood in interface WSDLExtensible@NotNull public final Locator getLocation()
WSDLObjectgetLocation in interface WSDLObjectCopyright © 2015 Oracle Corporation. All rights reserved.