io.baltoro.client.BaltoroClientEndpointWSWeb_old Maven / Gradle / Ivy
package io.baltoro.client;
public class BaltoroClientEndpointWSWeb_old
{
/*
private static Logger log = Logger.getLogger(BaltoroClientEndpointWSWeb.class.getName());
private String appName;
private String path;
MessageHandler.Whole handlerClass;
public BaltoroClientEndpointWSWeb(String appName, String path, MessageHandler.Whole handlerClass)
{
this.appName = appName;
this.path = path;
this.handlerClass = handlerClass;
}
public void onOpen(Session session, EndpointConfig config)
{
log.info(" ******** Connected ... " + session.getId());
session.addMessageHandler(handlerClass);
//session.addMessageHandler(new BaltoroTextMessageHandler(this.appUuid, this.instanceUuid,session));
//session.addMessageHandler(new BaltoroByteBufferMessageHandler(this.appUuid, this.instanceUuid, session));
//session.addMessageHandler(new BaltoroPingMessageHandler(this.appUuid, this.instanceUuid, session));
}
@OnClose
public void onClose(javax.websocket.Session session, CloseReason closeReason)
{
WSSessions.get().removeSession(session);
//log.info(String.format("Session close because of %s", closeReason));
try
{
//Session _session = clientManager.connectToServer(this, config, new URI(url));
log.info(String.format("Session %s close because of %s", session, closeReason));
}
catch (Exception e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
*/
}