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

Method write

form/src/main/java/feign/form/multipart/PojoWriter.java:43–55  ·  view source on GitHub ↗
(Output output, String boundary, String key, Object object)

Source from the content-addressed store, hash-verified

41 }
42
43 @Override
44 public void write(Output output, String boundary, String key, Object object)
45 throws EncodeException {
46 val map = toMap(object);
47 for (val entry : map.entrySet()) {
48 val writer = findApplicableWriter(entry.getValue());
49 if (writer == null) {
50 continue;
51 }
52
53 writer.write(output, boundary, entry.getKey(), entry.getValue());
54 }
55 }
56
57 private Writer findApplicableWriter(Object value) {
58 for (val writer : writers) {

Callers

nothing calls this directly

Calls 4

findApplicableWriterMethod · 0.95
getValueMethod · 0.65
writeMethod · 0.65
toMapMethod · 0.45

Tested by

no test coverage detected