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

Class MimeHeaderField

java/org/apache/tomcat/util/http/MimeHeaders.java:545–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545class MimeHeaderField {
546
547 private final MessageBytes nameB = MessageBytes.newInstance();
548 private final MessageBytes valueB = MessageBytes.newInstance();
549
550 /**
551 * Creates a new, uninitialized header field.
552 */
553 MimeHeaderField() {
554 // NO-OP
555 }
556
557 public void recycle() {
558 nameB.recycle();
559 valueB.recycle();
560 }
561
562 public MessageBytes getName() {
563 return nameB;
564 }
565
566 public MessageBytes getValue() {
567 return valueB;
568 }
569
570 @Override
571 public String toString() {
572 return nameB + ": " + valueB;
573 }
574}

Callers

nothing calls this directly

Calls 1

newInstanceMethod · 0.95

Tested by

no test coverage detected