Convert to and from URI objects, correctly encoding the query string.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
URIAdapter
public URIAdapter()
-
-
Method Details
-
unmarshal
Convert a string into a URI.- Specified by:
unmarshalin classXmlAdapter<String,URI> - Parameters:
v- The string to convert.- Returns:
- A
URIobject for the string, or null ifvis null. - Throws:
URISyntaxException- if the string cannot be parsed.
-
marshal
Convert the given URI into its string format.- Specified by:
marshalin classXmlAdapter<String,URI> - Parameters:
v- The URI to print.- Returns:
- The URI as a string, or null if
vis null. - Throws:
URISyntaxException- if the URI cannot be parsed.
-