remm 2002/12/18 10:11:11 Modified: coyote/src/java/org/apache/coyote/tomcat4 CoyoteConnector.java coyote/src/java/org/apache/coyote/tomcat5 CoyoteConnector.java Log: - Add new compression attribute. Revision Changes Path 1.19 +44 -11 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java Index: CoyoteConnector.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- CoyoteConnector.java 26 Nov 2002 03:26:56 -0000 1.18 +++ CoyoteConnector.java 18 Dec 2002 18:11:10 -0000 1.19 @@ -259,13 +259,6 @@ */ private boolean secure = false; - /** - * Flag to disable setting a seperate time-out for uploads. - * If <code>true</code>, then the <code>timeout</code> parameter is - * ignored. If <code>false</code>, then the <code>timeout</code> - * parameter is used to control uploads. - */ - private boolean disableUploadTimeout = false; /** * The string manager for this package. @@ -305,6 +298,21 @@ /** + * Flag to disable setting a seperate time-out for uploads. + * If <code>true</code>, then the <code>timeout</code> parameter is + * ignored. If <code>false</code>, then the <code>timeout</code> + * parameter is used to control uploads. + */ + private boolean disableUploadTimeout = false; + + + /** + * Compression value. + */ + private String compression = "off"; + + + /** * Coyote Protocol handler class name. * Defaults to the Coyote HTTP/1.1 protocolHandler. */ @@ -478,6 +486,29 @@ /** + * Get the value of compression. + */ + public String getCompression() { + + return (compression); + + } + + + /** + * Set the value of compression. + * + * @param compression The new compression value, which can be "on", "off" + * or "force" + */ + public void setCompression(String compression) { + + this.compression = compression; + + } + + + /** * Return the current number of processors that have been created. */ public int getCurProcessors() { @@ -990,6 +1021,8 @@ "" + connectionTimeout); IntrospectionUtils.setProperty(protocolHandler, "disableUploadTimeout", "" + disableUploadTimeout); + IntrospectionUtils.setProperty(protocolHandler, "compression", + compression); if (address != null) { IntrospectionUtils.setProperty(protocolHandler, "address", address); 1.6 +35 -4 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java Index: CoyoteConnector.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- CoyoteConnector.java 27 Nov 2002 20:14:43 -0000 1.5 +++ CoyoteConnector.java 18 Dec 2002 18:11:10 -0000 1.6 @@ -155,6 +155,12 @@ /** + * Compression value. + */ + private String compression = "off"; + + + /** * The set of processors that have ever been created. */ private Vector created = new Vector(); @@ -352,6 +358,29 @@ /** + * Get the value of compression. + */ + public String getCompression() { + + return (compression); + + } + + + /** + * Set the value of compression. + * + * @param compression The new compression value, which can be "on", "off" + * or "force" + */ + public void setCompression(String compression) { + + this.compression = compression; + + } + + + /** * Return the connection timeout for this Connector. */ public int getConnectionTimeout() { @@ -964,6 +993,8 @@ "" + connectionTimeout); IntrospectionUtils.setProperty(protocolHandler, "disableUploadTimeout", "" + disableUploadTimeout); + IntrospectionUtils.setProperty(protocolHandler, "compression", + compression); if (address != null) { IntrospectionUtils.setProperty(protocolHandler, "address", address);
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>