java.lang.Object
com.sun.xml.ws.model.wsdl.WSDLOperationImpl
- All Implemented Interfaces:
EditableWSDLOperation
,WSDLExtensible
,WSDLObject
,WSDLOperation
Implementaiton of
WSDLOperation
- Author:
- Vivek Pandey
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Set<WSDLExtension>
protected Iterable<EditableWSDLMessage>
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension>
-
Constructor Summary
ConstructorDescriptionWSDLOperationImpl
(XMLStreamReader xsr, EditableWSDLPortType owner, QName name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a newWSDLExtension
to this object.void
addFault
(EditableWSDLFault fault) Add faultvoid
addNotUnderstoodExtension
(QName extnEl, Locator locator) This can be used if a WSDL extension element that has wsdl:required=true is not understoodboolean
This method should be called after freezing the WSDLModelvoid
freeze
(EditableWSDLModel root) Freezes WSDL model to prevent further modification<T extends WSDLExtension>
TgetExtension
(Class<T> type) Gets the extension that is assignable to the given type.final Iterable<WSDLExtension>
Gets all theWSDLExtension
s added throughWSDLExtensible.addExtension(WSDLExtension)
.final <T extends WSDLExtension>
Iterable<T>getExtensions
(Class<T> type) Gets all the extensions that is assignable to the given type.GivesWSDLFault
for the given soap fault detail value.Gets theWSDLFault
corresponding to wsdl:fault of this operation.getInput()
Gets the wsdl:input of this operationfinal Locator
Gets the source location information in the parsed WSDL.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>
Lists extensions marked as not understoodGets the wsdl:output of this operation.Returns parameter orderGives the enclosing wsdl:portType@name attribute value.boolean
isOneWay()
Returns true if this operation is an one-way operation.void
setInput
(EditableWSDLInput input) Set inputvoid
setOutput
(EditableWSDLOutput output) Set outputvoid
setParameterOrder
(String parameterOrder) Set parameter orderMethods 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 Details
-
messages
-
extensions
-
notUnderstoodExtensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
-
-
Constructor Details
-
WSDLOperationImpl
-
-
Method Details
-
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 interfaceWSDLOperation
-
getParameterOrder
Description copied from interface:WSDLOperation
Returns parameter order- Specified by:
getParameterOrder
in interfaceWSDLOperation
- Returns:
- Parameter order
-
setParameterOrder
Description copied from interface:EditableWSDLOperation
Set parameter order- Specified by:
setParameterOrder
in interfaceEditableWSDLOperation
- Parameters:
parameterOrder
- Parameter order
-
getInput
Description copied from interface:WSDLOperation
Gets the wsdl:input of this operation- Specified by:
getInput
in interfaceEditableWSDLOperation
- Specified by:
getInput
in interfaceWSDLOperation
-
setInput
Description copied from interface:EditableWSDLOperation
Set input- Specified by:
setInput
in interfaceEditableWSDLOperation
- Parameters:
input
- Input
-
getOutput
Description copied from interface:WSDLOperation
Gets the wsdl:output of this operation.- Specified by:
getOutput
in interfaceEditableWSDLOperation
- Specified by:
getOutput
in interfaceWSDLOperation
- 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 interfaceWSDLOperation
-
setOutput
Description copied from interface:EditableWSDLOperation
Set output- Specified by:
setOutput
in interfaceEditableWSDLOperation
- Parameters:
output
- Output
-
getFaults
Description copied from interface:WSDLOperation
Gets theWSDLFault
corresponding to wsdl:fault of this operation.- Specified by:
getFaults
in interfaceEditableWSDLOperation
- Specified by:
getFaults
in interfaceWSDLOperation
-
getFault
Description copied from interface:WSDLOperation
GivesWSDLFault
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 interfaceEditableWSDLOperation
- Specified by:
getFault
in interfaceWSDLOperation
- 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.
-
getPortTypeName
Description copied from interface:WSDLOperation
Gives the enclosing wsdl:portType@name attribute value.- Specified by:
getPortTypeName
in interfaceWSDLOperation
-
addFault
Description copied from interface:EditableWSDLOperation
Add fault- Specified by:
addFault
in interfaceEditableWSDLOperation
- Parameters:
fault
- Fault
-
freeze
Description copied from interface:EditableWSDLOperation
Freezes WSDL model to prevent further modification- Specified by:
freeze
in interfaceEditableWSDLOperation
- Parameters:
root
- WSDL Model
-
getExtensions
Description copied from interface:WSDLExtensible
Gets all theWSDLExtension
s added throughWSDLExtensible.addExtension(WSDLExtension)
.- Specified by:
getExtensions
in interfaceWSDLExtensible
- Returns:
- never null.
-
getExtensions
Description copied from interface:WSDLExtensible
Gets all the extensions that is assignable to the given type.This allows clients to find specific extensions in a type-safe and convenient way.
- Specified by:
getExtensions
in interfaceWSDLExtensible
- Parameters:
type
- The type of the extension to obtain. Must not be null.- Returns:
- Can be an empty fromjava.collection but never null.
-
getExtension
Description copied from interface:WSDLExtensible
Gets the extension that is assignable to the given type.This is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
- Specified by:
getExtension
in interfaceWSDLExtensible
- Returns:
- null if the extension was not found.
-
addExtension
Description copied from interface:WSDLExtensible
Adds a newWSDLExtension
to this object.- Specified by:
addExtension
in interfaceWSDLExtensible
- Parameters:
ex
- must not be null.
-
getNotUnderstoodExtensions
public List<? extends com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()Description copied from interface:WSDLExtensible
Lists extensions marked as not understood- Specified by:
getNotUnderstoodExtensions
in interfaceWSDLExtensible
- Returns:
- List of not understood extensions
-
addNotUnderstoodExtension
This can be used if a WSDL extension element that has wsdl:required=true is not understood- Specified by:
addNotUnderstoodExtension
in interfaceWSDLExtensible
- Parameters:
extnEl
- QName of extensionlocator
- Locator
-
areRequiredExtensionsUnderstood
public boolean areRequiredExtensionsUnderstood()This method should be called after freezing the WSDLModel- Specified by:
areRequiredExtensionsUnderstood
in interfaceWSDLExtensible
- Returns:
- true if all wsdl required extensions on Port and Binding are understood
-
getLocation
Description copied from interface:WSDLObject
Gets the source location information in the parsed WSDL. This is useful when producing error messages.- Specified by:
getLocation
in interfaceWSDLObject
-