Package com.sun.xml.ws.model.wsdl
Class WSDLBoundOperationImpl
java.lang.Object
com.sun.xml.ws.model.wsdl.WSDLBoundOperationImpl
- All Implemented Interfaces:
EditableWSDLBoundOperation
,WSDLBoundOperation
,WSDLExtensible
,WSDLObject
Implementation of
WSDLBoundOperation
- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation
WSDLBoundOperation.ANONYMOUS
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<WSDLExtension>
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>
-
Constructor Summary
ConstructorsConstructorDescriptionWSDLBoundOperationImpl
(XMLStreamReader xsr, EditableWSDLBoundPortType owner, QName name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a newWSDLExtension
to this object.void
addFault
(EditableWSDLBoundFault fault) Add Faultvoid
addNotUnderstoodExtension
(QName extnEl, Locator locator) This can be used if a WSDL extension element that has wsdl:required=true is not understoodvoid
addPart
(EditableWSDLPart part, jakarta.jws.WebParam.Mode mode) Add Partboolean
This method should be called after freezing the WSDLModelvoid
freeze
(EditableWSDLModel parent) Freezes WSDL model to prevent further modificationGets the soapbinding:binding/operation/wsaw:Anonymous.Gives the ownerWSDLBoundPortType
<T extends WSDLExtension>
TgetExtension
(Class<T> type) Gets the extension that is assignable to the given type.final Iterable<WSDLExtension>
Gets all theWSDLExtension
s added throughWSDLExtensible.addExtension(WSDLExtension)
.final <T extends WSDLExtension>
Iterable<T>getExtensions
(Class<T> type) Gets all the extensions that is assignable to the given type.getFaultBinding
(String part) GetsParameterBinding
for a given wsdl part in wsdl:faultMap of wsdl:fault part name and the binding asParameterBinding
List<? extends EditableWSDLBoundFault>
Gets all theWSDLFault
bound to this operation.Map<String,
? extends EditableWSDLPart> getInputBinding
(String part) GetsParameterBinding
for a given wsdl part in wsdl:inputMap of wsdl:input part name and the binding asParameterBinding
final Locator
Gets the source location information in the parsed WSDL.Gets the MIME type for a given wsdl part in wsdl:faultGets the MIME type for a given wsdl part in wsdl:inputGets the MIME type for a given wsdl part in wsdl:outputgetName()
Short-cut forgetOperation().getName()
List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>
Lists extensions marked as not understoodGets the wsdl:portType/wsdl:operation model -WSDLOperation
, associated with this binding operation.Map<String,
? extends EditableWSDLPart> getOutputBinding
(String part) GetsParameterBinding
for a given wsdl part in wsdl:outputMap of wsdl:output part name and the binding asParameterBinding
GetsWSDLPart
for the given wsdl:input or wsdl:output partFor rpclit gives namespace value on soapbinding:body@namespaceGets the payload QName of the request message.For rpclit gives namespace value on soapbinding:body@namespaceGets the payload QName of the response message.Gives soapbinding:operation@soapAction value.void
setAnonymous
(WSDLBoundOperation.ANONYMOUS anonymous) Sets the soapbinding:binding/operation/wsaw:Anonymous.void
setFaultExplicitBodyParts
(boolean b) Sets fault explicit body partsvoid
setInputExplicitBodyParts
(boolean b) Sets input explicit body partsvoid
setOutputExplicitBodyParts
(boolean b) Sets output explicit body partsvoid
Set request namespacevoid
Set response namespacevoid
setSoapAction
(String soapAction) Set SOAP actionvoid
setStyle
(jakarta.jws.soap.SOAPBinding.Style style) Set parameter styleMethods 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.WSDLExtensible
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
-
Field Details
-
extensions
-
notUnderstoodExtensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
-
-
Constructor Details
-
WSDLBoundOperationImpl
- Parameters:
name
- wsdl:operation name qualified value
-
-
Method Details
-
getName
Description copied from interface:WSDLBoundOperation
Short-cut forgetOperation().getName()
- Specified by:
getName
in interfaceWSDLBoundOperation
-
getSOAPAction
Description copied from interface:WSDLBoundOperation
Gives soapbinding:operation@soapAction value. soapbinding:operation@soapAction is optional attribute. If not present an empty String is returned as per BP 1.1 R2745.- Specified by:
getSOAPAction
in interfaceWSDLBoundOperation
-
setSoapAction
Description copied from interface:EditableWSDLBoundOperation
Set SOAP action- Specified by:
setSoapAction
in interfaceEditableWSDLBoundOperation
- Parameters:
soapAction
- SOAP action
-
getPart
Description copied from interface:WSDLBoundOperation
GetsWSDLPart
for the given wsdl:input or wsdl:output part- Specified by:
getPart
in interfaceEditableWSDLBoundOperation
- Specified by:
getPart
in interfaceWSDLBoundOperation
- Returns:
- null if no part is found
-
addPart
Description copied from interface:EditableWSDLBoundOperation
Add Part- Specified by:
addPart
in interfaceEditableWSDLBoundOperation
- Parameters:
part
- Partmode
- Mode
-
getInputParts
Map of wsdl:input part name and the binding asParameterBinding
- Specified by:
getInputParts
in interfaceWSDLBoundOperation
- Returns:
- empty Map if there is no parts
-
getOutputParts
Map of wsdl:output part name and the binding asParameterBinding
- Specified by:
getOutputParts
in interfaceWSDLBoundOperation
- Returns:
- empty Map if there is no parts
-
getFaultParts
Map of wsdl:fault part name and the binding asParameterBinding
- Specified by:
getFaultParts
in interfaceWSDLBoundOperation
- Returns:
- empty Map if there is no parts
-
getInParts
Description copied from interface:WSDLBoundOperation
- Specified by:
getInParts
in interfaceEditableWSDLBoundOperation
- Specified by:
getInParts
in interfaceWSDLBoundOperation
-
getOutParts
Description copied from interface:WSDLBoundOperation
- Specified by:
getOutParts
in interfaceEditableWSDLBoundOperation
- Specified by:
getOutParts
in interfaceWSDLBoundOperation
-
getFaults
Description copied from interface:WSDLBoundOperation
Gets all theWSDLFault
bound to this operation.- Specified by:
getFaults
in interfaceEditableWSDLBoundOperation
- Specified by:
getFaults
in interfaceWSDLBoundOperation
-
addFault
Description copied from interface:EditableWSDLBoundOperation
Add Fault- Specified by:
addFault
in interfaceEditableWSDLBoundOperation
- Parameters:
fault
- Fault
-
getInputBinding
GetsParameterBinding
for a given wsdl part in wsdl:input- Specified by:
getInputBinding
in interfaceWSDLBoundOperation
- Parameters:
part
- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getOutputBinding
GetsParameterBinding
for a given wsdl part in wsdl:output- Specified by:
getOutputBinding
in interfaceWSDLBoundOperation
- Parameters:
part
- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getFaultBinding
GetsParameterBinding
for a given wsdl part in wsdl:fault- Specified by:
getFaultBinding
in interfaceWSDLBoundOperation
- Parameters:
part
- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getMimeTypeForInputPart
Gets the MIME type for a given wsdl part in wsdl:input- Specified by:
getMimeTypeForInputPart
in interfaceWSDLBoundOperation
- Parameters:
part
- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getMimeTypeForOutputPart
Gets the MIME type for a given wsdl part in wsdl:output- Specified by:
getMimeTypeForOutputPart
in interfaceWSDLBoundOperation
- Parameters:
part
- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getMimeTypeForFaultPart
Gets the MIME type for a given wsdl part in wsdl:fault- Specified by:
getMimeTypeForFaultPart
in interfaceWSDLBoundOperation
- Parameters:
part
- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getOperation
Description copied from interface:WSDLBoundOperation
Gets the wsdl:portType/wsdl:operation model -WSDLOperation
, associated with this binding operation.- Specified by:
getOperation
in interfaceEditableWSDLBoundOperation
- Specified by:
getOperation
in interfaceWSDLBoundOperation
- Returns:
- always same
WSDLOperation
-
getBoundPortType
Description copied from interface:WSDLBoundOperation
Gives the ownerWSDLBoundPortType
- Specified by:
getBoundPortType
in interfaceEditableWSDLBoundOperation
- Specified by:
getBoundPortType
in interfaceWSDLBoundOperation
-
setInputExplicitBodyParts
public void setInputExplicitBodyParts(boolean b) Description copied from interface:EditableWSDLBoundOperation
Sets input explicit body parts- Specified by:
setInputExplicitBodyParts
in interfaceEditableWSDLBoundOperation
- Parameters:
b
- True, if input body part is explicit
-
setOutputExplicitBodyParts
public void setOutputExplicitBodyParts(boolean b) Description copied from interface:EditableWSDLBoundOperation
Sets output explicit body parts- Specified by:
setOutputExplicitBodyParts
in interfaceEditableWSDLBoundOperation
- Parameters:
b
- True, if output body part is explicit
-
setFaultExplicitBodyParts
public void setFaultExplicitBodyParts(boolean b) Description copied from interface:EditableWSDLBoundOperation
Sets fault explicit body parts- Specified by:
setFaultExplicitBodyParts
in interfaceEditableWSDLBoundOperation
- Parameters:
b
- True, if fault body part is explicit
-
setStyle
public void setStyle(jakarta.jws.soap.SOAPBinding.Style style) Description copied from interface:EditableWSDLBoundOperation
Set parameter style- Specified by:
setStyle
in interfaceEditableWSDLBoundOperation
- Parameters:
style
- Style
-
getRequestPayloadName
Description copied from interface:WSDLBoundOperation
Gets the payload QName of the request message.It's possible for an operation to define no body part, in which case this method returns null.
- Specified by:
getRequestPayloadName
in interfaceWSDLBoundOperation
-
getResponsePayloadName
Description copied from interface:WSDLBoundOperation
Gets the payload QName of the response message.It's possible for an operation to define no body part, in which case this method returns null.
- Specified by:
getResponsePayloadName
in interfaceWSDLBoundOperation
-
getRequestNamespace
For rpclit gives namespace value on soapbinding:body@namespace- Specified by:
getRequestNamespace
in interfaceWSDLBoundOperation
- Returns:
- non-null for rpclit and null for doclit
- See Also:
-
setRequestNamespace
Description copied from interface:EditableWSDLBoundOperation
Set request namespace- Specified by:
setRequestNamespace
in interfaceEditableWSDLBoundOperation
- Parameters:
ns
- Namespace
-
getResponseNamespace
For rpclit gives namespace value on soapbinding:body@namespace- Specified by:
getResponseNamespace
in interfaceWSDLBoundOperation
- Returns:
- non-null for rpclit and null for doclit
- See Also:
-
setResponseNamespace
Description copied from interface:EditableWSDLBoundOperation
Set response namespace- Specified by:
setResponseNamespace
in interfaceEditableWSDLBoundOperation
- Parameters:
ns
- Namespace
-
freeze
Description copied from interface:EditableWSDLBoundOperation
Freezes WSDL model to prevent further modification- Specified by:
freeze
in interfaceEditableWSDLBoundOperation
- Parameters:
parent
- WSDL Model
-
setAnonymous
Description copied from interface:EditableWSDLBoundOperation
Sets the soapbinding:binding/operation/wsaw:Anonymous.- Specified by:
setAnonymous
in interfaceEditableWSDLBoundOperation
- Parameters:
anonymous
- Anonymous value of the operation
-
getAnonymous
Description copied from interface:WSDLBoundOperation
Gets the soapbinding:binding/operation/wsaw:Anonymous. A default value of OPTIONAL is returned.- Specified by:
getAnonymous
in interfaceWSDLBoundOperation
- Returns:
- Anonymous value of the operation
-
getExtensions
Description copied from interface:WSDLExtensible
Gets all theWSDLExtension
s added throughWSDLExtensible.addExtension(WSDLExtension)
.- Specified by:
getExtensions
in interfaceWSDLExtensible
- Returns:
- never null.
-
getExtensions
Description copied from interface:WSDLExtensible
Gets all the extensions that is assignable to the given type.This allows clients to find specific extensions in a type-safe and convenient way.
- Specified by:
getExtensions
in interfaceWSDLExtensible
- Parameters:
type
- The type of the extension to obtain. Must not be null.- Returns:
- Can be an empty fromjava.collection but never null.
-
getExtension
Description copied from interface:WSDLExtensible
Gets the extension that is assignable to the given type.This is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
- Specified by:
getExtension
in interfaceWSDLExtensible
- Returns:
- null if the extension was not found.
-
addExtension
Description copied from interface:WSDLExtensible
Adds a newWSDLExtension
to this object.- Specified by:
addExtension
in interfaceWSDLExtensible
- Parameters:
ex
- must not be null.
-
getNotUnderstoodExtensions
public List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()Description copied from interface:WSDLExtensible
Lists extensions marked as not understood- Specified by:
getNotUnderstoodExtensions
in interfaceWSDLExtensible
- Returns:
- List of not understood extensions
-
addNotUnderstoodExtension
This can be used if a WSDL extension element that has wsdl:required=true is not understood- Specified by:
addNotUnderstoodExtension
in interfaceWSDLExtensible
- Parameters:
extnEl
- QName of extensionlocator
- Locator
-
areRequiredExtensionsUnderstood
public boolean areRequiredExtensionsUnderstood()This method should be called after freezing the WSDLModel- Specified by:
areRequiredExtensionsUnderstood
in interfaceWSDLExtensible
- Returns:
- true if all wsdl required extensions on Port and Binding are understood
-
getLocation
Description copied from interface:WSDLObject
Gets the source location information in the parsed WSDL. This is useful when producing error messages.- Specified by:
getLocation
in interfaceWSDLObject
-