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
WSDLBoundOperation s |
<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 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, 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 WSDLBoundPortTypeImpl(XMLStreamReader xsr, @NotNull EditableWSDLModel owner, QName name, QName portTypeName)
public QName getName()
WSDLBoundPortType
getName
in interface WSDLBoundPortType
@NotNull public EditableWSDLModel getOwner()
WSDLBoundPortType
WSDLModel
that owns this port type.getOwner
in interface EditableWSDLBoundPortType
getOwner
in interface WSDLBoundPortType
public EditableWSDLBoundOperation get(QName operationName)
WSDLBoundPortType
WSDLBoundOperation
for a given operation nameget
in interface EditableWSDLBoundPortType
get
in interface WSDLBoundPortType
operationName
- non-null operationNameWSDLBoundOperation
is not foundpublic void put(QName opName, EditableWSDLBoundOperation ptOp)
WSDLBoundOperation
as the value.put
in interface EditableWSDLBoundPortType
opName
- Must be non-nullptOp
- Must be non-nullNullPointerException
- if either opName or ptOp is nullpublic QName getPortTypeName()
WSDLBoundPortType
WSDLPortType.getName()
getPortTypeName
in interface WSDLBoundPortType
public EditableWSDLPortType getPortType()
WSDLBoundPortType
WSDLPortType
associated with the wsdl:bindinggetPortType
in interface EditableWSDLBoundPortType
getPortType
in interface WSDLBoundPortType
public Iterable<EditableWSDLBoundOperation> getBindingOperations()
WSDLBoundPortType
WSDLBoundOperation
sgetBindingOperations
in interface EditableWSDLBoundPortType
getBindingOperations
in interface WSDLBoundPortType
public BindingID getBindingId()
WSDLBoundPortType
getBindingId
in interface WSDLBoundPortType
public void setBindingId(BindingID bindingId)
EditableWSDLBoundPortType
setBindingId
in interface EditableWSDLBoundPortType
bindingId
- Binding IDpublic void setStyle(SOAPBinding.Style style)
EditableWSDLBoundPortType
WSDLBoundPortType
is rpc or litsetStyle
in interface EditableWSDLBoundPortType
public SOAPBinding.Style getStyle()
WSDLBoundPortType
getStyle
in interface WSDLBoundPortType
public 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 WSDLBoundPortType
operation
- 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)
WSDLBoundPortType
WSDLBoundOperation.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 EditableWSDLBoundPortType
getOperation
in interface WSDLBoundPortType
namespaceUri
- namespace of the payload element.localName
- local name of the payloadpublic void freeze()
EditableWSDLBoundPortType
freeze
in interface EditableWSDLBoundPortType
public 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.