MCPcopy Index your code
hub / github.com/apache/tomcat / setTrailerFields

Method setTrailerFields

java/org/apache/coyote/Response.java:497–505  ·  view source on GitHub ↗

Set the trailer fields supplier. @param supplier The trailer fields supplier

(Supplier<Map<String,String>> supplier)

Source from the content-addressed store, hash-verified

495 * @param supplier The trailer fields supplier
496 */
497 public void setTrailerFields(Supplier<Map<String,String>> supplier) {
498 AtomicBoolean trailerFieldsSupported = new AtomicBoolean(false);
499 action(ActionCode.IS_TRAILER_FIELDS_SUPPORTED, trailerFieldsSupported);
500 if (!trailerFieldsSupported.get()) {
501 throw new IllegalStateException(sm.getString("response.noTrailers.notSupported"));
502 }
503
504 this.trailerFieldsSupplier = supplier;
505 }
506
507
508 /**

Callers

nothing calls this directly

Calls 3

actionMethod · 0.95
getMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected