You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/01/12 12:16:14 UTC
svn commit: r1651062 - in /tomcat/trunk/java/org/apache/coyote/http11:
AbstractHttp11Protocol.java Http11AprProtocol.java Http11Nio2Protocol.java
Http11NioProtocol.java
Author: markt
Date: Mon Jan 12 11:16:13 2015
New Revision: 1651062
URL: http://svn.apache.org/r1651062
Log:
Pull up getter/setter for useSendfile
Modified:
tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11Nio2Protocol.java
tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
Modified: tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java?rev=1651062&r1=1651061&r2=1651062&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/AbstractHttp11Protocol.java Mon Jan 12 11:16:13 2015
@@ -184,6 +184,10 @@ public abstract class AbstractHttp11Prot
}
+ public boolean getUseSendfile() { return getEndpoint().getUseSendfile(); }
+ public void setUseSendfile(boolean useSendfile) { getEndpoint().setUseSendfile(useSendfile); }
+
+
/**
* Maximum number of requests which can be performed over a keepalive
* connection. The default is the same as for Apache HTTP Server.
Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java?rev=1651062&r1=1651061&r2=1651062&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java Mon Jan 12 11:16:13 2015
@@ -62,9 +62,6 @@ public class Http11AprProtocol extends A
return true;
}
- public boolean getUseSendfile() { return getEndpoint().getUseSendfile(); }
- public void setUseSendfile(boolean useSendfile) { ((AprEndpoint)getEndpoint()).setUseSendfile(useSendfile); }
-
public int getPollTime() { return ((AprEndpoint)getEndpoint()).getPollTime(); }
public void setPollTime(int pollTime) { ((AprEndpoint)getEndpoint()).setPollTime(pollTime); }
Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11Nio2Protocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11Nio2Protocol.java?rev=1651062&r1=1651061&r2=1651062&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11Nio2Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11Nio2Protocol.java Mon Jan 12 11:16:13 2015
@@ -77,13 +77,6 @@ public class Http11Nio2Protocol extends
return ((Nio2Endpoint)getEndpoint()).getAcceptorThreadPriority();
}
- public boolean getUseSendfile() {
- return getEndpoint().getUseSendfile();
- }
-
- public void setUseSendfile(boolean useSendfile) {
- ((Nio2Endpoint)getEndpoint()).setUseSendfile(useSendfile);
- }
// -------------------- Tcp setup --------------------
@@ -91,6 +84,7 @@ public class Http11Nio2Protocol extends
((Nio2Endpoint)getEndpoint()).setOomParachute(oomParachute);
}
+
// ----------------------------------------------------- JMX related methods
@Override
Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java?rev=1651062&r1=1651061&r2=1651062&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java Mon Jan 12 11:16:13 2015
@@ -107,14 +107,6 @@ public class Http11NioProtocol extends A
}
- public boolean getUseSendfile() {
- return getEndpoint().getUseSendfile();
- }
-
- public void setUseSendfile(boolean useSendfile) {
- ((NioEndpoint)getEndpoint()).setUseSendfile(useSendfile);
- }
-
// -------------------- Tcp setup --------------------
public void setOomParachute(int oomParachute) {
((NioEndpoint)getEndpoint()).setOomParachute(oomParachute);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org