UriComponentsBuilder is only capable of handling hierarchical URIs, not opaque URIs. Hence, the following test fails:
UriComponentsBuilder builder = UriComponentsBuilder.newInstance();
// Using path here, as there is no way to directly specify a scheme-specific part.
builder.path("firstname.lastname@example.org"); // should have been builder.schemeSpecificPart("email@example.com");
UriComponents result = builder.build();
assertEquals("mailto:firstname.lastname@example.org", result.toUriString()); // result is mailto:/email@example.com
#14437 Backport "Support opaque URIs in UriComponentsBuilder"
INT-2720 Add support for Uri Templating to the ws:outbound-gateway for all transports supported by Spring WS ("is depended on by")
SWS-795 Allow for MessageSenders to use URI as result of UriTemplate
The text was updated successfully, but these errors were encountered: