Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/util URL.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/util URL.java

Author davidp
Full name David C. Pellegrini
Date 2000-11-13 17:31:09 PST
Message User: davidp
  Date: 00/11/13 17:31:09

  Modified: java/org/joist/util URL.java
  Log:
  Add the port number to the URL if it's not port 80.
  
  Revision Changes Path
  1.11 +3 -3 joist/java/org/joist​/util/URL.java
  
  Index: URL.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/util/URL.java,​v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- URL.java 2000/11/14 01:13:57 1.10
  +++ URL.java 2000/11/14 01:31:09 1.11
  @@ -62,7 +62,7 @@
    * Parses and builds URLs
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.10 $
  + * @version $Revision: 1.11 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -114,8 +114,8 @@
       HttpServletResponse response = context.getResponse();
       HttpServletRequest request = context.getRequest();
       newURL.append(reques​t.getServerName());
  - //REM: int p = request.getServerPort();
  - //FIX: (the port seems to screw up sessions) newURL.append(":80");
  + int p = request.getServerPort();
  + if (p != 80) newURL.append(':').a​ppend(Integer.toStri​ng(p));
       if (debug) log.debug("httpAndServer: " + newURL.toString());
       return newURL;
       }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/util URL.java davidp David C. Pellegrini 2000-11-13 17:31:09 PST
Messages per page: