You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/11/20 00:23:18 UTC
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4 CoyoteAdapter.java CoyoteConnector.java
remm 2003/11/19 15:23:18
Modified: coyote/src/java/org/apache/coyote/tomcat4 CoyoteAdapter.java
CoyoteConnector.java
Log:
- Add URI encoding field.
Revision Changes Path
1.23 +8 -4 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteAdapter.java
Index: CoyoteAdapter.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteAdapter.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- CoyoteAdapter.java 1 Oct 2003 15:05:09 -0000 1.22
+++ CoyoteAdapter.java 19 Nov 2003 23:23:18 -0000 1.23
@@ -183,6 +183,10 @@
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
+ // Set query string encoding
+ req.getParameters().setQueryStringEncoding
+ (connector.getURIEncoding());
+
}
try {
1.27 +32 -4 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.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- CoyoteConnector.java 3 May 2003 01:05:56 -0000 1.26
+++ CoyoteConnector.java 19 Nov 2003 23:23:18 -0000 1.27
@@ -351,6 +351,12 @@
private Adapter adapter = null;
+ /**
+ * URI encoding.
+ */
+ private String URIEncoding = null;
+
+
// ------------------------------------------------------------- Properties
@@ -946,6 +952,28 @@
this.tcpNoDelay = tcpNoDelay;
}
+
+
+ /**
+ * Return the character encoding to be used for the URI.
+ */
+ public String getURIEncoding() {
+
+ return (this.URIEncoding);
+
+ }
+
+
+ /**
+ * Set the URI encoding to be used for the URI.
+ *
+ * @param URIEncoding The new URI character encoding.
+ */
+ public void setURIEncoding(String URIEncoding) {
+
+ this.URIEncoding = URIEncoding;
+
+ }
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org