From: markt Date: Tue, 27 Oct 2009 22:16:54 +0000 (+0000) Subject: Add back the setters for remote host and remote address and provide an implementation... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=baa859f0ea6b1dfed4cafc09ea751fe7650f0893;p=tomcat7.0 Add back the setters for remote host and remote address and provide an implementation. They will be needed for the mod_remoteip port (bug 47330) git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@830368 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/connector/Request.java b/java/org/apache/catalina/connector/Request.java index 42e0fe319..adcfc39c1 100644 --- a/java/org/apache/catalina/connector/Request.java +++ b/java/org/apache/catalina/connector/Request.java @@ -793,6 +793,27 @@ public class Request /** + * Set the IP address of the remote client associated with this Request. + * + * @param remoteAddr The remote IP address + */ + public void setRemoteAddr(String remoteAddr) { + this.remoteAddr = remoteAddr; + } + + + /** + * Set the fully qualified name of the remote client associated with this + * Request. + * + * @param remoteHost The remote host name + */ + public void setRemoteHost(String remoteHost) { + this.remoteHost = remoteHost; + } + + + /** * Set the value to be returned by isSecure() * for this Request. *