org.apache.soap.server
Class  InvokeBSF
java.lang.Object
  |
  +--org.apache.soap.server.InvokeBSF
- public class InvokeBSF
- extends java.lang.Object
  
This class provides a static method to invoke services implemented
 via BSF. This code used to live in rpcrouter.jsp, but it was moved
 here to keep rpcrouter.jsp independent of BSF (didn't want to prereq
 BSF). The code in rpcrouter.jsp invokes these methods using reflection
 to avoid being dependent on them ..
- Author: 
 - Sanjiva Weerawarana (sanjiva@watson.ibm.com), Matthew J. Duftler (duftler@us.ibm.com)
 
 
| 
Method Summary | 
static void | 
init(DeploymentDescriptor dd,
     java.lang.Object target,
     java.lang.String scriptStr)
 
          This method is invoked to exec the script implementing the service into
 the scripting engine so that later service calls can work. | 
static Bean | 
service(DeploymentDescriptor dd,
        java.lang.Object target,
        java.lang.String methodName,
        java.lang.Object[] args)
 
          This method is invoked when a method is to be called. | 
 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
InvokeBSF
public InvokeBSF()
init
public static void init(DeploymentDescriptor dd,
                        java.lang.Object target,
                        java.lang.String scriptStr)
                 throws SOAPException
- This method is invoked to exec the script implementing the service into
 the scripting engine so that later service calls can work.
- Parameters:
 dd - the deployment descriptor of the servicescriptStr - the string containing function definitions to be exec'ed- Throws:
 - SOAPException - if something goes wrong
 
 
 
service
public static Bean service(DeploymentDescriptor dd,
                           java.lang.Object target,
                           java.lang.String methodName,
                           java.lang.Object[] args)
                    throws SOAPException
- This method is invoked when a method is to be called.
- Parameters:
 dd - the deployment descriptor of the servicetarget - the BSFManager object which is used to exec/callmethodName - name of function in the script to callargs - arguments to the function or null if none- Returns:
 - a Bean object containing the result
 - Throws:
 - SOAPException - if something goes wrong
 
 
 
Copyright © 2001 Apache XML Project. All Rights Reserved.