From f83703209fb3141be63f9c4815c73b981f612302 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 23 Apr 2009 16:59:25 +0000 Subject: [PATCH] Remove unused / deprecated code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@767976 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/connector/Connector.java | 19 ---- java/org/apache/catalina/connector/Request.java | 129 +--------------------- 2 files changed, 1 insertion(+), 147 deletions(-) diff --git a/java/org/apache/catalina/connector/Connector.java b/java/org/apache/catalina/connector/Connector.java index 33bfec619..3c4a64221 100644 --- a/java/org/apache/catalina/connector/Connector.java +++ b/java/org/apache/catalina/connector/Connector.java @@ -403,25 +403,6 @@ public class Connector /** - * 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. */ diff --git a/java/org/apache/catalina/connector/Request.java b/java/org/apache/catalina/connector/Request.java index ec536fe11..ca005305d 100644 --- a/java/org/apache/catalina/connector/Request.java +++ b/java/org/apache/catalina/connector/Request.java @@ -658,16 +658,6 @@ public class Request } /** - * 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 @@ public class Request /** - * 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, - * text/html; charset=ISO-8859-4. - * - * @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 http, https, and ftp. - * - * @param scheme The scheme - */ - public void setScheme(String scheme) { - // Not used - } - - - /** * Set the value to be returned by isSecure() * for this Request. * @@ -1587,17 +1513,6 @@ public class Request /** - * 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 @@ public class Request /** - * 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 @@ public class Request /** - * 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 @@ public class Request try { session = manager.findSession(requestedSessionId); } catch (IOException e) { - session = null; + // Can't find the session } if ((session != null) && session.isValid()) return (true); -- 2.11.0