test_class.file: cosmic-common/src/test/java/com/cloud/utils/StringUtilsTest.java
test_class.identifier: StringUtilsTest
test_case.body: @Test
      public void testCleanPasswordFromRequestStringWithMultiplePasswords() {
          final String input = "username=foo&password=bar&url=foobar&password=bar2&test=4";
          final String expected = "username=foo&url=foobar&test=4";
          final String result = StringUtils.cleanString(input);
          assertEquals(result, expected);
      }
test_case.class_method_signature: StringUtilsTest.testCleanPasswordFromRequestStringWithMultiplePasswords()
test_case.full_signature: @Test public void testCleanPasswordFromRequestStringWithMultiplePasswords()
test_case.identifier: testCleanPasswordFromRequestStringWithMultiplePasswords
test_case.invocations: cleanString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCleanPasswordFromRequestStringWithMultiplePasswords()
focal_class.declarator: hexChar = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}
focal_class.modifier: private static final
focal_class.original_string: private static final char[] hexChar = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
focal_class.type: char[]
focal_class.var_name: hexChar
focal_class.declarator: UTF8 = "UTF-8"
focal_class.modifier: private static final
focal_class.original_string: private static final String UTF8 = "UTF-8";
focal_class.type: String
focal_class.var_name: UTF8
focal_class.declarator: REGEX_PASSWORD_QUERYSTRING = Pattern.compile("(&|%26)?[^(&|%26)]*((p|P)assword|accesskey|secretkey)(=|%3D).*?(?=(%26|[&'\"]|$))")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern REGEX_PASSWORD_QUERYSTRING = Pattern.compile("(&|%26)?[^(&|%26)]*((p|P)assword|accesskey|secretkey)(=|%3D).*?(?=(%26|[&'\"]|$))");
focal_class.type: Pattern
focal_class.var_name: REGEX_PASSWORD_QUERYSTRING
focal_class.declarator: REGEX_PASSWORD_JSON = Pattern.compile("\"((p|P)assword|privatekey|accesskey|secretkey)\":\\s?\".*?\",?")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern REGEX_PASSWORD_JSON = Pattern.compile("\"((p|P)assword|privatekey|accesskey|secretkey)\":\\s?\".*?\",?");
focal_class.type: Pattern
focal_class.var_name: REGEX_PASSWORD_JSON
focal_class.declarator: REGEX_PASSWORD_DETAILS = Pattern.compile("(&|%26)?details(\\[|%5B)\\d*(\\]|%5D)\\.key(=|%3D)((p|P)assword|accesskey|secretkey)(?=(%26|[&'\"]))")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern REGEX_PASSWORD_DETAILS = Pattern.compile("(&|%26)?details(\\[|%5B)\\d*(\\]|%5D)\\.key(=|%3D)((p|P)assword|accesskey|secretkey)(?=(%26|[&'\"]))");
focal_class.type: Pattern
focal_class.var_name: REGEX_PASSWORD_DETAILS
focal_class.declarator: REGEX_PASSWORD_DETAILS_INDEX = Pattern.compile("details(\\[|%5B)\\d*(\\]|%5D)")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern REGEX_PASSWORD_DETAILS_INDEX = Pattern.compile("details(\\[|%5B)\\d*(\\]|%5D)");
focal_class.type: Pattern
focal_class.var_name: REGEX_PASSWORD_DETAILS_INDEX
focal_class.declarator: REGEX_REDUNDANT_AND = Pattern.compile("(&|%26)(&|%26)+")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern REGEX_REDUNDANT_AND = Pattern.compile("(&|%26)(&|%26)+");
focal_class.type: Pattern
focal_class.var_name: REGEX_REDUNDANT_AND
focal_class.declarator: preferredACSCharset
focal_class.modifier: private static final
focal_class.original_string: private static final Charset preferredACSCharset;
focal_class.type: Charset
focal_class.var_name: preferredACSCharset
focal_class.file: cosmic-common/src/main/java/com/cloud/utils/StringUtils.java
focal_class.identifier: StringUtils
focal_class.class_method_signature: StringUtils.getPreferredCharset()
focal_class.full_signature: public static Charset getPreferredCharset()
focal_class.identifier: getPreferredCharset
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Charset
focal_class.signature: Charset getPreferredCharset()
focal_class.class_method_signature: StringUtils.isUtf8Supported()
focal_class.full_signature: public static boolean isUtf8Supported()
focal_class.identifier: isUtf8Supported
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isUtf8Supported()
focal_class.class_method_signature: StringUtils.getDefaultCharset()
focal_class.full_signature: protected static Charset getDefaultCharset()
focal_class.identifier: getDefaultCharset
focal_class.modifiers: protected static
focal_class.parameters: ()
focal_class.return: Charset
focal_class.signature: Charset getDefaultCharset()
focal_class.class_method_signature: StringUtils.join(final Iterable<? extends Object> iterable, final String delim)
focal_class.full_signature: public static String join(final Iterable<? extends Object> iterable, final String delim)
focal_class.identifier: join
focal_class.modifiers: public static
focal_class.parameters: (final Iterable<? extends Object> iterable, final String delim)
focal_class.return: String
focal_class.signature: String join(final Iterable<? extends Object> iterable, final String delim)
focal_class.class_method_signature: StringUtils.join(final String delimiter, final Object... components)
focal_class.full_signature: public static String join(final String delimiter, final Object... components)
focal_class.identifier: join
focal_class.modifiers: public static
focal_class.parameters: (final String delimiter, final Object... components)
focal_class.return: String
focal_class.signature: String join(final String delimiter, final Object... components)
focal_class.class_method_signature: StringUtils.isNotBlank(final String str)
focal_class.full_signature: public static boolean isNotBlank(final String str)
focal_class.identifier: isNotBlank
focal_class.modifiers: public static
focal_class.parameters: (final String str)
focal_class.return: boolean
focal_class.signature: boolean isNotBlank(final String str)
focal_class.class_method_signature: StringUtils.isBlank(final String str)
focal_class.full_signature: public static boolean isBlank(final String str)
focal_class.identifier: isBlank
focal_class.modifiers: public static
focal_class.parameters: (final String str)
focal_class.return: boolean
focal_class.signature: boolean isBlank(final String str)
focal_class.class_method_signature: StringUtils.cleanupTags(String tags)
focal_class.full_signature: public static String cleanupTags(String tags)
focal_class.identifier: cleanupTags
focal_class.modifiers: public static
focal_class.parameters: (String tags)
focal_class.return: String
focal_class.signature: String cleanupTags(String tags)
focal_class.class_method_signature: StringUtils.csvTagsToList(final String tags)
focal_class.full_signature: public static List<String> csvTagsToList(final String tags)
focal_class.identifier: csvTagsToList
focal_class.modifiers: public static
focal_class.parameters: (final String tags)
focal_class.return: List<String>
focal_class.signature: List<String> csvTagsToList(final String tags)
focal_class.class_method_signature: StringUtils.listToCsvTags(final List<String> tagsList)
focal_class.full_signature: public static String listToCsvTags(final List<String> tagsList)
focal_class.identifier: listToCsvTags
focal_class.modifiers: public static
focal_class.parameters: (final List<String> tagsList)
focal_class.return: String
focal_class.signature: String listToCsvTags(final List<String> tagsList)
focal_class.class_method_signature: StringUtils.getExceptionStackInfo(final Throwable e)
focal_class.full_signature: public static String getExceptionStackInfo(final Throwable e)
focal_class.identifier: getExceptionStackInfo
focal_class.modifiers: public static
focal_class.parameters: (final Throwable e)
focal_class.return: String
focal_class.signature: String getExceptionStackInfo(final Throwable e)
focal_class.class_method_signature: StringUtils.unicodeEscape(final String s)
focal_class.full_signature: public static String unicodeEscape(final String s)
focal_class.identifier: unicodeEscape
focal_class.modifiers: public static
focal_class.parameters: (final String s)
focal_class.return: String
focal_class.signature: String unicodeEscape(final String s)
focal_class.class_method_signature: StringUtils.getMaskedPasswordForDisplay(final String password)
focal_class.full_signature: public static String getMaskedPasswordForDisplay(final String password)
focal_class.identifier: getMaskedPasswordForDisplay
focal_class.modifiers: public static
focal_class.parameters: (final String password)
focal_class.return: String
focal_class.signature: String getMaskedPasswordForDisplay(final String password)
focal_class.class_method_signature: StringUtils.cleanString(final String stringToClean)
focal_class.full_signature: public static String cleanString(final String stringToClean)
focal_class.identifier: cleanString
focal_class.modifiers: public static
focal_class.parameters: (final String stringToClean)
focal_class.return: String
focal_class.signature: String cleanString(final String stringToClean)
focal_class.class_method_signature: StringUtils.cleanDetails(final String stringToClean, final String detailsIndexSting)
focal_class.full_signature: public static String cleanDetails(final String stringToClean, final String detailsIndexSting)
focal_class.identifier: cleanDetails
focal_class.modifiers: public static
focal_class.parameters: (final String stringToClean, final String detailsIndexSting)
focal_class.return: String
focal_class.signature: String cleanDetails(final String stringToClean, final String detailsIndexSting)
focal_class.class_method_signature: StringUtils.areTagsEqual(final String tags1, final String tags2)
focal_class.full_signature: public static boolean areTagsEqual(final String tags1, final String tags2)
focal_class.identifier: areTagsEqual
focal_class.modifiers: public static
focal_class.parameters: (final String tags1, final String tags2)
focal_class.return: boolean
focal_class.signature: boolean areTagsEqual(final String tags1, final String tags2)
focal_class.class_method_signature: StringUtils.formatForOutput(final String text, final int start, final int columns, final char separator)
focal_class.full_signature: public static int formatForOutput(final String text, final int start, final int columns, final char separator)
focal_class.identifier: formatForOutput
focal_class.modifiers: public static
focal_class.parameters: (final String text, final int start, final int columns, final char separator)
focal_class.return: int
focal_class.signature: int formatForOutput(final String text, final int start, final int columns, final char separator)
focal_class.class_method_signature: StringUtils.stringToMap(final String s)
focal_class.full_signature: public static Map<String, String> stringToMap(final String s)
focal_class.identifier: stringToMap
focal_class.modifiers: public static
focal_class.parameters: (final String s)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> stringToMap(final String s)
focal_class.class_method_signature: StringUtils.mapToString(final Map<String, String> map)
focal_class.full_signature: public static String mapToString(final Map<String, String> map)
focal_class.identifier: mapToString
focal_class.modifiers: public static
focal_class.parameters: (final Map<String, String> map)
focal_class.return: String
focal_class.signature: String mapToString(final Map<String, String> map)
focal_class.class_method_signature: StringUtils.applyPagination(final List<T> originalList, final Long startIndex, final Long pageSizeVal)
focal_class.full_signature: public static List<T> applyPagination(final List<T> originalList, final Long startIndex, final Long pageSizeVal)
focal_class.identifier: applyPagination
focal_class.modifiers: public static
focal_class.parameters: (final List<T> originalList, final Long startIndex, final Long pageSizeVal)
focal_class.return: List<T>
focal_class.signature: List<T> applyPagination(final List<T> originalList, final Long startIndex, final Long pageSizeVal)
focal_class.class_method_signature: StringUtils.partitionList(final List<T> originalList, final int chunkSize)
focal_class.full_signature: private static List<List<T>> partitionList(final List<T> originalList, final int chunkSize)
focal_class.identifier: partitionList
focal_class.modifiers: private static
focal_class.parameters: (final List<T> originalList, final int chunkSize)
focal_class.return: List<List<T>>
focal_class.signature: List<List<T>> partitionList(final List<T> originalList, final int chunkSize)
focal_method.body: public static String cleanString(final String stringToClean) {
          String cleanResult = "";
          if (stringToClean != null) {
              cleanResult = REGEX_PASSWORD_QUERYSTRING.matcher(stringToClean).replaceAll("");
              cleanResult = REGEX_PASSWORD_JSON.matcher(cleanResult).replaceAll("");
              final Matcher detailsMatcher = REGEX_PASSWORD_DETAILS.matcher(cleanResult);
              while (detailsMatcher.find()) {
                  final Matcher detailsIndexMatcher = REGEX_PASSWORD_DETAILS_INDEX.matcher(detailsMatcher.group());
                  if (detailsIndexMatcher.find()) {
                      cleanResult = cleanDetails(cleanResult, detailsIndexMatcher.group());
                  }
              }
          }
          return cleanResult;
      }
focal_method.class_method_signature: StringUtils.cleanString(final String stringToClean)
focal_method.full_signature: public static String cleanString(final String stringToClean)
focal_method.identifier: cleanString
focal_method.invocations: replaceAll matcher replaceAll matcher matcher find matcher group find cleanDetails group
focal_method.modifiers: public static
focal_method.parameters: (final String stringToClean)
focal_method.return: String
focal_method.signature: String cleanString(final String stringToClean)