Package org.knime.core.webui.data.rpc
Interface RpcServer
- All Known Subinterfaces:
RpcSingleServer<S>
- All Known Implementing Classes:
JsonRpcServer,JsonRpcSingleServer
public interface RpcServer
An
RpcServer implementation is used to serve remote requests to one or more node data services.- Since:
- 4.3
- Author:
- Martin Horn, KNIME GmbH, Konstanz, Germany, Carl Witt, KNIME AG, Zurich, Switzerland
-
Method Summary
Modifier and TypeMethodDescriptiondefault <S> SgetHandler(Class<S> serviceInterface) Returns the service implementation associated to the nameserviceInterface.getSimpleName()<S> SgetHandler(String serviceName) SeegetHandler(Class).voidhandleRequest(InputStream in, OutputStream out) Handles a single request.
-
Method Details
-
getHandler
Returns the service implementation associated to the nameserviceInterface.getSimpleName()- 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)- Parameters:
serviceInterface- an interface the handler implements- Returns:
- an implementation of the service interface
-
getHandler
SeegetHandler(Class).- 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)- Parameters:
serviceName- the name of the interface that identifies the implementation of the node data service interface to return- Returns:
- a service implementation
-
handleRequest
Handles a single request.- Parameters:
in- contains the requestout- receives the response- Throws:
IOException
-