MCPcopy Index your code
hub / github.com/OpenFeign/feign / decodeSlash

Method decodeSlash

core/src/main/java/feign/RequestTemplate.java:339–355  ·  view source on GitHub ↗

Set whether do encode slash {@literal /} characters when resolving this template. @param decodeSlash if slash literals should not be encoded. @return a RequestTemplate for chaining.

(boolean decodeSlash)

Source from the content-addressed store, hash-verified

337 * @return a RequestTemplate for chaining.
338 */
339 public RequestTemplate decodeSlash(boolean decodeSlash) {
340 this.decodeSlash = decodeSlash;
341 this.uriTemplate =
342 UriTemplate.create(this.uriTemplate.toString(), !this.decodeSlash, this.charset);
343 if (!this.queries.isEmpty()) {
344 this.queries.replaceAll(
345 (key, queryTemplate) ->
346 QueryTemplate.create(
347 /* replace the current template with new ones honoring the decode value */
348 queryTemplate.getName(),
349 queryTemplate.getValues(),
350 charset,
351 collectionFormat,
352 decodeSlash));
353 }
354 return this;
355 }
356
357 /**
358 * If slash {@literal /} characters are not encoded when resolving.

Callers 4

encodeSlashTestMethod · 0.80
DefaultContractMethod · 0.80

Calls 6

createMethod · 0.95
createMethod · 0.95
isEmptyMethod · 0.80
toStringMethod · 0.45
getNameMethod · 0.45
getValuesMethod · 0.45

Tested by 3

encodeSlashTestMethod · 0.64