Skip to content

Commit

Permalink
Pull up getter/setter for useSendfile
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1651062 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Jan 12, 2015
1 parent 0b73ddc commit e92b243
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
4 changes: 4 additions & 0 deletions java/org/apache/coyote/http11/AbstractHttp11Protocol.java
Expand Up @@ -184,6 +184,10 @@ public void setSSLEnabled(boolean SSLEnabled) {
} }




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 * Maximum number of requests which can be performed over a keepalive
* connection. The default is the same as for Apache HTTP Server. * connection. The default is the same as for Apache HTTP Server.
Expand Down
3 changes: 0 additions & 3 deletions java/org/apache/coyote/http11/Http11AprProtocol.java
Expand Up @@ -62,9 +62,6 @@ public boolean isAprRequired() {
return true; 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 int getPollTime() { return ((AprEndpoint)getEndpoint()).getPollTime(); }
public void setPollTime(int pollTime) { ((AprEndpoint)getEndpoint()).setPollTime(pollTime); } public void setPollTime(int pollTime) { ((AprEndpoint)getEndpoint()).setPollTime(pollTime); }


Expand Down
8 changes: 1 addition & 7 deletions java/org/apache/coyote/http11/Http11Nio2Protocol.java
Expand Up @@ -77,20 +77,14 @@ public int getAcceptorThreadPriority() {
return ((Nio2Endpoint)getEndpoint()).getAcceptorThreadPriority(); return ((Nio2Endpoint)getEndpoint()).getAcceptorThreadPriority();
} }


public boolean getUseSendfile() {
return getEndpoint().getUseSendfile();
}

public void setUseSendfile(boolean useSendfile) {
((Nio2Endpoint)getEndpoint()).setUseSendfile(useSendfile);
}


// -------------------- Tcp setup -------------------- // -------------------- Tcp setup --------------------


public void setOomParachute(int oomParachute) { public void setOomParachute(int oomParachute) {
((Nio2Endpoint)getEndpoint()).setOomParachute(oomParachute); ((Nio2Endpoint)getEndpoint()).setOomParachute(oomParachute);
} }



// ----------------------------------------------------- JMX related methods // ----------------------------------------------------- JMX related methods


@Override @Override
Expand Down
8 changes: 0 additions & 8 deletions java/org/apache/coyote/http11/Http11NioProtocol.java
Expand Up @@ -107,14 +107,6 @@ public int getPollerThreadPriority() {
} }




public boolean getUseSendfile() {
return getEndpoint().getUseSendfile();
}

public void setUseSendfile(boolean useSendfile) {
((NioEndpoint)getEndpoint()).setUseSendfile(useSendfile);
}

// -------------------- Tcp setup -------------------- // -------------------- Tcp setup --------------------
public void setOomParachute(int oomParachute) { public void setOomParachute(int oomParachute) {
((NioEndpoint)getEndpoint()).setOomParachute(oomParachute); ((NioEndpoint)getEndpoint()).setOomParachute(oomParachute);
Expand Down

0 comments on commit e92b243

Please sign in to comment.