Class StringParserUtils

java.lang.Object
edu.university.ecs.lab.intermediate.utils.StringParserUtils

public class StringParserUtils extends Object
Utility class for parsing strings.
  • Constructor Details

    • StringParserUtils

      private StringParserUtils()
      Private constructor to prevent instantiation.
  • Method Details

    • removeOuterQuotations

      public static String removeOuterQuotations(String s)
      Remove start/end quotations from the given string.
      Parameters:
      s - the string to remove quotations from
      Returns:
      the string with quotations removed
    • simplifyEndpointURL

      public static String simplifyEndpointURL(String url)
      Simplifies all path arguments to {?}.
      Parameters:
      url - the endpoint URL
      Returns:
      the simplified endpoint URL