com.sap.conn.jco.server
Interface JCoServerRequestHandlerFactory

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

public interface JCoServerRequestHandlerFactory
extends JCoServerCallHandlerFactory

Factory for creating request handlers for a server instance.

Applications/runtime environments must register a handler factory instance at a JCo server which enables it to create call handler instances for incoming remote function calls. On each incoming remote function call, the JCo server runtime invokes the method getCallHandler to get a fitting call handler instance, which will then handle the current incoming call.

This call handler factory creates request handlers. If an environment is going to use the function model, i.e. by using function handlers, it has to implement and register a JCoServerFunctionHandlerFactory instead.

Note: Simple applications or applications that do not need such flexibility, may use the DefaultServerHandlerFactory.

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

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

Method Detail

getCallHandler

JCoServerRequestHandler getCallHandler(JCoServerContext serverCtx,
                                       java.lang.String requestName)
Returns a fitting request handler instance for the given function.

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


Copyright © 2008-2016 SAP SE. All Rights Reserved.