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/06/22 19:31:07 UTC

cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote RequestInfo.java

remm        2003/06/22 10:31:07

  Modified:    coyote/src/java/org/apache/coyote RequestInfo.java
  Log:
  - Remote addr is a field which is lazily evaluated. A hook has to be used for
    this not to be null most of the time.
  
  Revision  Changes    Path
  1.4       +1 -0      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java
  
  Index: RequestInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/RequestInfo.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RequestInfo.java	23 Mar 2003 16:07:33 -0000	1.3
  +++ RequestInfo.java	22 Jun 2003 17:31:07 -0000	1.4
  @@ -126,6 +126,7 @@
       }
   
       public String getRemoteAddr() {
  +        req.action(ActionCode.ACTION_REQ_HOST_ADDR_ATTRIBUTE, null);
           return req.remoteAddr().toString();
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org