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

setParsePath

open fun setParsePath(parsePath: Boolean): Unit

Whether to parse the path into path segments for the URI string passed into #uriString(String) or one of the expand methods.

Setting this property to true ensures that URI variables expanded into the path are subject to path segment encoding rules and "/" characters are percent-encoded. If set to false the path is kept as a full path and expanded URI variables will have "/" characters preserved.

By default this is set to true.

Parameters

parsePath - whether to parse the path into path segments