public final class WSDLOperationImpl extends Object implements EditableWSDLOperation
WSDLOperation| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractExtensibleImpl.UnknownWSDLExtension |
| Modifier and Type | Field and Description |
|---|---|
protected Set<WSDLExtension> |
extensions |
protected Iterable<EditableWSDLMessage> |
messages |
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions |
| Constructor and Description |
|---|
WSDLOperationImpl(XMLStreamReader xsr,
EditableWSDLPortType owner,
QName name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(WSDLExtension ex)
Adds a new
WSDLExtension
to this object. |
void |
addFault(EditableWSDLFault fault)
Add fault
|
void |
addNotUnderstoodExtension(QName extnEl,
Locator locator)
This can be used if a WSDL extension element that has wsdl:required=true
is not understood
|
boolean |
areRequiredExtensionsUnderstood()
This method should be called after freezing the WSDLModel
|
void |
freeze(EditableWSDLModel root)
Freezes WSDL model to prevent further modification
|
<T extends WSDLExtension> |
getExtension(Class<T> type)
Gets the extension that is assignable to the given type.
|
Iterable<WSDLExtension> |
getExtensions()
Gets all the
WSDLExtensions
added through WSDLExtensible.addExtension(WSDLExtension). |
<T extends WSDLExtension> |
getExtensions(Class<T> type)
Gets all the extensions that is assignable to the given type.
|
EditableWSDLFault |
getFault(QName faultDetailName)
Gives
WSDLFault for the given soap fault detail value. |
Iterable<EditableWSDLFault> |
getFaults()
Gets the
WSDLFault corresponding to wsdl:fault of this operation. |
EditableWSDLInput |
getInput()
Gets the wsdl:input of this operation
|
Locator |
getLocation()
Gets the source location information in the parsed WSDL.
|
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.
|
List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> |
getNotUnderstoodExtensions()
Lists extensions marked as not understood
|
EditableWSDLOutput |
getOutput()
Gets the wsdl:output of this operation.
|
String |
getParameterOrder()
Returns parameter order
|
QName |
getPortTypeName()
Gives the enclosing wsdl:portType@name attribute value.
|
boolean |
isOneWay()
Returns true if this operation is an one-way operation.
|
void |
setInput(EditableWSDLInput input)
Set input
|
void |
setOutput(EditableWSDLOutput output)
Set output
|
void |
setParameterOrder(String parameterOrder)
Set parameter order
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensionsgetLocationprotected Iterable<EditableWSDLMessage> messages
protected final Set<WSDLExtension> extensions
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name)
public QName getName()
WSDLOperationgetName in interface WSDLOperationpublic String getParameterOrder()
WSDLOperationgetParameterOrder in interface WSDLOperationpublic void setParameterOrder(String parameterOrder)
EditableWSDLOperationsetParameterOrder in interface EditableWSDLOperationparameterOrder - Parameter orderpublic EditableWSDLInput getInput()
WSDLOperationgetInput in interface EditableWSDLOperationgetInput in interface WSDLOperationpublic void setInput(EditableWSDLInput input)
EditableWSDLOperationsetInput in interface EditableWSDLOperationinput - Inputpublic EditableWSDLOutput getOutput()
WSDLOperationgetOutput in interface EditableWSDLOperationgetOutput in interface WSDLOperationpublic boolean isOneWay()
WSDLOperationisOneWay in interface WSDLOperationpublic void setOutput(EditableWSDLOutput output)
EditableWSDLOperationsetOutput in interface EditableWSDLOperationoutput - Outputpublic Iterable<EditableWSDLFault> getFaults()
WSDLOperationWSDLFault corresponding to wsdl:fault of this operation.getFaults in interface EditableWSDLOperationgetFaults in interface WSDLOperationpublic EditableWSDLFault getFault(QName faultDetailName)
WSDLOperationWSDLFault 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.
getFault in interface EditableWSDLOperationgetFault in interface WSDLOperationfaultDetailName - tag name of the element inside soaenv:Fault/detail/, must be non-null.@NotNull public QName getPortTypeName()
WSDLOperationgetPortTypeName in interface WSDLOperationpublic void addFault(EditableWSDLFault fault)
EditableWSDLOperationaddFault in interface EditableWSDLOperationfault - Faultpublic void freeze(EditableWSDLModel root)
EditableWSDLOperationfreeze in interface EditableWSDLOperationroot - WSDL Modelpublic final Iterable<WSDLExtension> getExtensions()
WSDLExtensibleWSDLExtensions
added through WSDLExtensible.addExtension(WSDLExtension).getExtensions in interface WSDLExtensiblepublic final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
WSDLExtensibleThis allows clients to find specific extensions in a type-safe and convenient way.
getExtensions in interface WSDLExtensibletype - The type of the extension to obtain. Must not be null.public <T extends WSDLExtension> T getExtension(Class<T> type)
WSDLExtensibleThis is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
getExtension in interface WSDLExtensiblepublic void addExtension(WSDLExtension ex)
WSDLExtensibleWSDLExtension
to this object.addExtension in interface WSDLExtensibleex - must not be null.public List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensiblegetNotUnderstoodExtensions in interface WSDLExtensiblepublic void addNotUnderstoodExtension(QName extnEl, Locator locator)
addNotUnderstoodExtension in interface WSDLExtensibleextnEl - locator - public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood in interface WSDLExtensible@NotNull public final Locator getLocation()
WSDLObjectgetLocation in interface WSDLObjectCopyright © 2015 Oracle Corporation. All rights reserved.