public final class WSDLBoundOperationImpl extends Object implements EditableWSDLBoundOperation
WSDLBoundOperation
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractExtensibleImpl.UnknownWSDLExtension |
WSDLBoundOperation.ANONYMOUS
Modifier and Type | Field and Description |
---|---|
protected Set<WSDLExtension> |
extensions |
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions |
Constructor and Description |
---|
WSDLBoundOperationImpl(XMLStreamReader xsr,
EditableWSDLBoundPortType owner,
QName name) |
Modifier and Type | Method and Description |
---|---|
void |
addExtension(WSDLExtension ex)
Adds a new
WSDLExtension
to this object. |
void |
addFault(EditableWSDLBoundFault 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
|
void |
addPart(EditableWSDLPart part,
WebParam.Mode mode)
Add Part
|
boolean |
areRequiredExtensionsUnderstood()
This method should be called after freezing the WSDLModel
|
void |
freeze(EditableWSDLModel parent)
Freezes WSDL model to prevent further modification
|
WSDLBoundOperation.ANONYMOUS |
getAnonymous()
Gets the soapbinding:binding/operation/wsaw:Anonymous.
|
EditableWSDLBoundPortType |
getBoundPortType()
Gives the owner
WSDLBoundPortType |
<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.
|
ParameterBinding |
getFaultBinding(String part)
Gets
ParameterBinding for a given wsdl part in wsdl:fault |
Map<String,ParameterBinding> |
getFaultParts()
Map of wsdl:fault part name and the binding as
ParameterBinding |
List<? extends EditableWSDLBoundFault> |
getFaults()
Gets all the
WSDLFault bound to this operation. |
Map<String,? extends EditableWSDLPart> |
getInParts()
|
ParameterBinding |
getInputBinding(String part)
Gets
ParameterBinding for a given wsdl part in wsdl:input |
Map<String,ParameterBinding> |
getInputParts()
Map of wsdl:input part name and the binding as
ParameterBinding |
Locator |
getLocation()
Gets the source location information in the parsed WSDL.
|
String |
getMimeTypeForFaultPart(String part)
Gets the MIME type for a given wsdl part in wsdl:fault
|
String |
getMimeTypeForInputPart(String part)
Gets the MIME type for a given wsdl part in wsdl:input
|
String |
getMimeTypeForOutputPart(String part)
Gets the MIME type for a given wsdl part in wsdl:output
|
QName |
getName()
Short-cut for
getOperation().getName() |
List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> |
getNotUnderstoodExtensions()
Lists extensions marked as not understood
|
EditableWSDLOperation |
getOperation()
Gets the wsdl:portType/wsdl:operation model -
WSDLOperation ,
associated with this binding operation. |
Map<String,? extends EditableWSDLPart> |
getOutParts()
|
ParameterBinding |
getOutputBinding(String part)
Gets
ParameterBinding for a given wsdl part in wsdl:output |
Map<String,ParameterBinding> |
getOutputParts()
Map of wsdl:output part name and the binding as
ParameterBinding |
EditableWSDLPart |
getPart(String partName,
WebParam.Mode mode)
Gets
WSDLPart for the given wsdl:input or wsdl:output part |
String |
getRequestNamespace()
For rpclit gives namespace value on soapbinding:body@namespace
|
QName |
getRequestPayloadName()
Gets the payload QName of the request message.
|
String |
getResponseNamespace()
For rpclit gives namespace value on soapbinding:body@namespace
|
QName |
getResponsePayloadName()
Gets the payload QName of the response message.
|
String |
getSOAPAction()
Gives soapbinding:operation@soapAction value.
|
void |
setAnonymous(WSDLBoundOperation.ANONYMOUS anonymous)
Sets the soapbinding:binding/operation/wsaw:Anonymous.
|
void |
setFaultExplicitBodyParts(boolean b)
Sets fault explicit body parts
|
void |
setInputExplicitBodyParts(boolean b)
Sets input explicit body parts
|
void |
setOutputExplicitBodyParts(boolean b)
Sets output explicit body parts
|
void |
setRequestNamespace(String ns)
Set request namespace
|
void |
setResponseNamespace(String ns)
Set response namespace
|
void |
setSoapAction(String soapAction)
Set SOAP action
|
void |
setStyle(SOAPBinding.Style style)
Set parameter style
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
getLocation
protected final Set<WSDLExtension> extensions
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
public WSDLBoundOperationImpl(XMLStreamReader xsr, EditableWSDLBoundPortType owner, QName name)
name
- wsdl:operation name qualified valuepublic QName getName()
WSDLBoundOperation
getOperation().getName()
getName
in interface WSDLBoundOperation
public String getSOAPAction()
WSDLBoundOperation
getSOAPAction
in interface WSDLBoundOperation
public void setSoapAction(String soapAction)
EditableWSDLBoundOperation
setSoapAction
in interface EditableWSDLBoundOperation
soapAction
- SOAP actionpublic EditableWSDLPart getPart(String partName, WebParam.Mode mode)
WSDLBoundOperation
WSDLPart
for the given wsdl:input or wsdl:output partgetPart
in interface EditableWSDLBoundOperation
getPart
in interface WSDLBoundOperation
public void addPart(EditableWSDLPart part, WebParam.Mode mode)
EditableWSDLBoundOperation
addPart
in interface EditableWSDLBoundOperation
part
- Partmode
- Modepublic Map<String,ParameterBinding> getInputParts()
ParameterBinding
getInputParts
in interface WSDLBoundOperation
public Map<String,ParameterBinding> getOutputParts()
ParameterBinding
getOutputParts
in interface WSDLBoundOperation
public Map<String,ParameterBinding> getFaultParts()
ParameterBinding
getFaultParts
in interface WSDLBoundOperation
public Map<String,? extends EditableWSDLPart> getInParts()
WSDLBoundOperation
getInParts
in interface EditableWSDLBoundOperation
getInParts
in interface WSDLBoundOperation
public Map<String,? extends EditableWSDLPart> getOutParts()
WSDLBoundOperation
getOutParts
in interface EditableWSDLBoundOperation
getOutParts
in interface WSDLBoundOperation
@NotNull public List<? extends EditableWSDLBoundFault> getFaults()
WSDLBoundOperation
WSDLFault
bound to this operation.getFaults
in interface EditableWSDLBoundOperation
getFaults
in interface WSDLBoundOperation
public void addFault(@NotNull EditableWSDLBoundFault fault)
EditableWSDLBoundOperation
addFault
in interface EditableWSDLBoundOperation
fault
- Faultpublic ParameterBinding getInputBinding(String part)
ParameterBinding
for a given wsdl part in wsdl:inputgetInputBinding
in interface WSDLBoundOperation
part
- Name of wsdl:part, must be non-nullpublic ParameterBinding getOutputBinding(String part)
ParameterBinding
for a given wsdl part in wsdl:outputgetOutputBinding
in interface WSDLBoundOperation
part
- Name of wsdl:part, must be non-nullpublic ParameterBinding getFaultBinding(String part)
ParameterBinding
for a given wsdl part in wsdl:faultgetFaultBinding
in interface WSDLBoundOperation
part
- Name of wsdl:part, must be non-nullpublic String getMimeTypeForInputPart(String part)
getMimeTypeForInputPart
in interface WSDLBoundOperation
part
- Name of wsdl:part, must be non-nullpublic String getMimeTypeForOutputPart(String part)
getMimeTypeForOutputPart
in interface WSDLBoundOperation
part
- Name of wsdl:part, must be non-nullpublic String getMimeTypeForFaultPart(String part)
getMimeTypeForFaultPart
in interface WSDLBoundOperation
part
- Name of wsdl:part, must be non-nullpublic EditableWSDLOperation getOperation()
WSDLBoundOperation
WSDLOperation
,
associated with this binding operation.getOperation
in interface EditableWSDLBoundOperation
getOperation
in interface WSDLBoundOperation
WSDLOperation
public EditableWSDLBoundPortType getBoundPortType()
WSDLBoundOperation
WSDLBoundPortType
getBoundPortType
in interface EditableWSDLBoundOperation
getBoundPortType
in interface WSDLBoundOperation
public void setInputExplicitBodyParts(boolean b)
EditableWSDLBoundOperation
setInputExplicitBodyParts
in interface EditableWSDLBoundOperation
b
- True, if input body part is explicitpublic void setOutputExplicitBodyParts(boolean b)
EditableWSDLBoundOperation
setOutputExplicitBodyParts
in interface EditableWSDLBoundOperation
b
- True, if output body part is explicitpublic void setFaultExplicitBodyParts(boolean b)
EditableWSDLBoundOperation
setFaultExplicitBodyParts
in interface EditableWSDLBoundOperation
b
- True, if fault body part is explicitpublic void setStyle(SOAPBinding.Style style)
EditableWSDLBoundOperation
setStyle
in interface EditableWSDLBoundOperation
style
- Style@Nullable public QName getRequestPayloadName()
WSDLBoundOperation
It's possible for an operation to define no body part, in which case this method returns null.
getRequestPayloadName
in interface WSDLBoundOperation
@Nullable public QName getResponsePayloadName()
WSDLBoundOperation
It's possible for an operation to define no body part, in which case this method returns null.
getResponsePayloadName
in interface WSDLBoundOperation
public String getRequestNamespace()
getRequestNamespace
in interface WSDLBoundOperation
RuntimeModeler.processRpcMethod(JavaMethodImpl, String, String, Method)
public void setRequestNamespace(String ns)
EditableWSDLBoundOperation
setRequestNamespace
in interface EditableWSDLBoundOperation
ns
- Namespacepublic String getResponseNamespace()
getResponseNamespace
in interface WSDLBoundOperation
RuntimeModeler.processRpcMethod(JavaMethodImpl, String, String, Method)
public void setResponseNamespace(String ns)
EditableWSDLBoundOperation
setResponseNamespace
in interface EditableWSDLBoundOperation
ns
- Namespacepublic void freeze(EditableWSDLModel parent)
EditableWSDLBoundOperation
freeze
in interface EditableWSDLBoundOperation
parent
- WSDL Modelpublic void setAnonymous(WSDLBoundOperation.ANONYMOUS anonymous)
EditableWSDLBoundOperation
setAnonymous
in interface EditableWSDLBoundOperation
anonymous
- Anonymous value of the operationpublic WSDLBoundOperation.ANONYMOUS getAnonymous()
WSDLBoundOperation
getAnonymous
in interface WSDLBoundOperation
public 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.