Package com.iizix.server.vsviewer
Class VSViewerParams
java.lang.Object
com.iizix.server.vsviewer.VSViewerParams
Class used to hold the information for the VS Viewer parameters and to parse the Query string in the VSViewer WebSocket URI.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionfinal AppFactory
The application to use, null if not found.final String
The Application ID, null if not found.final String
The error message, null for OK.final String
The user hash when the user is returning.static final String
The Server configuration environment property: "env".The session user identifier, null if not defined properly.Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionassignSessionID
(String sessionID) Assigns a new Session ID for this session.getParameterValue
(String name) Gets a property that is defined as the "other" properties, e.g.toString()
Returns a string representation of this VS Viewer parameters and its values.
Field Details
SERVER_CONFIGURATION_ENVIRONMENT
The Server configuration environment property: "env".- See Also:
error
The error message, null for OK.appID
The Application ID, null if not found.app
The application to use, null if not found.user
The session user identifier, null if not defined properly.hash
The user hash when the user is returning.
Constructor Details
VSViewerParams
Constructor.- Parameters:
server
- The server instance.query
- The Query string from the URI.
Method Details
assignSessionID
Assigns a new Session ID for this session. This changes theuser
instance to a newSessionUserIdentifier
instance.- Parameters:
sessionID
- The session ID.- Returns:
- The new SessionUserIdentifier.
getParameterValue
Gets a property that is defined as the "other" properties, e.g.SERVER_CONFIGURATION_ENVIRONMENT
for server configuration environment.- Parameters:
name
- The parameter name, e.g. "env".- Returns:
- The defined parameter value, or null if undefined.
toString
Returns a string representation of this VS Viewer parameters and its values.