super.start();
// Create the roles PreparedStatement string
- StringBuffer temp = new StringBuffer("SELECT ");
+ StringBuilder temp = new StringBuilder("SELECT ");
temp.append(roleNameCol);
temp.append(" FROM ");
temp.append(userRoleTable);
preparedRoles = temp.toString();
// Create the credentials PreparedStatement string
- temp = new StringBuffer("SELECT ");
+ temp = new StringBuilder("SELECT ");
temp.append(userCredCol);
temp.append(" FROM ");
temp.append(userTable);
*/
public String toString() {
- StringBuffer sb = new StringBuffer("GenericPrincipal[");
+ StringBuilder sb = new StringBuilder("GenericPrincipal[");
sb.append(this.name);
sb.append("(");
for( int i=0;i<roles.length; i++ ) {
throws SQLException {
if (preparedCredentials == null) {
- StringBuffer sb = new StringBuffer("SELECT ");
+ StringBuilder sb = new StringBuilder("SELECT ");
sb.append(userCredCol);
sb.append(" FROM ");
sb.append(userTable);
throws SQLException {
if (preparedRoles == null) {
- StringBuffer sb = new StringBuffer("SELECT ");
+ StringBuilder sb = new StringBuilder("SELECT ");
sb.append(roleNameCol);
sb.append(" FROM ");
sb.append(userRoleTable);
* @return String the escaped/encoded result
*/
protected String doRFC2254Encoding(String inString) {
- StringBuffer buf = new StringBuffer(inString.length());
+ StringBuilder buf = new StringBuilder(inString.length());
for (int i = 0; i < inString.length(); i++) {
char c = inString.charAt(i);
switch (c) {
}
// Redirect to the corresponding SSL port
- StringBuffer file = new StringBuffer();
+ StringBuilder file = new StringBuilder();
String protocol = "https";
String host = request.getServerName();
// Protocol