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