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
WSDLExtension s
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, wait
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
getLocation
protected Iterable<EditableWSDLMessage> messages
protected final Set<WSDLExtension> extensions
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
public WSDLOperationImpl(XMLStreamReader xsr, EditableWSDLPortType owner, QName name)
public QName getName()
WSDLOperation
getName
in interface WSDLOperation
public String getParameterOrder()
WSDLOperation
getParameterOrder
in interface WSDLOperation
public void setParameterOrder(String parameterOrder)
EditableWSDLOperation
setParameterOrder
in interface EditableWSDLOperation
parameterOrder
- Parameter orderpublic EditableWSDLInput getInput()
WSDLOperation
getInput
in interface EditableWSDLOperation
getInput
in interface WSDLOperation
public void setInput(EditableWSDLInput input)
EditableWSDLOperation
setInput
in interface EditableWSDLOperation
input
- Inputpublic EditableWSDLOutput getOutput()
WSDLOperation
getOutput
in interface EditableWSDLOperation
getOutput
in interface WSDLOperation
public boolean isOneWay()
WSDLOperation
isOneWay
in interface WSDLOperation
public void setOutput(EditableWSDLOutput output)
EditableWSDLOperation
setOutput
in interface EditableWSDLOperation
output
- Outputpublic Iterable<EditableWSDLFault> getFaults()
WSDLOperation
WSDLFault
corresponding to wsdl:fault of this operation.getFaults
in interface EditableWSDLOperation
getFaults
in interface WSDLOperation
public EditableWSDLFault getFault(QName faultDetailName)
WSDLOperation
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.
getFault
in interface EditableWSDLOperation
getFault
in interface WSDLOperation
faultDetailName
- tag name of the element inside soaenv:Fault/detail/, must be non-null.@NotNull public QName getPortTypeName()
WSDLOperation
getPortTypeName
in interface WSDLOperation
public void addFault(EditableWSDLFault fault)
EditableWSDLOperation
addFault
in interface EditableWSDLOperation
fault
- Faultpublic void freeze(EditableWSDLModel root)
EditableWSDLOperation
freeze
in interface EditableWSDLOperation
root
- WSDL Modelpublic final Iterable<WSDLExtension> getExtensions()
WSDLExtensible
WSDLExtension
s
added through WSDLExtensible.addExtension(WSDLExtension)
.getExtensions
in interface WSDLExtensible
public final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
WSDLExtensible
This allows clients to find specific extensions in a type-safe and convenient way.
getExtensions
in interface WSDLExtensible
type
- The type of the extension to obtain. Must not be null.public <T extends WSDLExtension> T getExtension(Class<T> type)
WSDLExtensible
This is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
getExtension
in interface WSDLExtensible
public void addExtension(WSDLExtension ex)
WSDLExtensible
WSDLExtension
to this object.addExtension
in interface WSDLExtensible
ex
- must not be null.public List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensible
getNotUnderstoodExtensions
in interface WSDLExtensible
public void addNotUnderstoodExtension(QName extnEl, Locator locator)
addNotUnderstoodExtension
in interface WSDLExtensible
extnEl
- locator
- public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood
in interface WSDLExtensible
@NotNull public final Locator getLocation()
WSDLObject
getLocation
in interface WSDLObject
Copyright © 2015 Oracle Corporation. All rights reserved.