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

Method receivedData

java/org/apache/coyote/http2/Stream.java:736–746  ·  view source on GitHub ↗
(int dataLength)

Source from the content-addressed store, hash-verified

734
735
736 @Override
737 final void receivedData(int dataLength) throws Http2Exception {
738 contentLengthReceived += dataLength;
739 long contentLengthHeader = coyoteRequest.getContentLengthLong();
740 if (contentLengthHeader > -1 && contentLengthReceived > contentLengthHeader) {
741 throw new StreamException(
742 sm.getString("stream.header.contentLength", getConnectionId(), getIdAsString(),
743 Long.valueOf(contentLengthHeader), Long.valueOf(contentLengthReceived)),
744 Http2Error.PROTOCOL_ERROR, getIdAsInt());
745 }
746 }
747
748
749 final void receivedEndOfStream() throws Http2Exception {

Callers

nothing calls this directly

Calls 6

getConnectionIdMethod · 0.95
getIdAsStringMethod · 0.80
getIdAsIntMethod · 0.80
getContentLengthLongMethod · 0.65
getStringMethod · 0.65
valueOfMethod · 0.45

Tested by

no test coverage detected