Skip to content

Commit

Permalink
GUACAMOLE-61: Merge migration to static final values for JDBC token n…
Browse files Browse the repository at this point in the history
…ames.
  • Loading branch information
mike-jumper authored Aug 30, 2024
2 parents 48501cd + 3840b09 commit 073d1d4
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,57 +80,57 @@ public abstract class AbstractGuacamoleTunnelService implements GuacamoleTunnelS
/**
* Logger for this class.
*/
private final Logger logger = LoggerFactory.getLogger(AbstractGuacamoleTunnelService.class);
private static final Logger logger = LoggerFactory.getLogger(AbstractGuacamoleTunnelService.class);

/**
* The prefix that will be used to generate JDBC tokens.
*/
private final String JDBC_TOKEN_PREFIX = "JDBC_";
private static final String JDBC_TOKEN_PREFIX = "JDBC_";

/**
* The token that contains the date the connection was started.
*/
private final String JDBC_DATE_TOKEN = JDBC_TOKEN_PREFIX + "STARTDATE";
private static final String JDBC_DATE_TOKEN = JDBC_TOKEN_PREFIX + "STARTDATE";

/**
* The format of the date in the date token.
*/
private final String JDBC_DATE_TOKEN_FORMAT = "yyyyMMdd";
private static final String JDBC_DATE_TOKEN_FORMAT = "yyyyMMdd";

/**
* The token that contains the start time of the connection.
*/
private final String JDBC_TIME_TOKEN = JDBC_TOKEN_PREFIX + "STARTTIME";
private static final String JDBC_TIME_TOKEN = JDBC_TOKEN_PREFIX + "STARTTIME";

/**
* The format of the time in the time token.
*/
private final String JDBC_TIME_TOKEN_FORMAT = "HHmmss";
private static final String JDBC_TIME_TOKEN_FORMAT = "HHmmss";

/**
* The token that contains the connection name.
*/
private final String JDBC_CONNECTION_NAME_TOKEN = JDBC_TOKEN_PREFIX + "CONNECTION_NAME";
private static final String JDBC_CONNECTION_NAME_TOKEN = JDBC_TOKEN_PREFIX + "CONNECTION_NAME";

/**
* The token that contains the connection identifier.
*/
private final String JDBC_CONNECTION_ID_TOKEN = JDBC_TOKEN_PREFIX + "CONNECTION_ID";
private static final String JDBC_CONNECTION_ID_TOKEN = JDBC_TOKEN_PREFIX + "CONNECTION_ID";

/**
* The token that contains the hostname configured in the connection parameters.
*/
private final String JDBC_CONNECTION_HOSTNAME_TOKEN = JDBC_TOKEN_PREFIX + "HOSTNAME";
private static final String JDBC_CONNECTION_HOSTNAME_TOKEN = JDBC_TOKEN_PREFIX + "HOSTNAME";

/**
* The name of the parameter containing the hostname in the configuration.
*/
private final String JDBC_CONNECTION_HOSTNAME_TOKEN_PARAMETER = "hostname";
private static final String JDBC_CONNECTION_HOSTNAME_TOKEN_PARAMETER = "hostname";

/**
* The token containing the protocol configured in the connection.
*/
private final String JDBC_CONNECTION_PROTOCOL_TOKEN = JDBC_TOKEN_PREFIX + "PROTOCOL";
private static final String JDBC_CONNECTION_PROTOCOL_TOKEN = JDBC_TOKEN_PREFIX + "PROTOCOL";

/**
* Mapper for accessing connections.
Expand Down

0 comments on commit 073d1d4

Please sign in to comment.