com.sun.xml.ws.model.wsdl
Class WSDLBoundOperationImpl

java.lang.Object
  extended by com.sun.xml.ws.model.wsdl.AbstractObjectImpl
      extended by com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
          extended by com.sun.xml.ws.model.wsdl.WSDLBoundOperationImpl
All Implemented Interfaces:
WSDLBoundOperation, WSDLExtensible, WSDLObject

public final class WSDLBoundOperationImpl
extends AbstractExtensibleImpl
implements WSDLBoundOperation

Implementation of WSDLBoundOperation


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
AbstractExtensibleImpl.UnknownWSDLExtension
 
Nested classes/interfaces inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLBoundOperation
WSDLBoundOperation.ANONYMOUS
 
Field Summary
 
Fields inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
extensions, notUnderstoodExtensions
 
Constructor Summary
WSDLBoundOperationImpl(javax.xml.stream.XMLStreamReader xsr, WSDLBoundPortTypeImpl owner, QName name)
           
 
Method Summary
 void addFault(WSDLBoundFaultImpl fault)
           
 void addPart(WSDLPartImpl part, javax.jws.WebParam.Mode mode)
           
(package private)  void freeze(WSDLModelImpl parent)
           
 WSDLBoundOperation.ANONYMOUS getAnonymous()
          Gets the soapbinding:binding/operation/wsaw:Anonymous.
 WSDLBoundPortType getBoundPortType()
          Gives the owner WSDLBoundPortType
 ParameterBinding getFaultBinding(String part)
          Gets ParameterBinding for a given wsdl part in wsdl:fault
 Map<String,String> getFaultMimeTypes()
          Map of mime:content@part and the mime type from mime:content@type for wsdl:fault
 Map<String,ParameterBinding> getFaultParts()
          Map of wsdl:fault part name and the binding as ParameterBinding
 List<WSDLBoundFaultImpl> getFaults()
          Gets all the WSDLFault bound to this operation.
 Map<String,WSDLPart> getInParts()
          Gets all inbound WSDLPart by its name.
 ParameterBinding getInputBinding(String part)
          Gets ParameterBinding for a given wsdl part in wsdl:input
 Map<String,String> getInputMimeTypes()
          Map of mime:content@part and the mime type from mime:content@type for wsdl:output
 Map<String,ParameterBinding> getInputParts()
          Map of wsdl:input part name and the binding as ParameterBinding
 String getMimeTypeForFaultPart(String part)
          Gets the MIME type for a given wsdl part in wsdl:fault
 String getMimeTypeForInputPart(String part)
          Gets the MIME type for a given wsdl part in wsdl:input
 String getMimeTypeForOutputPart(String part)
          Gets the MIME type for a given wsdl part in wsdl:output
 QName getName()
          Short-cut for getOperation().getName()
 WSDLOperationImpl getOperation()
          Gets the wsdl:portType/wsdl:operation model - WSDLOperation, associated with this binding operation.
 Map<String,WSDLPart> getOutParts()
          Gets all outbound WSDLPart by its name.
 ParameterBinding getOutputBinding(String part)
          Gets ParameterBinding for a given wsdl part in wsdl:output
 Map<String,String> getOutputMimeTypes()
          Map of mime:content@part and the mime type from mime:content@type for wsdl:output
 Map<String,ParameterBinding> getOutputParts()
          Map of wsdl:output part name and the binding as ParameterBinding
(package private)  WSDLBoundPortTypeImpl getOwner()
           
 WSDLPartImpl getPart(String partName, javax.jws.WebParam.Mode mode)
          Gets WSDLPart for the given wsdl:input or wsdl:output part
 QName getPayloadName()
           
 QName getReqPayloadName()
          Gets the payload QName of the request message.
 String getRequestNamespace()
          For rpclit gives namespace value on soapbinding:body@namespace
 QName getResPayloadName()
           
 String getResponseNamespace()
          For rpclit gives namespace value on soapbinding:body@namespace
 String getSOAPAction()
          Gives soapbinding:operation@soapAction value.
 void setAnonymous(WSDLBoundOperation.ANONYMOUS anonymous)
           
 void setFaultExplicitBodyParts(boolean b)
           
 void setInputExplicitBodyParts(boolean b)
           
 void setOutputExplicitBodyParts(boolean b)
           
 void setRequestNamespace(String ns)
           
 void setResponseNamespace(String ns)
           
 void setSoapAction(String soapAction)
           
 void setStyle(javax.jws.soap.SOAPBinding.Style style)
           
 
Methods inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions
 
Methods inherited from class com.sun.xml.ws.model.wsdl.AbstractObjectImpl
getLocation
 
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, getExtension, getExtensions, getExtensions
 

Constructor Detail

WSDLBoundOperationImpl

public WSDLBoundOperationImpl(javax.xml.stream.XMLStreamReader xsr,
                              WSDLBoundPortTypeImpl owner,
                              QName name)
Parameters:
name - wsdl:operation name qualified value
Method Detail

getName

public QName getName()
Description copied from interface: WSDLBoundOperation
Short-cut for getOperation().getName()

Specified by:
getName in interface WSDLBoundOperation

getSOAPAction

public String 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 interface WSDLBoundOperation

setSoapAction

public void setSoapAction(String soapAction)

getPart

public WSDLPartImpl getPart(String partName,
                            javax.jws.WebParam.Mode mode)
