com.toremote.websocket.handler
Class JoinHandler
java.lang.Object
com.toremote.websocket.handler.AbstractHandler
com.toremote.websocket.handler.AbstractSessionHandler
com.toremote.websocket.handler.RdpHandler
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
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 |
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 |
JoinHandler
public JoinHandler()
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