Package org.kie.server.controller.client
Class KieServerControllerClientFactory
- java.lang.Object
-
- org.kie.server.controller.client.KieServerControllerClientFactory
-
public class KieServerControllerClientFactory extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KieServerControllerClientnewRestClient(String controllerUrl, String login, String password)Creates a new Kie Controller Client using REST based servicestatic KieServerControllerClientnewRestClient(String controllerUrl, String login, String password, org.kie.server.api.marshalling.MarshallingFormat format)Creates a new Kie Controller Client using REST based servicestatic KieServerControllerClientnewRestClient(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 servicestatic KieServerControllerClientnewWebSocketClient(String controllerUrl, String login, String password)Creates a new Kie Controller Client using Web Socket based servicestatic KieServerControllerClientnewWebSocketClient(String controllerUrl, String login, String password, EventHandler handler)Creates a new Kie Controller Client using Web Socket based servicestatic KieServerControllerClientnewWebSocketClient(String controllerUrl, String token, EventHandler handler)Creates a new Kie Controller Client using Web Socket based service
-
-
-
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 loginpassword- 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 loginpassword- user passwordformat- 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 loginpassword- user passwordformat- marshaling formatconfiguration- 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 loginpassword- 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 loginpassword- user passwordhandler- 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- tokenhandler- notification handler for controller events- Returns:
- client instance
-
-