org.apache.wsif.providers.bsf
Class WSIFOperation_BSF

java.lang.Object
  extended byorg.apache.wsif.base.WSIFDefaultOperation
      extended byorg.apache.wsif.providers.bsf.WSIFOperation_BSF
All Implemented Interfaces:
java.io.Serializable, WSIFOperation

public class WSIFOperation_BSF
extends WSIFDefaultOperation
implements WSIFOperation

BSF operation.

Author:
Bhuvan Gupta
See Also:
WSIFPort_BSF, Serialized Form

Constructor Summary
WSIFOperation_BSF(javax.wsdl.Port portModel, javax.wsdl.BindingOperation bindingOperationModel, WSIFPort_BSF port, org.apache.bsf.BSFEngine bsfEngine)
          Constructor for the WSIFOperation_BSF object
 
Method Summary
 WSIFOperation_BSF copy()
          Create a new copy of this object.
 void executeInputOnlyOperation(WSIFMessage input)
          Execute an input-only operation.
 boolean executeRequestResponseOperation(WSIFMessage input, WSIFMessage output, WSIFMessage fault)
          Execute a request-response operation.
 WSIFPort getWSIFPort()
          Gets the wSIFPort attribute of the WSIFOperation_BSF object
 
Methods inherited from class org.apache.wsif.base.WSIFDefaultOperation
addInputJmsPropertyValues, createFaultMessage, createFaultMessage, createInputMessage, createInputMessage, createOutputMessage, createOutputMessage, executeRequestResponseAsync, executeRequestResponseAsync, fireAsyncResponse, getContext, getInputJmsProperties, getInputJmsPropertyValues, getOutputJmsProperties, processAsyncResponse, setContext, setInputJmsProperties, setInputJmsProperties, setInputJmsPropertyValues, setOutputJmsProperties, setOutputJmsProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wsif.WSIFOperation
createFaultMessage, createFaultMessage, createInputMessage, createInputMessage, createOutputMessage, createOutputMessage, executeRequestResponseAsync, executeRequestResponseAsync, fireAsyncResponse, getContext, processAsyncResponse, setContext
 

Constructor Detail

WSIFOperation_BSF

public WSIFOperation_BSF(javax.wsdl.Port portModel,
                         javax.wsdl.BindingOperation bindingOperationModel,
                         WSIFPort_BSF port,
                         org.apache.bsf.BSFEngine bsfEngine)
                  throws WSIFException
Constructor for the WSIFOperation_BSF object

Parameters:
portModel - Description of the Parameter
bindingOperationModel - Description of the Parameter
port - Description of the Parameter
bsfEngine - Description of the Parameter
Throws:
WSIFException - Description of the Exception
Method Detail

copy

public WSIFOperation_BSF copy()
                       throws WSIFException
Create a new copy of this object. This is not a clone, since it does not copy the referenced objects as well.

Returns:
Description of the Return Value
Throws:
WSIFException - Description of the Exception

getWSIFPort

public WSIFPort getWSIFPort()
Gets the wSIFPort attribute of the WSIFOperation_BSF object

Specified by:
getWSIFPort in class WSIFDefaultOperation
Returns:
The wSIFPort value

executeRequestResponseOperation

public boolean executeRequestResponseOperation(WSIFMessage input,
                                               WSIFMessage output,
                                               WSIFMessage fault)
                                        throws WSIFException
Execute a request-response operation. The signature allows for input, output and fault messages. WSDL in fact allows one to describe the set of possible faults an operation may result in, however, only one fault can occur at any one time.

Specified by:
executeRequestResponseOperation in interface WSIFOperation
Specified by:
executeRequestResponseOperation in class WSIFDefaultOperation
Parameters:
input - input message to send to the operation
output - an empty message which will be filled in if the operation invocation succeeds. If it does not succeed, the contents of this message are undefined. (This is a return value of this method.)
fault - an empty message which will be filled in if the operation invocation fails. If it succeeds, the contents of this message are undefined. (This is a return value of this method.)
Returns:
true or false indicating whether a fault message was generated or not. The truth value indicates whether the output or fault message has useful information.
Throws:
WSIFException - if something goes wrong.
See Also:
WSIFOperation.executeRequestResponseOperation(WSIFMessage, WSIFMessage, WSIFMessage)

executeInputOnlyOperation

public void executeInputOnlyOperation(WSIFMessage input)
                               throws WSIFException
Execute an input-only operation.

Specified by:
executeInputOnlyOperation in interface WSIFOperation
Specified by:
executeInputOnlyOperation in class WSIFDefaultOperation
Parameters:
input - input message to send to the operation
Throws:
WSIFException - if something goes wrong.
See Also:
WSIFOperation.executeInputOnlyOperation(WSIFMessage)


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.