public class Client extends Inventor
In the case of the SoRemoteVizClient
node, a client represents a single instance of the application using the node.
A client has one or multiple connections.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Disconnects the client.
|
java.lang.String |
getApplicationName()
HTML5 client: Returns the domain name of the web host which the client is connected.
|
Connection |
getConnection(int index)
Gets a
Connection of the client. |
Connection |
getConnection(java.lang.String id)
Gets a
Connection of the client. |
java.lang.String |
getEnvironment()
HTML5 client: Returns the value of the user-agent header sent by the client web browser.
|
java.lang.String |
getId()
Gets the id of the client.
|
int |
getNumConnections()
Gets the number of the client connections.
|
ClientSettings |
getSettings()
Gets the client settings.
|
boolean |
isImageStreamingSupported()
Returns if the client supports image streaming.
|
boolean |
isVideoStreamingSupported()
Returns if the client supports video streaming.
|
boolean |
sendMessage(java.lang.String message)
Calls sendMessage(message, (com.openinventor.remoteviz.rendering.Connection[])null).
|
boolean |
sendMessage(java.lang.String message,
Connection[] excludedConnections)
Sends a text message to all the connections of the client.
|
dispose, getNativeResourceHandle
public boolean sendMessage(java.lang.String message)
public ClientSettings getSettings()
public Connection getConnection(int index)
Connection
of the client.
index
- : index identifying the client
public Connection getConnection(java.lang.String id)
Connection
of the client.
id
- : ID identifying the client
public boolean isImageStreamingSupported()
public java.lang.String getId()
public java.lang.String getApplicationName()
SoRemoteVizClient
node: Returns the string "SoRemoteVizClient".
public boolean isVideoStreamingSupported()
public java.lang.String getEnvironment()
SoRemoteVizClient
node: Returns the operating system (OS) running the client application.
public void disconnect()
public int getNumConnections()
public boolean sendMessage(java.lang.String message, Connection[] excludedConnections)
message
- : the message to be sent to all the connections of the client
excludedConnections
- : the connections that will not receive the message.
num
- : number of excluded connections
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com