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

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.WSDLOperationImpl
All Implemented Interfaces:
WSDLExtensible, WSDLObject, WSDLOperation

public final class WSDLOperationImpl
extends AbstractExtensibleImpl
implements WSDLOperation

Implementaiton of WSDLOperation


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
AbstractExtensibleImpl.UnknownWSDLExtension
 
Field Summary
protected  Iterable<WSDLMessageImpl> messages
           
 
Fields inherited from class com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
extensions, notUnderstoodExtensions
 
Constructor Summary
WSDLOperationImpl(javax.xml.stream.XMLStreamReader xsr, WSDLPortTypeImpl owner, QName name)
           
 
Method Summary
 void addFault(WSDLFaultImpl fault)
           
 void freez(WSDLModelImpl root)
           
 WSDLFault getFault(QName faultDetailName)
          Gives WSDLFault for the given soap fault detail value.
 Map<String,String> getFaultActionMap()
           
 Iterable<WSDLFaultImpl> getFaults()
          Gets the WSDLFault corresponding to wsdl:fault of this operation.
 WSDLInputImpl getInput()
          Gets the wsdl:input of this operation
 QName getName()
          Gets the name of the wsdl:portType/wsdl:operation@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.
 WSDLOutputImpl getOutput()
          Gets the wsdl:output of this operation.
(package private)  WSDLPortType getOwner()
           
 String getParameterOrder()
           
 QName getPortTypeName()
          Gives the enclosing wsdl:portType@name attribute value.
 boolean isOneWay()
          Returns true if this operation is an one-way operation.
 void setInput(WSDLInputImpl input)
           
 void setOutput(WSDLOutputImpl output)
           
 void setParameterOrder(String parameterOrder)
           
 
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
 
Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
 

Field Detail

messages

protected Iterable<WSDLMessageImpl> messages
Constructor Detail

WSDLOperationImpl

public WSDLOperationImpl(javax.xml.stream.XMLStreamReader xsr,
                         WSDLPortTypeImpl owner,
                         QName name)
Method Detail

getName

public QName getName()
Description copied from interface: WSDLOperation
Gets the name of the wsdl:portType/wsdl:operation@name attribute value as local name and wsdl:definitions@targetNamespace as the namespace uri.

Specified by:
getName in interface WSDLOperation

getParameterOrder

public String getParameterOrder()

setParameterOrder

public void setParameterOrder(String parameterOrder)

getInput

public WSDLInputImpl getInput()
Description copied from interface: WSDLOperation
Gets the wsdl:input of this operation

Specified by:
getInput in interface WSDLOperation

setInput

public void setInput(WSDLInputImpl input)

getOutput

public WSDLOutputImpl getOutput()
Description copied from interface: WSDLOperation
Gets the wsdl:output of this operation.

Specified by:
getOutput in interface WSDLOperation
Returns:
null if this is an one-way operation.

isOneWay

public boolean isOneWay()
Description copied from interface: WSDLOperation
Returns true if this operation is an one-way operation.

Specified by:
isOneWay in interface WSDLOperation

setOutput

public void setOutput(WSDLOutputImpl output)

getFaults

public Iterable<WSDLFaultImpl> getFaults()
Description copied from interface: WSDLOperation
Gets the WSDLFault corresponding to wsdl:fault of this operation.

Specified by:
getFaults in interface WSDLOperation

getFault

public WSDLFault getFault(QName faultDetailName)
Description copied from interface: WSDLOperation
Gives WSDLFault for the given soap fault detail value.

 Given a wsdl fault:

 <wsdl:message nae="faultMessage">
  <wsdl:part name="fault" element="ns:myException/>
 </wsdl:message>

 <wsdl:portType>
  <wsdl:operation ...>
      <wsdl:fault name="aFault" message="faultMessage"/>
  </wsdl:operation>
 <wsdl:portType>


 For example given a soap 11 soap message:

 <soapenv:Fault>
      ...
      <soapenv:detail>
          <ns:myException>
              ...
          </ns:myException>
      </soapenv:detail>

 QName faultQName = new QName(ns, "myException");
 WSDLFault wsdlFault  = getFault(faultQName);

 The above call will return a WSDLFault that abstracts wsdl:portType/wsdl:operation/wsdl:fault.

 

Specified by:
getFault in interface WSDLOperation
Parameters:
faultDetailName - tag name of the element inside soaenv:Fault/detail/, must be non-null.
Returns:
returns null if a wsdl fault corresponding to the detail entry name not found.

getFaultActionMap

public Map<String,String> getFaultActionMap()

getOwner

WSDLPortType getOwner()

getPortTypeName

@NotNull
public QName getPortTypeName()
Description copied from interface: WSDLOperation
Gives the enclosing wsdl:portType@name attribute value.

Specified by:
getPortTypeName in interface WSDLOperation

addFault

public void addFault(WSDLFaultImpl fault)

freez

public void freez(WSDLModelImpl root)