|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.model.wsdl.WSDLPortImpl
public final class WSDLPortImpl
Implementation of WSDLPort
| Nested Class Summary | |
|---|---|
protected static class |
com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension
|
| Field Summary | |
|---|---|
protected Set<WSDLExtension> |
extensions
|
protected WebServiceFeatureList |
features
|
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions
|
| Constructor Summary | |
|---|---|
WSDLPortImpl(XMLStreamReader xsr,
EditableWSDLService owner,
QName name,
QName binding)
|
|
| Method Summary | ||
|---|---|---|
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 |
|
|
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). |
|
|
getExtensions(Class<T> type)
Gets all the extensions that is assignable to the given type. |
|
|
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 com.sun.xml.ws.model.wsdl.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. |
|
| 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.WSDLFeaturedObject |
|---|
addFeature, getFeature, getFeatures |
| 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 Detail |
|---|
protected WebServiceFeatureList features
protected final Set<WSDLExtension> extensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
| Constructor Detail |
|---|
public WSDLPortImpl(XMLStreamReader xsr,
EditableWSDLService owner,
QName name,
QName binding)
| Method Detail |
|---|
public QName getName()
WSDLPort
getName in interface WSDLPortpublic QName getBindingName()
public EndpointAddress getAddress()
WSDLPort
getAddress 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 address
public void setEPR(@NotNull
WSEndpointReference epr)
RuntimeWSDLParser to call.
setEPR in interface EditableWSDLPortepr - Endpoint reference@Nullable public WSEndpointReference getEPR()
WSDLPort
getEPR in interface WSDLPortpublic EditableWSDLBoundPortType getBinding()
WSDLPortWSDLBoundPortType associated with the WSDLPort.
getBinding in interface EditableWSDLPortgetBinding in interface WSDLPortpublic void freeze(EditableWSDLModel root)
EditableWSDLPort
freeze 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()
WSDLFeaturedObject
getFeatures 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 com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensible
getNotUnderstoodExtensions in interface WSDLExtensible
public void addNotUnderstoodExtension(QName extnEl,
Locator locator)
addNotUnderstoodExtension in interface WSDLExtensibleextnEl - locator - public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood in interface WSDLExtensible@NotNull public final Locator getLocation()
WSDLObject
getLocation in interface WSDLObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||