Package org.dspace.app.sherpa.v2
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringsanitiseQuery(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.
-
-
-
Method Detail
-
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
-
-