spring-framework / org.springframework.web.util / DefaultUriTemplateHandler / setParsePath

setParsePath

open fun setParsePath(parsePath: Boolean): Unit

Whether to parse the path of a URI template string into path segments.

If set to true the URI template path is immediately decomposed into path segments any URI variables expanded into it are then subject to path segment encoding rules. In effect URI variables in the path have any "/" characters percent encoded.

By default this is set to false in which case the path is kept as a full path and expanded URI variables will preserve "/" characters.

Parameters

parsePath - whether to parse the path into path segments