Package org.knime.core.webui.data.rpc
Interface RpcSingleServer<S>
- Type Parameters:
S- The node data service interface, i.e., the methods offered by the node model to the node dialog/view to retrieve data.
- All Superinterfaces:
RpcServer
- All Known Implementing Classes:
JsonRpcSingleServer
Convenience specialization of
RpcServer for the case where there is only node data service interface, which
the user then doesn't have to specify on every call.- Since:
- 4.3
- Author:
- Martin Horn, KNIME GmbH, Konstanz, Germany, Carl Witt, KNIME AG, Zurich, Switzerland
-
Method Summary
Modifier and TypeMethodDescriptiondefault <S2> S2getHandler(Class<S2> serviceInterface) Returns the service implementation associated to the nameserviceInterface.getSimpleName()default <S2> S2getHandler(String serviceName) Methods inherited from interface org.knime.core.webui.data.rpc.RpcServer
handleRequest
-
Method Details
-
getHandler
S getHandler()- Returns:
- an implementation of the service interface.
-
getHandler
Description copied from interface:RpcServerReturns the service implementation associated to the nameserviceInterface.getSimpleName()- Specified by:
getHandlerin interfaceRpcServer- Type Parameters:
S2- the node data service interface (i.e., the methods offered by the node model to the node dialog/view to retrieve data)- Parameters:
serviceInterface- an interface the handler implements- Returns:
- an implementation of the service interface
-
getHandler
Description copied from interface:RpcServer- Specified by:
getHandlerin interfaceRpcServer- Type Parameters:
S2- the node data service interface (i.e., the methods offered by the node model to the node dialog/view to retrieve data)- Parameters:
serviceName- the name of the interface that identifies the implementation of the node data service interface to return- Returns:
- a service implementation
-