Package com.networknt.schema.utils
Class AbsoluteIris
java.lang.Object
com.networknt.schema.utils.AbsoluteIris
Utility functions for AbsoluteIri.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
handleQuery
(StringBuilder result, String query) Ensures that the query parameters are properly URL encoded.(package private) static boolean
Determine if a string is US ASCII.static String
toUri
(AbsoluteIri iri) Converts an IRI to a URI.(package private) static String
unicodeToASCII
(String input)
-
Constructor Details
-
AbsoluteIris
public AbsoluteIris()
-
-
Method Details
-
toUri
Converts an IRI to a URI.- Parameters:
iri
- the IRI to convert- Returns:
- the URI string
-
isAscii
Determine if a string is US ASCII.- Parameters:
value
- to test- Returns:
- true if ASCII
-
handleQuery
Ensures that the query parameters are properly URL encoded.- Parameters:
result
- the string builder to add toquery
- the query string
-
unicodeToASCII
-