Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/security UnsecureServlet.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/security UnsecureServlet.java

Author anoncvs
Full name anonymous CVS access
Date 2000-07-14 01:05:51 PDT
Message User: jrobbins
  Date: 00/07/14 01:05:51

  Modified: java/org/joist/security UnsecureServlet.java
  Log:
  Add a global "forceServletScheme" parameter. It sets the servlet scheme
  for the entire site, overriding each servlet's properties file. It's
  useful as a single flag that sets policy for the whole site, and avoids
  dorking with lots of properties files when a whole site must be SSLed.
  
  Revision Changes Path
  1.26 +9 -2 joist/java/org/joist​/security/UnsecureSe​rvlet.java
  
  Index: UnsecureServlet.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/security/Unsec​ureServlet.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- UnsecureServlet.java 2000/07/11 22:11:31 1.25
  +++ UnsecureServlet.java 2000/07/14 08:05:50 1.26
  @@ -69,7 +69,7 @@
    * loading to WebMacro servlets.
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
  - * @version $Revision: 1.25 $
  + * @version $Revision: 1.26 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -292,7 +292,14 @@
       // currentScheme = "https";
           //else
           // currentScheme = "http";
  - String servletScheme = myProperties.getProp​erty("servletScheme"​);
  +
  + // check for a global forceServletScheme before using the
  + // servlet's individual scheme
  + String servletScheme = myProperties.getProp​erty("forceServletSc​heme");
  + if (servletScheme == null) {
  + servletScheme = myProperties.getProp​erty("servletScheme"​);
  + }
  +
       //if (debug) log.debug("[ ] current scheme: " + currentScheme +
       // "\tport: " + currentPort);
       if (debug) log.debug("[ ] servlet scheme: " + servletScheme);

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

Messages

Show all messages in topic

CVS update: joist/java/org/joist/security UnsecureServlet.java anoncvs anonymous CVS access 2000-07-14 01:05:51 PDT
Messages per page: