- java.lang.Object
-
- com.sun.xml.ws.model.wsdl.WSDLBoundOperationImpl
-
- All Implemented Interfaces:
com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation,WSDLBoundOperation,WSDLExtensible,WSDLObject
public final class WSDLBoundOperationImpl extends Object implements com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation
Implementation ofWSDLBoundOperation- Author:
- Vivek Pandey
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation
WSDLBoundOperation.ANONYMOUS
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<WSDLExtension>extensionsprotected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>notUnderstoodExtensions
-
Constructor Summary
Constructors Constructor Description WSDLBoundOperationImpl(XMLStreamReader xsr, com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundPortType owner, QName name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtension(WSDLExtension ex)Adds a newWSDLExtensionto this object.voidaddFault(com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundFault fault)Add FaultvoidaddNotUnderstoodExtension(QName extnEl, Locator locator)This can be used if a WSDL extension element that has wsdl:required=true is not understoodvoidaddPart(com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPart part, javax.jws.WebParam.Mode mode)Add PartbooleanareRequiredExtensionsUnderstood()This method should be called after freezing the WSDLModelvoidfreeze(com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLModel parent)Freezes WSDL model to prevent further modificationWSDLBoundOperation.ANONYMOUSgetAnonymous()Gets the soapbinding:binding/operation/wsaw:Anonymous.com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundPortTypegetBoundPortType()Gives the ownerWSDLBoundPortType<T extends WSDLExtension>
TgetExtension(Class<T> type)Gets the extension that is assignable to the given type.Iterable<WSDLExtension>getExtensions()Gets all theWSDLExtensions added throughWSDLExtensible.addExtension(WSDLExtension).<T extends WSDLExtension>
Iterable<T>getExtensions(Class<T> type)Gets all the extensions that is assignable to the given type.ParameterBindinggetFaultBinding(String part)GetsParameterBindingfor a given wsdl part in wsdl:faultMap<String,ParameterBinding>getFaultParts()Map of wsdl:fault part name and the binding asParameterBindingList<? extends com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundFault>getFaults()Gets all theWSDLFaultbound to this operation.Map<String,? extends com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPart>getInParts()ParameterBindinggetInputBinding(String part)GetsParameterBindingfor a given wsdl part in wsdl:inputMap<String,ParameterBinding>getInputParts()Map of wsdl:input part name and the binding asParameterBindingLocatorgetLocation()Gets the source location information in the parsed WSDL.StringgetMimeTypeForFaultPart(String part)Gets the MIME type for a given wsdl part in wsdl:faultStringgetMimeTypeForInputPart(String part)Gets the MIME type for a given wsdl part in wsdl:inputStringgetMimeTypeForOutputPart(String part)Gets the MIME type for a given wsdl part in wsdl:outputQNamegetName()Short-cut forgetOperation().getName()List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>getNotUnderstoodExtensions()Lists extensions marked as not understoodcom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLOperationgetOperation()Gets the wsdl:portType/wsdl:operation model -WSDLOperation, associated with this binding operation.Map<String,? extends com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPart>getOutParts()ParameterBindinggetOutputBinding(String part)GetsParameterBindingfor a given wsdl part in wsdl:outputMap<String,ParameterBinding>getOutputParts()Map of wsdl:output part name and the binding asParameterBindingcom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPartgetPart(String partName, javax.jws.WebParam.Mode mode)GetsWSDLPartfor the given wsdl:input or wsdl:output partStringgetRequestNamespace()For rpclit gives namespace value on soapbinding:body@namespaceQNamegetRequestPayloadName()Gets the payload QName of the request message.StringgetResponseNamespace()For rpclit gives namespace value on soapbinding:body@namespaceQNamegetResponsePayloadName()Gets the payload QName of the response message.StringgetSOAPAction()Gives soapbinding:operation@soapAction value.voidsetAnonymous(WSDLBoundOperation.ANONYMOUS anonymous)Sets the soapbinding:binding/operation/wsaw:Anonymous.voidsetFaultExplicitBodyParts(boolean b)Sets fault explicit body partsvoidsetInputExplicitBodyParts(boolean b)Sets input explicit body partsvoidsetOutputExplicitBodyParts(boolean b)Sets output explicit body partsvoidsetRequestNamespace(String ns)Set request namespacevoidsetResponseNamespace(String ns)Set response namespacevoidsetSoapAction(String soapAction)Set SOAP actionvoidsetStyle(javax.jws.soap.SOAPBinding.Style style)Set parameter style-
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.WSDLExtensible
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
-
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
-
-
-
-
Field Detail
-
extensions
protected final Set<WSDLExtension> extensions
-
notUnderstoodExtensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
-
-
Constructor Detail
-
WSDLBoundOperationImpl
public WSDLBoundOperationImpl(XMLStreamReader xsr, com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundPortType owner, QName name)
- Parameters:
name- wsdl:operation name qualified value
-
-
Method Detail
-
getName
public QName getName()
Description copied from interface:WSDLBoundOperationShort-cut forgetOperation().getName()- Specified by:
getNamein interfaceWSDLBoundOperation
-
getSOAPAction
public String getSOAPAction()
Description copied from interface:WSDLBoundOperationGives 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:
getSOAPActionin interfaceWSDLBoundOperation
-
setSoapAction
public void setSoapAction(String soapAction)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSet SOAP action- Specified by:
setSoapActionin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
soapAction- SOAP action
-
getPart
public com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPart getPart(String partName, javax.jws.WebParam.Mode mode)
Description copied from interface:WSDLBoundOperationGetsWSDLPartfor the given wsdl:input or wsdl:output part- Specified by:
getPartin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Specified by:
getPartin interfaceWSDLBoundOperation- Returns:
- null if no part is found
-
addPart
public void addPart(com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPart part, javax.jws.WebParam.Mode mode)Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationAdd Part- Specified by:
addPartin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
part- Partmode- Mode
-
getInputParts
public Map<String,ParameterBinding> getInputParts()
Map of wsdl:input part name and the binding asParameterBinding- Specified by:
getInputPartsin interfaceWSDLBoundOperation- Returns:
- empty Map if there is no parts
-
getOutputParts
public Map<String,ParameterBinding> getOutputParts()
Map of wsdl:output part name and the binding asParameterBinding- Specified by:
getOutputPartsin interfaceWSDLBoundOperation- Returns:
- empty Map if there is no parts
-
getFaultParts
public Map<String,ParameterBinding> getFaultParts()
Map of wsdl:fault part name and the binding asParameterBinding- Specified by:
getFaultPartsin interfaceWSDLBoundOperation- Returns:
- empty Map if there is no parts
-
getInParts
public Map<String,? extends com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPart> getInParts()
Description copied from interface:WSDLBoundOperation- Specified by:
getInPartsin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Specified by:
getInPartsin interfaceWSDLBoundOperation
-
getOutParts
public Map<String,? extends com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLPart> getOutParts()
Description copied from interface:WSDLBoundOperation- Specified by:
getOutPartsin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Specified by:
getOutPartsin interfaceWSDLBoundOperation
-
getFaults
@NotNull public List<? extends com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundFault> getFaults()
Description copied from interface:WSDLBoundOperationGets all theWSDLFaultbound to this operation.- Specified by:
getFaultsin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Specified by:
getFaultsin interfaceWSDLBoundOperation
-
addFault
public void addFault(@NotNull com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundFault fault)Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationAdd Fault- Specified by:
addFaultin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
fault- Fault
-
getInputBinding
public ParameterBinding getInputBinding(String part)
GetsParameterBindingfor a given wsdl part in wsdl:input- Specified by:
getInputBindingin interfaceWSDLBoundOperation- Parameters:
part- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getOutputBinding
public ParameterBinding getOutputBinding(String part)
GetsParameterBindingfor a given wsdl part in wsdl:output- Specified by:
getOutputBindingin interfaceWSDLBoundOperation- Parameters:
part- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getFaultBinding
public ParameterBinding getFaultBinding(String part)
GetsParameterBindingfor a given wsdl part in wsdl:fault- Specified by:
getFaultBindingin interfaceWSDLBoundOperation- Parameters:
part- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getMimeTypeForInputPart
public String getMimeTypeForInputPart(String part)
Gets the MIME type for a given wsdl part in wsdl:input- Specified by:
getMimeTypeForInputPartin interfaceWSDLBoundOperation- Parameters:
part- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getMimeTypeForOutputPart
public String getMimeTypeForOutputPart(String part)
Gets the MIME type for a given wsdl part in wsdl:output- Specified by:
getMimeTypeForOutputPartin interfaceWSDLBoundOperation- Parameters:
part- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getMimeTypeForFaultPart
public String getMimeTypeForFaultPart(String part)
Gets the MIME type for a given wsdl part in wsdl:fault- Specified by:
getMimeTypeForFaultPartin interfaceWSDLBoundOperation- Parameters:
part- Name of wsdl:part, must be non-null- Returns:
- null if the part is not found.
-
getOperation
public com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLOperation getOperation()
Description copied from interface:WSDLBoundOperationGets the wsdl:portType/wsdl:operation model -WSDLOperation, associated with this binding operation.- Specified by:
getOperationin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Specified by:
getOperationin interfaceWSDLBoundOperation- Returns:
- always same
WSDLOperation
-
getBoundPortType
public com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundPortType getBoundPortType()
Description copied from interface:WSDLBoundOperationGives the ownerWSDLBoundPortType- Specified by:
getBoundPortTypein interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Specified by:
getBoundPortTypein interfaceWSDLBoundOperation
-
setInputExplicitBodyParts
public void setInputExplicitBodyParts(boolean b)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSets input explicit body parts- Specified by:
setInputExplicitBodyPartsin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
b- True, if input body part is explicit
-
setOutputExplicitBodyParts
public void setOutputExplicitBodyParts(boolean b)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSets output explicit body parts- Specified by:
setOutputExplicitBodyPartsin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
b- True, if output body part is explicit
-
setFaultExplicitBodyParts
public void setFaultExplicitBodyParts(boolean b)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSets fault explicit body parts- Specified by:
setFaultExplicitBodyPartsin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
b- True, if fault body part is explicit
-
setStyle
public void setStyle(javax.jws.soap.SOAPBinding.Style style)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSet parameter style- Specified by:
setStylein interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
style- Style
-
getRequestPayloadName
@Nullable public QName getRequestPayloadName()
Description copied from interface:WSDLBoundOperationGets 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:
getRequestPayloadNamein interfaceWSDLBoundOperation
-
getResponsePayloadName
@Nullable public QName getResponsePayloadName()
Description copied from interface:WSDLBoundOperationGets 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:
getResponsePayloadNamein interfaceWSDLBoundOperation
-
getRequestNamespace
public String getRequestNamespace()
For rpclit gives namespace value on soapbinding:body@namespace- Specified by:
getRequestNamespacein interfaceWSDLBoundOperation- Returns:
- non-null for rpclit and null for doclit
- See Also:
RuntimeModeler.processRpcMethod(JavaMethodImpl, String, String, Method)
-
setRequestNamespace
public void setRequestNamespace(String ns)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSet request namespace- Specified by:
setRequestNamespacein interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
ns- Namespace
-
getResponseNamespace
public String getResponseNamespace()
For rpclit gives namespace value on soapbinding:body@namespace- Specified by:
getResponseNamespacein interfaceWSDLBoundOperation- Returns:
- non-null for rpclit and null for doclit
- See Also:
RuntimeModeler.processRpcMethod(JavaMethodImpl, String, String, Method)
-
setResponseNamespace
public void setResponseNamespace(String ns)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSet response namespace- Specified by:
setResponseNamespacein interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
ns- Namespace
-
freeze
public void freeze(com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLModel parent)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationFreezes WSDL model to prevent further modification- Specified by:
freezein interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
parent- WSDL Model
-
setAnonymous
public void setAnonymous(WSDLBoundOperation.ANONYMOUS anonymous)
Description copied from interface:com.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperationSets the soapbinding:binding/operation/wsaw:Anonymous.- Specified by:
setAnonymousin interfacecom.sun.xml.ws.api.model.wsdl.editable.EditableWSDLBoundOperation- Parameters:
anonymous- Anonymous value of the operation
-
getAnonymous
public WSDLBoundOperation.ANONYMOUS getAnonymous()
Description copied from interface:WSDLBoundOperationGets the soapbinding:binding/operation/wsaw:Anonymous. A default value of OPTIONAL is returned.- Specified by:
getAnonymousin interfaceWSDLBoundOperation- Returns:
- Anonymous value of the operation
-
getExtensions
public final Iterable<WSDLExtension> getExtensions()
Description copied from interface:WSDLExtensibleGets all theWSDLExtensions added throughWSDLExtensible.addExtension(WSDLExtension).- Specified by:
getExtensionsin interfaceWSDLExtensible- Returns:
- never null.
-
getExtensions
public final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
Description copied from interface:WSDLExtensibleGets 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:
getExtensionsin 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
public <T extends WSDLExtension> T getExtension(Class<T> type)
Description copied from interface:WSDLExtensibleGets 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:
getExtensionin interfaceWSDLExtensible- Returns:
- null if the extension was not found.
-
addExtension
public void addExtension(WSDLExtension ex)
Description copied from interface:WSDLExtensibleAdds a newWSDLExtensionto this object.- Specified by:
addExtensionin interfaceWSDLExtensible- Parameters:
ex- must not be null.
-
getNotUnderstoodExtensions
public List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
Description copied from interface:WSDLExtensibleLists extensions marked as not understood- Specified by:
getNotUnderstoodExtensionsin interfaceWSDLExtensible- Returns:
- List of not understood extensions
-
addNotUnderstoodExtension
public void addNotUnderstoodExtension(QName extnEl, Locator locator)
This can be used if a WSDL extension element that has wsdl:required=true is not understood- Specified by:
addNotUnderstoodExtensionin interfaceWSDLExtensible- Parameters:
extnEl-locator-
-
areRequiredExtensionsUnderstood
public boolean areRequiredExtensionsUnderstood()
This method should be called after freezing the WSDLModel- Specified by:
areRequiredExtensionsUnderstoodin interfaceWSDLExtensible- Returns:
- true if all wsdl required extensions on Port and Binding are understood
-
getLocation
@NotNull public final Locator getLocation()
Description copied from interface:WSDLObjectGets the source location information in the parsed WSDL. This is useful when producing error messages.- Specified by:
getLocationin interfaceWSDLObject
-
-