java.lang.Object
net.i2p.i2ptunnel.I2PTunnelRunner.BodyProgress
- Enclosing class:
I2PTunnelRunner
Snapshot of body-delivery progress used by
I2PTunnelRunner.shouldResumeIncompleteBody(long, long, boolean, boolean, boolean).Field Summary
FieldsModifier and TypeFieldDescriptionfinal longEntity-body bytes already written to the browser.final booleanWhether a Content-Length body can be safely spliced (not gzip, etc.).final longOriginal Content-Length, or -1 if unknown.final booleanWhether the first response headers were emitted to the browser.Constructor Summary
ConstructorsConstructorDescriptionBodyProgress(long bodyReceived, long contentLength, boolean headerWritten, boolean canRangeResume) Capture a snapshot of body-delivery progress.Method Summary
Field Details
bodyReceived
public final long bodyReceivedEntity-body bytes already written to the browser.contentLength
public final long contentLengthOriginal Content-Length, or -1 if unknown.headerWritten
public final boolean headerWrittenWhether the first response headers were emitted to the browser.canRangeResume
public final boolean canRangeResumeWhether a Content-Length body can be safely spliced (not gzip, etc.).
Constructor Details
BodyProgress
public BodyProgress(long bodyReceived, long contentLength, boolean headerWritten, boolean canRangeResume) Capture a snapshot of body-delivery progress.- Parameters:
bodyReceived- entity-body bytes already written to the browsercontentLength- original Content-Length, or -1 if unknownheaderWritten- whether the first response headers already went to the browsercanRangeResume- whether a Content-Length body can be safely spliced (not gzip, etc.)