Package com.fidesmo.fdsm
Class WsClient
- java.lang.Object
-
- com.fidesmo.fdsm.WsClient
-
public class WsClient extends Object
-
-
Constructor Summary
Constructors Constructor Description WsClient(URI uri, apdu4j.core.BIBO card, ClientAuthentication authentication)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.java_websocket.client.WebSocketClientbuildClient()static CompletableFuture<ServiceDeliverySession.DeliveryResult>execute(URI uri, apdu4j.core.BIBO card, ClientAuthentication authentication)protected voidprocessCommand(com.fasterxml.jackson.databind.JsonNode node)protected voidrespond(com.fasterxml.jackson.databind.node.ObjectNode node)protected voidrespondWithStatus(String code, Optional<String> message)CompletableFuture<ServiceDeliverySession.DeliveryResult>run()
-
-
-
Constructor Detail
-
WsClient
public WsClient(URI uri, apdu4j.core.BIBO card, ClientAuthentication authentication)
-
-
Method Detail
-
execute
public static CompletableFuture<ServiceDeliverySession.DeliveryResult> execute(URI uri, apdu4j.core.BIBO card, ClientAuthentication authentication)
-
buildClient
protected org.java_websocket.client.WebSocketClient buildClient()
-
run
public CompletableFuture<ServiceDeliverySession.DeliveryResult> run()
-
processCommand
protected void processCommand(com.fasterxml.jackson.databind.JsonNode node) throws IOException, org.apache.commons.codec.DecoderException- Throws:
IOExceptionorg.apache.commons.codec.DecoderException
-
respond
protected void respond(com.fasterxml.jackson.databind.node.ObjectNode node) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-