public final class WSDLBoundPortTypeImpl extends Object implements EditableWSDLBoundPortType
WSDLBoundPortType| 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 |
|---|
WSDLBoundPortTypeImpl(XMLStreamReader xsr,
EditableWSDLModel owner,
QName name,
QName portTypeName) |
| 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()
Freezes WSDL model to prevent further modification
|
EditableWSDLBoundOperation |
get(QName operationName)
Gets the
WSDLBoundOperation for a given operation name |
ParameterBinding |
getBinding(QName operation,
String part,
WebParam.Mode mode)
Gets the
ParameterBinding for a given operation, part name and the direction - IN/OUT |
BindingID |
getBindingId()
Returns the binding ID.
|
Iterable<EditableWSDLBoundOperation> |
getBindingOperations()
Gets the
WSDLBoundOperations |
<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 the name of the wsdl:binding@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
|
EditableWSDLBoundOperation |
getOperation(String namespaceUri,
String localName)
Gets the bound operation in this port for a tag name.
|
EditableWSDLModel |
getOwner()
Gets the
WSDLModel that owns this port type. |
EditableWSDLPortType |
getPortType()
Gets the
WSDLPortType associated with the wsdl:binding |
QName |
getPortTypeName()
Gets the wsdl:binding@type value, same as
WSDLPortType.getName() |
SOAPBinding.Style |
getStyle()
Is this a document style or RPC style?
Since we only support literal and not encoding, this means
either doc/lit or rpc/lit.
|
boolean |
isDoclit() |
boolean |
isRpcLit() |
void |
put(QName opName,
EditableWSDLBoundOperation ptOp)
Populates the Map that holds operation name as key and
WSDLBoundOperation as the value. |
void |
setBindingId(BindingID bindingId)
Sets the binding ID
|
void |
setStyle(SOAPBinding.Style style)
sets whether the
WSDLBoundPortType is rpc or lit |
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 WSDLBoundPortTypeImpl(XMLStreamReader xsr, @NotNull EditableWSDLModel owner, QName name, QName portTypeName)
public QName getName()
WSDLBoundPortTypegetName in interface WSDLBoundPortType@NotNull public EditableWSDLModel getOwner()
WSDLBoundPortTypeWSDLModel that owns this port type.getOwner in interface EditableWSDLBoundPortTypegetOwner in interface WSDLBoundPortTypepublic EditableWSDLBoundOperation get(QName operationName)
WSDLBoundPortTypeWSDLBoundOperation for a given operation nameget in interface EditableWSDLBoundPortTypeget in interface WSDLBoundPortTypeoperationName - non-null operationNameWSDLBoundOperation is not foundpublic void put(QName opName, EditableWSDLBoundOperation ptOp)
WSDLBoundOperation as the value.put in interface EditableWSDLBoundPortTypeopName - Must be non-nullptOp - Must be non-nullNullPointerException - if either opName or ptOp is nullpublic QName getPortTypeName()
WSDLBoundPortTypeWSDLPortType.getName()getPortTypeName in interface WSDLBoundPortTypepublic EditableWSDLPortType getPortType()
WSDLBoundPortTypeWSDLPortType associated with the wsdl:bindinggetPortType in interface EditableWSDLBoundPortTypegetPortType in interface WSDLBoundPortTypepublic Iterable<EditableWSDLBoundOperation> getBindingOperations()
WSDLBoundPortTypeWSDLBoundOperationsgetBindingOperations in interface EditableWSDLBoundPortTypegetBindingOperations in interface WSDLBoundPortTypepublic BindingID getBindingId()
WSDLBoundPortTypegetBindingId in interface WSDLBoundPortTypepublic void setBindingId(BindingID bindingId)
EditableWSDLBoundPortTypesetBindingId in interface EditableWSDLBoundPortTypebindingId - Binding IDpublic void setStyle(SOAPBinding.Style style)
EditableWSDLBoundPortTypeWSDLBoundPortType is rpc or litsetStyle in interface EditableWSDLBoundPortTypepublic SOAPBinding.Style getStyle()
WSDLBoundPortTypegetStyle in interface WSDLBoundPortTypepublic boolean isRpcLit()
public boolean isDoclit()
public ParameterBinding getBinding(QName operation, String part, WebParam.Mode mode)
ParameterBinding for a given operation, part name and the direction - IN/OUTgetBinding in interface WSDLBoundPortTypeoperation - wsdl:operation@name value. Must be non-null.part - wsdl:part@name such as value of soap:header@part. Must be non-null.mode - WebParam.Mode.IN or WebParam.Mode.OUT. Must be non-null.public EditableWSDLBoundOperation getOperation(String namespaceUri, String localName)
WSDLBoundPortTypeWSDLBoundOperation.getName().
If you have a Message and trying to figure out which operation it belongs to,
always use Message.getOperation(com.sun.xml.ws.api.model.wsdl.WSDLBoundPortType), as that performs better.
For example this can be used in the case when a message receipient can get the
WSDLBoundOperation from the payload tag name.
namespaceUri and the local name both can be null to get the WSDLBoundOperation that has empty body - there is no payload. According to BP 1.1 in a port there can be at MOST one operation with empty body. Its an error to have namespace URI non-null but local name as null.
getOperation in interface EditableWSDLBoundPortTypegetOperation in interface WSDLBoundPortTypenamespaceUri - namespace of the payload element.localName - local name of the payloadpublic void freeze()
EditableWSDLBoundPortTypefreeze in interface EditableWSDLBoundPortTypepublic 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.