Package org.apache.tomcat.util.net
Class SendfileDataBase
- java.lang.Object
- 
- org.apache.tomcat.util.net.SendfileDataBase
 
- 
- Direct Known Subclasses:
- AprEndpoint.SendfileData,- Nio2Endpoint.SendfileData,- NioEndpoint.SendfileData
 
 public abstract class SendfileDataBase extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description java.lang.StringfileNameThe full path to the file that contains the data to be written to the socket.SendfileKeepAliveStatekeepAliveStateIs the current request being processed on a keep-alive connection?longlengthThe number of bytes remaining to be written from the file (from the currentpos.longposThe position of the next byte in the file to be written to the socket.
 - 
Constructor SummaryConstructors Constructor Description SendfileDataBase(java.lang.String filename, long pos, long length)
 
- 
- 
- 
Field Detail- 
keepAliveStatepublic SendfileKeepAliveState keepAliveState Is the current request being processed on a keep-alive connection? This determines if the socket is closed once the send file completes or if processing continues with the next request on the connection or waiting for that next request to arrive.
 - 
fileNamepublic final java.lang.String fileName The full path to the file that contains the data to be written to the socket.
 - 
pospublic long pos The position of the next byte in the file to be written to the socket. This is initialised to the start point and then updated as the file is written.
 - 
lengthpublic long length The number of bytes remaining to be written from the file (from the currentpos. This is initialised to the end point - the start point and then updated as the file is written.
 
- 
 
-