public class OperationStub extends Operation
DefaultService.define(org.ws4d.java.types.URI, CredentialInfo) . They provide a way to detach
the business logic of an operation from its metadata by means of InvokeDelegate
instances.inputAttributable, outputAttributable, typeattributes| Constructor and Description |
|---|
OperationStub(java.lang.String name,
QName portType)
Creates a new operation stub with the given name and port type.
|
| Modifier and Type | Method and Description |
|---|---|
InvokeDelegate |
getDelegate()
Returns the current delegate.
|
ParameterValue |
invokeImpl(ParameterValue parameterValue,
CredentialInfo credentialInfo)
This method must be overwritten from User.
|
void |
setDelegate(InvokeDelegate delegate)
Sets the delegate which shall receive invocation requests from this operation.
|
getType, invoke, invoke, isOneWay, isRequestResponseaddCustomComplexType, addFault, addInputParameter, addOutputParameter, clearCustomComplexTypes, createFaultValue, createFaultValue, createInputValue, createInputValue, createOutputValue, createOutputValue, equals, getCustomComplexTypes, getFault, getFaultAttribute, getFaultAttributes, getFaultCount, getFaults, getInput, getInputAction, getInputAttribute, getInputAttributes, getInputName, getInputParameter, getName, getNameQuallified, getOutput, getOutputAction, getOutputAttribute, getOutputAttributes, getOutputName, getOutputParameter, getPortType, getService, hasFaultAttributes, hashCode, hasInputAttributes, hasOutputAttributes, isInputActionSet, isInputNameSet, isOutputActionSet, isOutputNameSet, removeCustomComplexType, removeFault, setFaultAttribute, setFaultAttributes, setInput, setInputAction, setInputAttribute, setInputAttributes, setInputName, setInputNameInternal, setOutput, setOutputAction, setOutputAttribute, setOutputAttributes, setOutputName, setOutputNameInternal, setService, toStringgetAttribute, getAttributes, hasAttributes, serializeAttributes, setAttribute, setAttribute, setAttributespublic OperationStub(java.lang.String name,
QName portType)
name - the name of the operationportType - the name of the port type to which this operation belongspublic ParameterValue invokeImpl(ParameterValue parameterValue, CredentialInfo credentialInfo) throws InvocationException, CommunicationException
OperationinvokeImpl in class OperationInvocationExceptionCommunicationExceptionpublic InvokeDelegate getDelegate()
null if either none set or explicitly set to
null.nullpublic void setDelegate(InvokeDelegate delegate)
delegate is null, a default one will be installed, which throws an InvocationException with a code of {SOAPConstants#SOAP_FAULT_SENDER} and a subcode of WS4DConstants.WS4D_FAULT_NOT_IMPLEMENTED. However, calling the method getDelegate()
afterwards will return null instead of this default InvokeDelegate.delegate - the delegate to set or null to fall back to a default implementation throwing an InvocationException with a code of {SOAPConstants#SOAP_FAULT_SENDER} and a subcode of WS4DConstants.WS4D_FAULT_NOT_IMPLEMENTED on each call to Operation.invoke(ParameterValue)