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 2009/04/23 18:59:26 UTC
svn commit: r767976 - in /tomcat/trunk/java/org/apache/catalina/connector:
Connector.java Request.java
Author: markt
Date: Thu Apr 23 16:59:25 2009
New Revision: 767976
URL: http://svn.apache.org/viewvc?rev=767976&view=rev
Log:
Remove unused / deprecated code
Modified:
tomcat/trunk/java/org/apache/catalina/connector/Connector.java
tomcat/trunk/java/org/apache/catalina/connector/Request.java
Modified: tomcat/trunk/java/org/apache/catalina/connector/Connector.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Connector.java?rev=767976&r1=767975&r2=767976&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/Connector.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/Connector.java Thu Apr 23 16:59:25 2009
@@ -403,25 +403,6 @@
/**
- * Return the input buffer size for this Connector.
- *
- * @deprecated
- */
- public int getBufferSize() {
- return 2048;
- }
-
- /**
- * Set the input buffer size for this Connector.
- *
- * @param bufferSize The new input buffer size.
- * @deprecated
- */
- public void setBufferSize(int bufferSize) {
- }
-
-
- /**
* Return the Container used for processing requests received by this
* Connector.
*/
Modified: tomcat/trunk/java/org/apache/catalina/connector/Request.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Request.java?rev=767976&r1=767975&r2=767976&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/Request.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/Request.java Thu Apr 23 16:59:25 2009
@@ -658,16 +658,6 @@
}
/**
- * Set the input stream associated with this Request.
- *
- * @param stream The new input stream
- */
- public void setStream(InputStream stream) {
- // Ignore
- }
-
-
- /**
* URI byte to char converter (not recycled).
*/
protected B2CConverter URIConverter = null;
@@ -786,70 +776,6 @@
/**
- * Set the content length associated with this Request.
- *
- * @param length The new content length
- */
- public void setContentLength(int length) {
- // Not used
- }
-
-
- /**
- * Set the content type (and optionally the character encoding)
- * associated with this Request. For example,
- * <code>text/html; charset=ISO-8859-4</code>.
- *
- * @param type The new content type
- */
- public void setContentType(String type) {
- // Not used
- }
-
-
- /**
- * Set the protocol name and version associated with this Request.
- *
- * @param protocol Protocol name and version
- */
- public void setProtocol(String protocol) {
- // Not used
- }
-
-
- /**
- * Set the IP address of the remote client associated with this Request.
- *
- * @param remoteAddr The remote IP address
- */
- public void setRemoteAddr(String remoteAddr) {
- // Not used
- }
-
-
- /**
- * Set the fully qualified name of the remote client associated with this
- * Request.
- *
- * @param remoteHost The remote host name
- */
- public void setRemoteHost(String remoteHost) {
- // Not used
- }
-
-
- /**
- * Set the name of the scheme associated with this request. Typical values
- * are <code>http</code>, <code>https</code>, and <code>ftp</code>.
- *
- * @param scheme The scheme
- */
- public void setScheme(String scheme) {
- // Not used
- }
-
-
- /**
* Set the value to be returned by <code>isSecure()</code>
* for this Request.
*
@@ -1587,17 +1513,6 @@
/**
- * Add a Header to the set of Headers associated with this Request.
- *
- * @param name The new header name
- * @param value The new header value
- */
- public void addHeader(String name, String value) {
- // Not used
- }
-
-
- /**
* Add a Locale to the set of preferred Locales for this Request. The
* first added Locale will be the first one returned by getLocales().
*
@@ -1685,27 +1600,6 @@
/**
- * Set the HTTP request method used for this Request.
- *
- * @param method The request method
- */
- public void setMethod(String method) {
- // Not used
- }
-
-
- /**
- * Set the query string for this Request. This will normally be called
- * by the HTTP Connector, when it parses the request headers.
- *
- * @param query The query string
- */
- public void setQueryString(String query) {
- // Not used
- }
-
-
- /**
* Set the path information for this Request. This will normally be called
* when the associated Context is mapping the Request to a particular
* Wrapper.
@@ -1773,27 +1667,6 @@
/**
- * Set the unparsed request URI for this Request. This will normally be
- * called by the HTTP Connector, when it parses the request headers.
- *
- * @param uri The request URI
- */
- public void setRequestURI(String uri) {
- // Not used
- }
-
-
- /**
- * Set the decoded request URI.
- *
- * @param uri The decoded request URI
- */
- public void setDecodedRequestURI(String uri) {
- // Not used
- }
-
-
- /**
* Get the decoded request URI.
*
* @return the URL decoded request URI
@@ -2226,7 +2099,7 @@
try {
session = manager.findSession(requestedSessionId);
} catch (IOException e) {
- session = null;
+ // Can't find the session
}
if ((session != null) && session.isValid())
return (true);
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org