Class ConnectionParameters
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.remoteviz.rendering.ConnectionParameters
Field-value pairs included in the URL when the client requested a connection.
See RemoteVizRenderArea.connectTo and
SoRemoteVizClient.connectionParameters
.
A ConnectionParameters
object is passed to ServiceListener.onPendingCreateRenderArea and to ServiceListener.onPendingShareRenderArea
.
The application can also query this object from a Connection
object. The Connection
object can obtained in, e.g., RenderAreaListener.onInitializedConnection()
.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getNumParameters
public int getNumParameters()Gets the number of parameters.- Returns:
- the number of parameters
-
getKey
Gets the key associated with an index.- Parameters:
index
- : the parameter index. Range id [0..getNumParameters - 1]- Returns:
- the key if the index exists, otherwise returns an empty string.
-
getIndex
Gets the index associated with a key.- Returns:
- the index if the key exists, otherwise returns -1.
-
getValue
Gets the value of a parameter associated with a key.- Parameters:
key
- : the key- Returns:
- the value if the key exists, otherwise returns an empty string.
-
getValue
Gets the value of a parameter associated with an index.- Parameters:
index
- : the parameter index. Range id [0..getNumParameters - 1]- Returns:
- the value if the index exists, otherwise returns an empty string.
-