Description copied from interface: WSDLBoundOperation
Gets WSDLPart for the given wsdl:input or wsdl:output part

Specified by:
getPart in interface WSDLBoundOperation
Returns:
null if no part is found

addPart

public void addPart(WSDLPartImpl part,
                    javax.jws.WebParam.Mode mode)

getInputParts

public Map<String,ParameterBinding> getInputParts()
Map of wsdl:input part name and the binding as ParameterBinding

Returns:
empty Map if there is no parts

getOutputParts

public Map<String,ParameterBinding> getOutputParts()
Map of wsdl:output part name and the binding as ParameterBinding

Returns:
empty Map if there is no parts

getFaultParts

public Map<String,ParameterBinding> getFaultParts()
Map of wsdl:fault part name and the binding as ParameterBinding

Returns:
empty Map if there is no parts

getInParts

public Map<String,WSDLPart> getInParts()
Description copied from interface: WSDLBoundOperation
Gets all inbound WSDLPart by its name.

Specified by:
getInParts in interface WSDLBoundOperation

getOutParts

public Map<String,WSDLPart> getOutParts()
Description copied from interface: WSDLBoundOperation
Gets all outbound WSDLPart by its name.

Specified by:
getOutParts in interface WSDLBoundOperation

getFaults

@NotNull
public List<WSDLBoundFaultImpl> getFaults()
Description copied from interface: WSDLBoundOperation
Gets all the WSDLFault bound to this operation.

Specified by:
getFaults in interface WSDLBoundOperation

addFault

public void addFault(@NotNull
                     WSDLBoundFaultImpl fault)

getInputMimeTypes

public Map<String,String> getInputMimeTypes()
Map of mime:content@part and the mime type from mime:content@type for wsdl:output

Returns:
empty Map if there is no parts

getOutputMimeTypes

public Map<String,String> getOutputMimeTypes()
Map of mime:content@part and the mime type from mime:content@type for wsdl:output

Returns:
empty Map if there is no parts

getFaultMimeTypes

public Map<String,String> getFaultMimeTypes()
Map of mime:content@part and the mime type from mime:content@type for wsdl:fault

Returns:
empty Map if there is no parts

getInputBinding

public ParameterBinding getInputBinding(String part)
Gets ParameterBinding for a given wsdl part in wsdl:input

Parameters:
part - Name of wsdl:part, must be non-null
Returns:
null if the part is not found.

getOutputBinding

public ParameterBinding getOutputBinding(String part)
Gets ParameterBinding for a given wsdl part in wsdl:output

Parameters:
part - Name of wsdl:part, must be non-null
Returns:
null if the part is not found.

getFaultBinding

public ParameterBinding getFaultBinding(String part)
Gets ParameterBinding for a given wsdl part in wsdl:fault

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

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

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

Parameters:
part - Name of wsdl:part, must be non-null
Returns:
null if the part is not found.

getOperation

public WSDLOperationImpl getOperation()
Description copied from interface: WSDLBoundOperation
Gets the wsdl:portType/wsdl:operation model - WSDLOperation, associated with this binding operation.

Specified by:
getOperation in interface WSDLBoundOperation
Returns:
always same WSDLOperation

getBoundPortType

public WSDLBoundPortType getBoundPortType()
Description copied from interface: WSDLBoundOperation
Gives the owner WSDLBoundPortType

Specified by:
getBoundPortType in interface WSDLBoundOperation

setInputExplicitBodyParts

public void setInputExplicitBodyParts(boolean b)

setOutputExplicitBodyParts

public void setOutputExplicitBodyParts(boolean b)

setFaultExplicitBodyParts

public void setFaultExplicitBodyParts(boolean b)

setStyle

public void setStyle(javax.jws.soap.SOAPBinding.Style style)

getPayloadName

@Nullable
public QName getPayloadName()

getReqPayloadName

@Nullable
public QName getReqPayloadName()
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:
getReqPayloadName in interface WSDLBoundOperation

getResPayloadName

@Nullable
public QName getResPayloadName()

getRequestNamespace

public String getRequestNamespace()
For rpclit gives namespace value on soapbinding:body@namespace

Returns:
non-null for rpclit and null for doclit
See Also:
RuntimeModeler.processRpcMethod(com.sun.xml.ws.model.JavaMethodImpl, String, javax.jws.WebMethod, String, java.lang.reflect.Method, javax.jws.WebService)

setRequestNamespace

public void setRequestNamespace(String ns)

getResponseNamespace

public String getResponseNamespace()
For rpclit gives namespace value on soapbinding:body@namespace

Returns:
non-null for rpclit and null for doclit * @see com.sun.xml.ws.modeler.RuntimeModeler#processRpcMethod(com.sun.xml.ws.model.JavaMethod, String, javax.jws.WebMethod, String, java.lang.reflect.Method, javax.jws.WebService)

setResponseNamespace

public void setResponseNamespace(String ns)

getOwner

WSDLBoundPortTypeImpl getOwner()

freeze

void freeze(WSDLModelImpl parent)

setAnonymous

public void setAnonymous(WSDLBoundOperation.ANONYMOUS anonymous)

getAnonymous

public WSDLBoundOperation.ANONYMOUS getAnonymous()
Description copied from interface: WSDLBoundOperation
Gets the soapbinding:binding/operation/wsaw:Anonymous. A default value of OPTIONAL is returned.

Specified by:
getAnonymous in interface WSDLBoundOperation
Returns:
Anonymous value of the operation