dataSourceInformation.setDriver(diver.trim());
dataSourceInformation.setUrl(url.trim());
String user = request.getParameter("user");
if (user != null && !"".equals(user)) {
SecretInformation secretInfo;
if (dataSourceInformation.getSecretInformation() == null) {
secretInfo = new SecretInformation();
} else {
secretInfo = dataSourceInformation.getSecretInformation();
}
secretInfo.setUser(user.trim());
dataSourceInformation.setSecretInformation(secretInfo);
}
String password = request.getParameter("password");
if (password != null && !"".equals(password)) {
SecretInformation secretInfo;
if (dataSourceInformation.getSecretInformation() == null) {
secretInfo = new SecretInformation();
} else {
secretInfo = dataSourceInformation.getSecretInformation();
}
secretInfo.setAliasSecret(password.trim());
dataSourceInformation.setSecretInformation(secretInfo);
}
String dstype = request.getParameter("dstype");
if ("peruserds".equals(dstype)) {
dataSourceInformation.setType("PerUserPoolDataSource");