Package org.dspace.app.sherpa.v2
Class SHERPAUtils
java.lang.Object
org.dspace.app.sherpa.v2.SHERPAUtils
SHERPA v2 API query handling utility methods (static). Used by external data providers and SHERPA service.
- Author:
- Kim Shepherd
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
sanitiseQuery
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
-