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

Method doRead

java/org/apache/coyote/Request.java:1009–1019  ·  view source on GitHub ↗

Read data from the input buffer and put it into ApplicationBufferHandler. The buffer is owned by the protocol implementation - it will be reused on the next read. The Adapter must either process the data in place or copy it to a separate buffer if it needs to hold it. In most cases this is done duri

(ApplicationBufferHandler handler)

Source from the content-addressed store, hash-verified

1007 * @throws IOException If an I/O error occurs during the copy
1008 */
1009 public int doRead(ApplicationBufferHandler handler) throws IOException {
1010 if (getBytesRead() == 0 && !response.isCommitted()) {
1011 action(ActionCode.ACK, ContinueResponseTiming.ON_REQUEST_BODY_READ);
1012 }
1013
1014 int n = inputBuffer.doRead(handler);
1015 if (n > 0) {
1016 bytesRead += n;
1017 }
1018 return n;
1019 }
1020
1021
1022 // -------------------- Error tracking --------------------

Callers

nothing calls this directly

Calls 4

getBytesReadMethod · 0.95
actionMethod · 0.95
isCommittedMethod · 0.65
doReadMethod · 0.65

Tested by

no test coverage detected