Package com.openfin.desktop.channel
Class ClassicProtocolHandler
java.lang.Object
com.openfin.desktop.channel.AbstractProtocolHandler
com.openfin.desktop.channel.ClassicProtocolHandler
public class ClassicProtocolHandler extends AbstractProtocolHandler
-
Field Summary
Fields inherited from class com.openfin.desktop.channel.AbstractProtocolHandler
channel, clientEndpointIdentity, endpointIdentity, isProvider, logger
-
Constructor Summary
Constructors Constructor Description ClassicProtocolHandler(Channel channel)
-
Method Summary
Modifier and Type Method Description ProtocolOptions
getProtocolOptions()
protected org.json.JSONObject
getSupportedAnswerProtocol()
protected org.json.JSONObject
getSupportedOfferProtocol()
void
sendChannelMessage(java.lang.String action, org.json.JSONObject destionationIdentity, org.json.JSONObject providerIdentity, org.json.JSONObject actionPayload, AckListener ackListener)
java.util.concurrent.CompletableFuture<Ack>
sendChannelMessageAsync(java.lang.String action, org.json.JSONObject destionationIdentity, org.json.JSONObject providerIdentity, java.lang.Object actionPayload)
Methods inherited from class com.openfin.desktop.channel.AbstractProtocolHandler
acceptAnswer, acceptOffer, cleanup, createProtocolHandler, getChannel, getChannelConnectPayload, getChannelCreatePayload, getOfferProtocolByType, initializeClient, initializeProvider, processConnectAnswer, processConnectOffer, setClientEndpointIdentity
-
Constructor Details
-
Method Details
-
getProtocolOptions
- Overrides:
getProtocolOptions
in classAbstractProtocolHandler
-
getSupportedOfferProtocol
protected org.json.JSONObject getSupportedOfferProtocol()- Overrides:
getSupportedOfferProtocol
in classAbstractProtocolHandler
-
getSupportedAnswerProtocol
protected org.json.JSONObject getSupportedAnswerProtocol()- Overrides:
getSupportedAnswerProtocol
in classAbstractProtocolHandler
-
sendChannelMessage
public void sendChannelMessage(java.lang.String action, org.json.JSONObject destionationIdentity, org.json.JSONObject providerIdentity, org.json.JSONObject actionPayload, AckListener ackListener)- Overrides:
sendChannelMessage
in classAbstractProtocolHandler
-
sendChannelMessageAsync
public java.util.concurrent.CompletableFuture<Ack> sendChannelMessageAsync(java.lang.String action, org.json.JSONObject destionationIdentity, org.json.JSONObject providerIdentity, java.lang.Object actionPayload)- Overrides:
sendChannelMessageAsync
in classAbstractProtocolHandler
-