com.toremote.websocket.handler
Class GatewayHandler

java.lang.Object
  extended by com.toremote.websocket.handler.AbstractHandler
      extended by com.toremote.websocket.handler.GatewayHandler
All Implemented Interfaces:
HandlerInterface

public class GatewayHandler
extends AbstractHandler

Gateway side API


Field Summary
 
Fields inherited from class com.toremote.websocket.handler.AbstractHandler
CLIENT_CLOSE, clientProperties, INFO_TAG, listener, out, properties, startTime, userAgent, userIp, WARGIN_TAG
 
Fields inherited from interface com.toremote.websocket.handler.HandlerInterface
ARG_CLIENT_IP, ARG_HOST
 
Constructor Summary
GatewayHandler()
           
 
Method Summary
 void onBinaryReceived(byte[] frame)
          process client side binary message.
 void onText(java.lang.String result)
           
 void processHandShake(java.lang.String action, java.util.Map<java.lang.String,java.lang.String> properties)
           
 
Methods inherited from class com.toremote.websocket.handler.AbstractHandler
checkLicense, exit, getGatewayWebAddress, getSessionId, handshake, isTrue, onClientDisconnected, onHandShake, onTextReceived, sendError, sendError, sendError, setHandshakeListener, setOutput, setSessionId, showMessge, showMessge, toJson
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GatewayHandler

public GatewayHandler()
Method Detail

onText

public void onText(java.lang.String result)
            throws java.lang.Exception
Specified by:
onText in class AbstractHandler
Throws:
java.lang.Exception

onBinaryReceived

public void onBinaryReceived(byte[] frame)
Description copied from interface: HandlerInterface
process client side binary message.


processHandShake

public void processHandShake(java.lang.String action,
                             java.util.Map<java.lang.String,java.lang.String> properties)
                      throws java.lang.Exception
Specified by:
processHandShake in class AbstractHandler
Throws:
java.lang.Exception