public final class WSDLBoundPortTypeImpl extends AbstractFeaturedObjectImpl implements WSDLBoundPortType
WSDLBoundPortType
AbstractExtensibleImpl.UnknownWSDLExtension
features
extensions, notUnderstoodExtensions
Constructor and Description |
---|
WSDLBoundPortTypeImpl(javax.xml.stream.XMLStreamReader xsr,
WSDLModelImpl owner,
QName name,
QName portTypeName) |
Modifier and Type | Method and Description |
---|---|
void |
enableMTOM() |
(package private) void |
freeze() |
WSDLBoundOperationImpl |
get(QName operationName)
Gets the
WSDLBoundOperation for a given operation name |
ParameterBinding |
getBinding(QName operation,
String part,
javax.jws.WebParam.Mode mode)
Gets the
ParameterBinding for a given operation, part name and the direction - IN/OUT |
BindingID |
getBindingId()
Returns the binding ID.
|
Iterable<WSDLBoundOperationImpl> |
getBindingOperations()
Gets the
WSDLBoundOperation s |
String |
getMimeType(QName operation,
String part,
javax.jws.WebParam.Mode mode)
Gets mime:content@part value which is the MIME type for a given operation, part and
WebParam.Mode . |
QName |
getName()
Gets the name of the wsdl:binding@name attribute value as local name and wsdl:definitions@targetNamespace
as the namespace uri.
|
WSDLBoundOperationImpl |
getOperation(String namespaceUri,
String localName)
Gets the bound operation in this port for a tag name.
|
WSDLModelImpl |
getOwner()
Gets the
WSDLModel that owns this port type. |
WSDLPortTypeImpl |
getPortType()
Gets the
WSDLPortType associated with the wsdl:binding |
QName |
getPortTypeName()
Gets the wsdl:binding@type value, same as
WSDLPortType.getName() |
SOAPVersion |
getSOAPVersion() |
javax.jws.soap.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 |
isMTOMEnabled() |
boolean |
isRpcLit() |
void |
put(QName opName,
WSDLBoundOperationImpl ptOp)
Populates the Map that holds operation name as key and
WSDLBoundOperation as the value. |
void |
setBindingId(BindingID bindingId) |
void |
setStyle(javax.jws.soap.SOAPBinding.Style style) |
addFeature, getFeature, getFeature, getFeatures
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions
getLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFeature, getFeature, getFeatures
addExtension, getExtension, getExtensions, getExtensions
getLocation
public WSDLBoundPortTypeImpl(javax.xml.stream.XMLStreamReader xsr, @NotNull WSDLModelImpl owner, QName name, QName portTypeName)
public QName getName()
WSDLBoundPortType
getName
in interface WSDLBoundPortType
@NotNull public WSDLModelImpl getOwner()
WSDLBoundPortType
WSDLModel
that owns this port type.getOwner
in interface WSDLBoundPortType
public WSDLBoundOperationImpl get(QName operationName)
WSDLBoundPortType
WSDLBoundOperation
for a given operation nameget
in interface WSDLBoundPortType
operationName
- non-null operationNameWSDLBoundOperation
is not foundpublic void put(QName opName, WSDLBoundOperationImpl ptOp)
WSDLBoundOperation
as the value.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 WSDLPortTypeImpl getPortType()
WSDLBoundPortType
WSDLPortType
associated with the wsdl:bindinggetPortType
in interface WSDLBoundPortType
public Iterable<WSDLBoundOperationImpl> getBindingOperations()
WSDLBoundPortType
WSDLBoundOperation
sgetBindingOperations
in interface WSDLBoundPortType
public BindingID getBindingId()
WSDLBoundPortType
getBindingId
in interface WSDLBoundPortType
public void setBindingId(BindingID bindingId)
public void setStyle(javax.jws.soap.SOAPBinding.Style style)
public javax.jws.soap.SOAPBinding.Style getStyle()
WSDLBoundPortType
getStyle
in interface WSDLBoundPortType
public boolean isRpcLit()
public boolean isDoclit()
public ParameterBinding getBinding(QName operation, String part, javax.jws.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 Mode@OUT
. Must be non-null.public String getMimeType(QName operation, String part, javax.jws.WebParam.Mode mode)
WebParam.Mode
.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 Mode@OUT
. Must be non-null.public WSDLBoundOperationImpl 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 WSDLBoundPortType
namespaceUri
- namespace of the payload element.localName
- local name of the payloadpublic void enableMTOM()
public boolean isMTOMEnabled()
public SOAPVersion getSOAPVersion()
void freeze()
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.