|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.model.wsdl.WSDLOperationImpl
public final class WSDLOperationImpl
Implementaiton of WSDLOperation
| Nested Class Summary | |
|---|---|
protected static class |
com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension
|
| Field Summary | |
|---|---|
protected Set<WSDLExtension> |
extensions
|
protected Iterable<EditableWSDLMessage> |
messages
|
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions
|
| Constructor Summary | |
|---|---|
WSDLOperationImpl(XMLStreamReader xsr,
EditableWSDLPortType owner,
QName name)
|
|
| Method Summary | ||
|---|---|---|
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 |
|
|
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). |
|
|
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 com.sun.xml.ws.model.wsdl.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 |
|
| 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, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions |
| Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject |
|---|
getLocation |
| Field Detail |
|---|
protected Iterable<EditableWSDLMessage> messages
protected final Set<WSDLExtension> extensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
| Constructor Detail |
|---|
public WSDLOperationImpl(XMLStreamReader xsr,
EditableWSDLPortType owner,
QName name)
| Method Detail |
|---|
public QName getName()
WSDLOperation
getName in interface WSDLOperationpublic String getParameterOrder()
WSDLOperation
getParameterOrder in interface WSDLOperationpublic void setParameterOrder(String parameterOrder)
EditableWSDLOperation
setParameterOrder in interface EditableWSDLOperationparameterOrder - Parameter orderpublic EditableWSDLInput getInput()
WSDLOperation
getInput in interface EditableWSDLOperationgetInput in interface WSDLOperationpublic void setInput(EditableWSDLInput input)
EditableWSDLOperation
setInput in interface EditableWSDLOperationinput - Inputpublic EditableWSDLOutput getOutput()
WSDLOperation
getOutput in interface EditableWSDLOperationgetOutput in interface WSDLOperationpublic boolean isOneWay()
WSDLOperation
isOneWay in interface WSDLOperationpublic void setOutput(EditableWSDLOutput output)
EditableWSDLOperation
setOutput 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()
WSDLOperation
getPortTypeName in interface WSDLOperationpublic void addFault(EditableWSDLFault fault)
EditableWSDLOperation
addFault in interface EditableWSDLOperationfault - Faultpublic void freeze(EditableWSDLModel root)
EditableWSDLOperation
freeze 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 com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensible
getNotUnderstoodExtensions in interface WSDLExtensible
public void addNotUnderstoodExtension(QName extnEl,
Locator locator)
addNotUnderstoodExtension in interface WSDLExtensibleextnEl - locator - public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood in interface WSDLExtensible@NotNull public final Locator getLocation()
WSDLObject
getLocation in interface WSDLObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||