MCPcopy Create free account
hub / github.com/apache/tomcat / getReporter

Method getReporter

java/org/apache/catalina/connector/Response.java:456–466  ·  view source on GitHub ↗

Return a PrintWriter that can be used to render error messages, regardless of whether a stream or writer has already been acquired. @return Writer which can be used for error reports. Returns null if the output buffer is not in a new state (i.e., data has been written or headers

()

Source from the content-addressed store, hash-verified

454 * @exception IOException if an input/output error occurs
455 */
456 public PrintWriter getReporter() throws IOException {
457 if (outputBuffer.isNew()) {
458 outputBuffer.checkConverter();
459 if (writer == null) {
460 writer = new CoyoteWriter(outputBuffer);
461 }
462 return writer;
463 } else {
464 return null;
465 }
466 }
467
468
469 // ------------------------------------------------ ServletResponse Methods

Callers 2

reportMethod · 0.45
reportMethod · 0.45

Calls 2

isNewMethod · 0.65
checkConverterMethod · 0.45

Tested by

no test coverage detected