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

Method Template

core/src/main/java/feign/template/Template.java:52–67  ·  view source on GitHub ↗

Create a new Template. @param value of the template. @param allowUnresolved if unresolved expressions should remain. @param encode all values. @param encodeSlash if slash characters should be encoded.

(
      String value,
      ExpansionOptions allowUnresolved,
      EncodingOptions encode,
      boolean encodeSlash,
      Charset charset)

Source from the content-addressed store, hash-verified

50 * @param encodeSlash if slash characters should be encoded.
51 */
52 Template(
53 String value,
54 ExpansionOptions allowUnresolved,
55 EncodingOptions encode,
56 boolean encodeSlash,
57 Charset charset) {
58 if (value == null) {
59 throw new IllegalArgumentException("template is required.");
60 }
61 this.template = value;
62 this.allowUnresolved = ExpansionOptions.ALLOW_UNRESOLVED == allowUnresolved;
63 this.encode = encode;
64 this.encodeSlash = encodeSlash;
65 this.charset = charset;
66 this.parseTemplate();
67 }
68
69 /**
70 * Create a new Template from the provided {@link TemplateChunk}s.

Callers

nothing calls this directly

Calls 2

parseTemplateMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected