com.sap.conn.jco.server
Interface JCoServerFunctionHandlerFactory

All Superinterfaces:
JCoServerCallHandlerFactory
All Known Implementing Classes:
DefaultServerHandlerFactory.FunctionHandlerFactory

public interface JCoServerFunctionHandlerFactory
extends JCoServerCallHandlerFactory

Applications/runtime environments must register its handler factory instance at a JCo server allowing to create call handler instances on incoming function calls. On each incoming function call, the JCo server runtime invokes the method getCallHandler to get a fitting call handler instance, that will handle the current incoming call. This call handler factory creates function handlers. If an environment is going to use the request-response model, i.e. to use request handlers, it has to implement and register a JCoServerRequestHandlerFactory instead.
Note:Simple applications or applications that don't need such flexibility, may use the DefaultServerHandlerFactory

See Also:
JCoServer.setCallHandlerFactory(JCoServerCallHandlerFactory), DefaultServerHandlerFactory.FunctionHandlerFactory

Method Summary
 JCoServerFunctionHandler getCallHandler(JCoServerContext serverCtx, java.lang.String functionName)
          Returns a fitting function handler instance for the given function.
 
Methods inherited from interface com.sap.conn.jco.server.JCoServerCallHandlerFactory
sessionClosed
 

Method Detail

getCallHandler

JCoServerFunctionHandler getCallHandler(JCoServerContext serverCtx,
                                        java.lang.String functionName)
Returns a fitting function handler instance for the given function.

Parameters:
serverCtx - additional description for the call context
functionName - function name for which a call handler is required
Returns:
the handler instance for the function functionName


Copyright © 2008-2014 SAP AG. All Rights Reserved.