com.toremote.websocket.handler
Class JoinHandler

java.lang.Object
  extended by com.toremote.websocket.handler.AbstractHandler
      extended by com.toremote.websocket.handler.AbstractSessionHandler
          extended by com.toremote.websocket.handler.RdpHandler
              extended by com.toremote.websocket.handler.JoinHandler
All Implemented Interfaces:
SessionInformation, com.toremote.websocket.general.DataProcessListener, HandlerInterface, net.protocol.mcs.printer.FileOperationCallBack

public class JoinHandler
extends RdpHandler
implements com.toremote.websocket.general.DataProcessListener


Nested Class Summary
 
Nested classes/interfaces inherited from class com.toremote.websocket.handler.RdpHandler
RdpHandler.AssistanceListner, RdpHandler.ChatGatewayChannel
 
Field Summary
 
Fields inherited from class com.toremote.websocket.handler.RdpHandler
cfg, dataProcess, FEATURE_AUDIO_PLAYBACK, FEATURE_BASIC, FEATURE_CLIPBOARD, FEATURE_FILE, FEATURE_NO_UPLOAD, FEATURE_PRINT, FEATURE_REMOTE_ASSISTANCE, FEATURE_REMOTEAPP, FEATURE_REMOTEFX, FEATURE_SAVE_SESSION, FEATURE_SESSION_REC, FEATURE_SHADOWING, FEATURE_SSH, runner
 
Fields inherited from class com.toremote.websocket.handler.AbstractSessionHandler
control, 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
JoinHandler()
           
 
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.rdp.RdpRunner getRunner()
           
 void onClose()
           
 void onText(java.lang.String result)
           
 void processHandShake(java.lang.String action, java.util.Map<java.lang.String,java.lang.String> properties)
           
protected  void processSessionInfo(java.lang.String value)
           
 void requestControl()
           
 
Methods inherited from class com.toremote.websocket.handler.RdpHandler
fileCreated, getConfig, getCopyToText, getFile, getProtocol, getRecordingFile, getSessioinType, getUser, onBinaryReceived, overrideConfigByLicense, processClientTextInput, processNotify, reconnect, 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

JoinHandler

public JoinHandler()
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 RdpHandler
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 RdpHandler

onText

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

processSessionInfo

protected void processSessionInfo(java.lang.String value)
Overrides:
processSessionInfo in class RdpHandler

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 RdpHandler
Throws:
java.io.IOException

getRunner

protected com.toremote.websocket.rdp.RdpRunner getRunner()
Overrides:
getRunner in class RdpHandler

onClose

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

getExtraJson

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

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 RdpHandler
Throws:
java.lang.Exception