Class SHERPAUtils

java.lang.Object
org.dspace.app.sherpa.v2.SHERPAUtils

public final class SHERPAUtils extends Object
SHERPA v2 API query handling utility methods (static). Used by external data providers and SHERPA service.
Author:
Kim Shepherd
  • Method Details

    • sanitiseQuery

      public static String sanitiseQuery(String query)
      Sanitise a SHERPA v2 API query for some special JSON characters to help with parsing at remote end Strip all these characters: "'{}; The URI builder used in the provider and service classes will perform URL encoding. This string is the raw query submitted to the provider or service.
      Parameters:
      query - query string
      Returns:
      safe query string