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
WSDLExtension s
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, wait
addFeature, getFeature, getFeatures
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
getLocation
protected 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()
WSDLPort
public QName getBindingName()
public EndpointAddress getAddress()
WSDLPort
getAddress
in interface WSDLPort
public EditableWSDLService getOwner()
WSDLPort
WSDLService
that owns this port.getOwner
in interface EditableWSDLPort
getOwner
in interface WSDLPort
public void setAddress(EndpointAddress address)
RuntimeWSDLParser
to call.setAddress
in interface EditableWSDLPort
address
- Endpoint addresspublic void setEPR(@NotNull WSEndpointReference epr)
RuntimeWSDLParser
to call.setEPR
in interface EditableWSDLPort
epr
- Endpoint reference@Nullable public WSEndpointReference getEPR()
WSDLPort
public EditableWSDLBoundPortType getBinding()
WSDLPort
WSDLBoundPortType
associated with the WSDLPort
.getBinding
in interface EditableWSDLPort
getBinding
in interface WSDLPort
public void freeze(EditableWSDLModel root)
EditableWSDLPort
freeze
in interface EditableWSDLPort
root
- WSDL Modelpublic final void addFeature(WebServiceFeature feature)
WSDLFeaturedObject
WebServiceFeature
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()
WSDLFeaturedObject
getFeatures
in interface WSDLFeaturedObject
public final WebServiceFeature getFeature(String id)
@Nullable public <F extends WebServiceFeature> F getFeature(@NotNull Class<F> featureType)
getFeature
in interface WSDLFeaturedObject
public final Iterable<WSDLExtension> getExtensions()
WSDLExtensible
WSDLExtension
s
added through WSDLExtensible.addExtension(WSDLExtension)
.getExtensions
in interface WSDLExtensible
public final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
WSDLExtensible
This allows clients to find specific extensions in a type-safe and convenient way.
getExtensions
in interface WSDLExtensible
type
- The type of the extension to obtain. Must not be null.public <T extends WSDLExtension> T getExtension(Class<T> type)
WSDLExtensible
This is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
getExtension
in interface WSDLExtensible
public void addExtension(WSDLExtension ex)
WSDLExtensible
WSDLExtension
to this object.addExtension
in interface WSDLExtensible
ex
- must not be null.public List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensible
getNotUnderstoodExtensions
in interface WSDLExtensible
public void addNotUnderstoodExtension(QName extnEl, Locator locator)
addNotUnderstoodExtension
in interface WSDLExtensible
extnEl
- locator
- public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood
in interface WSDLExtensible
@NotNull public final Locator getLocation()
WSDLObject
getLocation
in interface WSDLObject
Copyright © 2015 Oracle Corporation. All rights reserved.