Class KieServerControllerClientFactory


  • public class KieServerControllerClientFactory
    extends Object
    • Method Detail

      • newRestClient

        public static KieServerControllerClient newRestClient​(String controllerUrl,
                                                              String login,
                                                              String password)
        Creates a new Kie Controller Client using REST based service
        Parameters:
        controllerUrl - the URL to the server (e.g.: "http://localhost:8080/kie-server-controller/rest/controller")
        login - user login
        password - user password
        Returns:
        client instance
      • newRestClient

        public static KieServerControllerClient newRestClient​(String controllerUrl,
                                                              String login,
                                                              String password,
                                                              org.kie.server.api.marshalling.MarshallingFormat format)
        Creates a new Kie Controller Client using REST based service
        Parameters:
        controllerUrl - the URL to the server (e.g.: "http://localhost:8080/kie-server-controller/rest/controller")
        login - user login
        password - user password
        format - marshaling format
        Returns:
        client instance
      • newRestClient

        public static KieServerControllerClient newRestClient​(String controllerUrl,
                                                              String login,
                                                              String password,
                                                              org.kie.server.api.marshalling.MarshallingFormat format,
                                                              javax.ws.rs.core.Configuration configuration)
        Creates a new Kie Controller Client using REST based service
        Parameters:
        controllerUrl - the URL to the server (e.g.: "http://localhost:8080/kie-server-controller/rest/controller")
        login - user login
        password - user password
        format - marshaling format
        configuration - REST client configuration
        Returns:
        client instance
      • newWebSocketClient

        public static KieServerControllerClient newWebSocketClient​(String controllerUrl,
                                                                   String login,
                                                                   String password)
        Creates a new Kie Controller Client using Web Socket based service
        Parameters:
        controllerUrl - the URL to the server (e.g.: "ws://localhost:8080/kie-server-controller/websocket/controller")
        login - user login
        password - user password
        Returns:
        client instance
      • newWebSocketClient

        public static KieServerControllerClient newWebSocketClient​(String controllerUrl,
                                                                   String login,
                                                                   String password,
                                                                   EventHandler handler)
        Creates a new Kie Controller Client using Web Socket based service
        Parameters:
        controllerUrl - the URL to the server (e.g.: "ws://localhost:8080/kie-server-controller/websocket/controller")
        login - user login
        password - user password
        handler - notification handler for controller events
        Returns:
        client instance
      • newWebSocketClient

        public static KieServerControllerClient newWebSocketClient​(String controllerUrl,
                                                                   String token,
                                                                   EventHandler handler)
        Creates a new Kie Controller Client using Web Socket based service
        Parameters:
        controllerUrl - the URL to the server (e.g.: "ws://localhost:8080/kie-server-controller/websocket/controller")
        token - token
        handler - notification handler for controller events
        Returns:
        client instance