com.toremote.websocket.handler
Class JoinVncHandler

java.lang.Object
  extended by com.toremote.websocket.handler.AbstractHandler
      extended by com.toremote.websocket.handler.AbstractSessionHandler
          extended by com.toremote.websocket.handler.VncHandler
              extended by com.toremote.websocket.handler.JoinVncHandler
All Implemented Interfaces:
SessionInformation, com.toremote.websocket.general.DataProcessListener, HandlerInterface

public class JoinVncHandler
extends VncHandler
implements com.toremote.websocket.general.DataProcessListener


Field Summary
 
Fields inherited from class com.toremote.websocket.handler.VncHandler
cfg, dataProcess, mouseDown
 
Fields inherited from class com.toremote.websocket.handler.AbstractSessionHandler
control, FEATURE_ALL, FEATURE_AUDIO_PLAYBACK, FEATURE_BASIC, FEATURE_CLIPBOARD, FEATURE_FILE, FEATURE_NO_UPLOAD, FEATURE_PRINT, FEATURE_REMOTEAPP, FEATURE_REMOTEFX, FEATURE_SESSION_REC, FEATURE_SHADOWING, joinMode, numericId, readOnly, usr
 
Fields inherited from class com.toremote.websocket.handler.AbstractHandler
CLIENT_CLOSE, clientProperties, INFO_TAG, listener, out, startTime, userAgent, userIp, WARGIN_TAG
 
Fields inherited from interface com.toremote.gateway.client.SessionInformation
JOIN_MODE_ALL_CONTROL, JOIN_MODE_ONE_CONTROL, SESSION_STATUS_CLIENT_DISCONNECTED, SESSION_STATUS_CONNECTED, SESSION_STATUS_LOGOFF, SESSION_STATUS_SERVER_DISCONNECTED, SESSION_STATUS_UNKOWN, TYPE_RDP, TYPE_SSH, TYPE_VNC
 
Fields inherited from interface com.toremote.websocket.handler.HandlerInterface
ARG_CLIENT_IP, ARG_HOST
 
Constructor Summary
JoinVncHandler()
           
 
Method Summary
 void allowJoin(boolean allow)
          enable/disable session shadowing on this session
 void beforeConnect()
           
 void exit()
          close the output
protected  java.lang.String getExtraJson()
           
 int getJoinMode()
           
 SessionInformation getParent()
           
 java.util.Map<java.lang.String,java.lang.String> getProperties()
           
protected  com.toremote.websocket.general.Runner getRunner()
           
 void onBinaryReceived(byte[] data)
          process client side binary message.
 void onClose()
           
 void onText(java.lang.String result)
           
 void processHandShake(java.lang.String action, java.util.Map<java.lang.String,java.lang.String> properties)
           
 void requestControl()
           
 
Methods inherited from class com.toremote.websocket.handler.VncHandler
getConfig, getCopyToText, getProtocol, getRecordingFile, getSessioinType, getUser, overrideConfigByLicense, processClientTextInput, processNotify, sendNotify, sendSessionInfo, toJson, toJsonTableRow
 
Methods inherited from class com.toremote.websocket.handler.AbstractSessionHandler
getClientProperties, getInput, getJoinedSessions, getJoinedSessionsWithParent, getNumericId, getSaveSession, getSessionStatus, giveControl, handshake, hasControl, refuseControl, refuseControl, requestControl, requestJoin, setJoinMode, setListener, setSaveSession, setSessionStaus, setThumbnail, takeBackControl
 
Methods inherited from class com.toremote.websocket.handler.AbstractHandler
checkLicense, getGatewayWebAddress, getSessionId, isTrue, onClientDisconnected, onHandShake, onTextReceived, sendError, sendError, sendError, setHandshakeListener, setOutput, setSessionId, showMessge, showMessge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.toremote.gateway.client.SessionInformation
getSessionId, showMessge
 

Constructor Detail

JoinVncHandler

public JoinVncHandler()
Method Detail

getParent

public SessionInformation getParent()
Specified by:
getParent in interface SessionInformation
Overrides:
getParent in class AbstractSessionHandler
Returns:
parent session, the session was shadowed/joined

processHandShake

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

exit

public void exit()
Description copied from interface: HandlerInterface
close the output

Specified by:
exit in interface HandlerInterface
Overrides:
exit in class VncHandler

onText

public void onText(java.lang.String result)
            throws java.lang.Exception
Overrides:
onText in class VncHandler
Throws:
java.lang.Exception

onBinaryReceived

public void onBinaryReceived(byte[] data)
                      throws java.lang.Exception
Description copied from interface: HandlerInterface
process client side binary message.

Specified by:
onBinaryReceived in interface HandlerInterface
Overrides:
onBinaryReceived in class VncHandler
Throws:
java.lang.Exception

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Specified by:
getProperties in interface SessionInformation
Overrides:
getProperties in class AbstractSessionHandler
Returns:
all parameters for this session, from the client side and parameters configured on server side (plugin)

beforeConnect

public void beforeConnect()
Specified by:
beforeConnect in interface com.toremote.websocket.general.DataProcessListener

getJoinMode

public int getJoinMode()
Specified by:
getJoinMode in interface SessionInformation
Overrides:
getJoinMode in class AbstractSessionHandler
Returns:
JOIN_MODE_ALL_CONTROL or JOIN_MODE_ONE_CONTROL

requestControl

public void requestControl()
                    throws java.io.IOException
Overrides:
requestControl in class AbstractSessionHandler
Throws:
java.io.IOException

getRunner

protected com.toremote.websocket.general.Runner getRunner()
Overrides:
getRunner in class VncHandler

onClose

public void onClose()
Specified by:
onClose in interface com.toremote.websocket.general.DataProcessListener

getExtraJson

protected java.lang.String getExtraJson()
Overrides:
getExtraJson in class VncHandler

allowJoin

public void allowJoin(boolean allow)
               throws java.lang.Exception
Description copied from interface: SessionInformation
enable/disable session shadowing on this session

Specified by:
allowJoin in interface SessionInformation
Overrides:
allowJoin in class VncHandler
Throws:
java.lang.Exception