com.sun.xml.ws.model.wsdl
Class WSDLOperationImpl
java.lang.Object
com.sun.xml.ws.model.wsdl.AbstractObjectImpl
com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl
com.sun.xml.ws.model.wsdl.WSDLOperationImpl
- All Implemented Interfaces:
- WSDLExtensible, WSDLObject, WSDLOperation
public final class WSDLOperationImpl
- extends AbstractExtensibleImpl
- implements WSDLOperation
Implementaiton of WSDLOperation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messages
protected Iterable<WSDLMessageImpl> messages
WSDLOperationImpl
public WSDLOperationImpl(javax.xml.stream.XMLStreamReader xsr,
WSDLPortTypeImpl owner,
QName name)
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)