/** * @return the user send file boolean value */ public boolean getUseSendfile() { return endpoint.getUseSendfile(); }
public boolean getUseSendfile() { return ((NioEndpoint)endpoint).getUseSendfile(); }
public boolean getUseSendfile() { return ((NioEndpoint)endpoint).getUseSendfile(); }
public boolean getUseSendfile() { return ((NioEndpoint)endpoint).getUseSendfile(); }
public boolean getUseSendfile() { return ep.getUseSendfile(); }
public boolean getUseSendfile() { return ((NioEndpoint)endpoint).getUseSendfile(); }
/** * Create a new instance of {@code Http11NioProcessor} * * @param headerBufferSize * @param endpoint */ public Http11NioProcessor(int headerBufferSize, NioEndpoint endpoint) { this.endpoint = endpoint; request = new Request(); inputBuffer = new InternalNioInputBuffer(this, request, headerBufferSize, endpoint); request.setInputBuffer(inputBuffer); if (endpoint.getUseSendfile()) { request.setSendfile(true); } response = new Response(); response.setHook(this); outputBuffer = new InternalNioOutputBuffer(this, response, headerBufferSize, endpoint); response.setOutputBuffer(outputBuffer); request.setResponse(response); sslEnabled = endpoint.getSSLEnabled(); initializeFilters(); // Cause loading of HexUtils int foo = HexUtils.DEC[0]; // Cause loading of FastHttpDateFormat FastHttpDateFormat.getCurrentDate(); }
if (endpoint.getUseSendfile()) request.setAttribute("org.apache.tomcat.sendfile.support", Boolean.TRUE);
if (endpoint.getUseSendfile()) request.setAttribute("org.apache.tomcat.sendfile.support", Boolean.TRUE);
if (this.endpoint.getUseSendfile()) { String fileName = (String) request.getAttribute("org.apache.tomcat.sendfile.filename"); if (fileName != null) {
if (response.getSendfilePath() != null && endpoint.getUseSendfile()) {