|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.model.wsdl.WSDLBoundPortTypeImpl
public final class WSDLBoundPortTypeImpl
Implementation of WSDLBoundPortType
| 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 | |
|---|---|
WSDLBoundPortTypeImpl(XMLStreamReader xsr,
EditableWSDLModel owner,
QName name,
QName portTypeName)
|
|
| 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()
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 |
|
|
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 the name of the wsdl:binding@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 |
|
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 |
|
| 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 WSDLBoundPortTypeImpl(XMLStreamReader xsr,
@NotNull
EditableWSDLModel owner,
QName name,
QName portTypeName)
| Method Detail |
|---|
public QName getName()
WSDLBoundPortType
getName 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 name
get in interface EditableWSDLBoundPortTypeget in interface WSDLBoundPortTypeoperationName - non-null operationName
WSDLBoundOperation is not found
public void put(QName opName,
EditableWSDLBoundOperation ptOp)
WSDLBoundOperation as the value.
put in interface EditableWSDLBoundPortTypeopName - Must be non-nullptOp - Must be non-null
NullPointerException - if either opName or ptOp is nullpublic QName getPortTypeName()
WSDLBoundPortTypeWSDLPortType.getName()
getPortTypeName in interface WSDLBoundPortTypepublic EditableWSDLPortType getPortType()
WSDLBoundPortTypeWSDLPortType associated with the wsdl:binding
getPortType in interface EditableWSDLBoundPortTypegetPortType in interface WSDLBoundPortTypepublic Iterable<EditableWSDLBoundOperation> getBindingOperations()
WSDLBoundPortTypeWSDLBoundOperations
getBindingOperations in interface EditableWSDLBoundPortTypegetBindingOperations in interface WSDLBoundPortTypepublic BindingID getBindingId()
WSDLBoundPortType
getBindingId in interface WSDLBoundPortTypepublic void setBindingId(BindingID bindingId)
EditableWSDLBoundPortType
setBindingId in interface EditableWSDLBoundPortTypebindingId - Binding IDpublic void setStyle(SOAPBinding.Style style)
EditableWSDLBoundPortTypeWSDLBoundPortType is rpc or lit
setStyle in interface EditableWSDLBoundPortTypepublic SOAPBinding.Style getStyle()
WSDLBoundPortType
getStyle 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/OUT
getBinding 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 payload
public void freeze()
EditableWSDLBoundPortType
freeze 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()
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 | |||||||||