From baa859f0ea6b1dfed4cafc09ea751fe7650f0893 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 27 Oct 2009 22:16:54 +0000 Subject: [PATCH] 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 --- java/org/apache/catalina/connector/Request.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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. * -- 2.11.0