Top Fields Constructors Methods
org.apache.tomcat.util.net

public abstract Class SendfileDataBase

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.tomcat.util.net.Nio2Endpoint.SendfileData, org.apache.tomcat.util.net.NioEndpoint.SendfileData

Field Summary

Modifier and TypeField and Description
public final String
fileName

The full path to the file that contains the data to be written to the socket.

public SendfileKeepAliveState
keepAliveState

Is the current request being processed on a keep-alive connection?

public long
length

The number of bytes remaining to be written from the file (from the current pos.

public long
pos

The position of the next byte in the file to be written to the socket.

Constructor Summary

AccessConstructor and Description
public
SendfileDataBase(String filename, long pos, long length)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fileNameback to summary
public final String fileName

The full path to the file that contains the data to be written to the socket.

keepAliveStateback to summary
public 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.

lengthback to summary
public long length

The number of bytes remaining to be written from the file (from the current pos. This is initialised to the end point - the start point and then updated as the file is written.

posback to summary
public 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.

Constructor Detail

SendfileDataBaseback to summary
public SendfileDataBase(String filename, long pos, long length)