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 dlr
Full name Daniel Rall
Date 2001-04-02 14:59:58 PDT
Message User: dlr
  Date: 01/04/02 14:59:58

  Modified: java/org/joist/util URL.java
  Log:
  No need to append HTTPS_PORT within protoAndServer() method as it is
  already indicated by the prepended protocol.
  
  Revision Changes Path
  1.34 +10 -7 joist/java/org/joist​/util/URL.java
  
  Index: URL.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/util/URL.java,​v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- URL.java 2001/04/02 21:44:14 1.33
  +++ URL.java 2001/04/02 21:59:58 1.34
  @@ -65,7 +65,7 @@
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
    * @author <a href="mailto:dlr@col​lab.net">Daniel Rall</a>
  - * @version $Id: URL.java,v 1.33 2001/04/02 21:44:14 dlr Exp $
  + * @version $Id: URL.java,v 1.34 2001/04/02 21:59:58 dlr Exp $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999-2001 CollabNet, Inc.
  @@ -168,12 +168,15 @@
       protected static StringBuffer protoAndServer (WebContext context,
                                                     String protocol)
       {
  - StringBuffer newURL = new StringBuffer(protoco​l).append("://");
  - HttpServletRequest request = context.getRequest();
  - newURL.append(reques​t.getServerName());
  - int p = request.getServerPort();
  - if (p != HTTP_PORT) newURL.append(':').append(p);
  - return newURL;
  + StringBuffer newURL = new StringBuffer(protoco​l).append("://");
  + HttpServletRequest request = context.getRequest();
  + newURL.append(reques​t.getServerName());
  + int p = request.getServerPort();
  + if (p != HTTP_PORT && p != HTTPS_PORT)
  + {
  + newURL.append(':').append(p);
  + }
  + return newURL;
       }
   
       static final String DOMAIN_KEY = "domain";

« 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 dlr Daniel Rall 2001-04-02 14:59:58 PDT
Messages per page: