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 commitlogger at hocus dot collab dot net
Full name commitlogger at hocus dot collab dot net
Date 2000-03-24 12:52:35 PST
Message User: dlr
  Date: 00/03/24 12:52:35

  Modified: java/org/joist/security UnsecureServlet.java
  Log:
  Noted undocumented behavior with processRequest.
  
  Revision Changes Path
  1.6 +27 -19 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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- UnsecureServlet.java 2000/02/29 01:23:58 1.5
  +++ UnsecureServlet.java 2000/03/24 20:52:35 1.6
  @@ -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.5 $
  + * @version $Revision: 1.6 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 Collab.Net, Inc.
  @@ -83,9 +83,11 @@
       /** Turn debug log output on/off */
       final static private boolean debug = true;
   
  - /** Read in a servlet-specific properties file and populate this
  + /**
  + * Read in a servlet-specific properties file and populate this
        * variable. We may want to set up joist-wide properties, which
  - * would be the default for the servlet-specific properties. */
  + * would be the default for the servlet-specific properties.
  + */
       protected Properties myProperties;
   
       /** The servlet-specific configuration properties. */
  @@ -101,16 +103,16 @@
       private static WebStats webStats = null;
   
       /**
  - * Does connection management and other tasks common to all servlets.
  - * This implements the <code>handle()​</code> method specified in
  - * <code>WMServle​t</code>.
  - * All subclasses should invoke this early in their own <code>handle()
  - * <\code> methods that over-ride this.
  + * Does connection management and other tasks common to all servlets.
  + * This implements the <code>handle()​</code> method specified in
  + * <code>WMServle​t</code>.
  + * All subclasses should invoke this early in their own <code>handle()
  + * <\code> methods that over-ride this.
        *
  - * @param context the WebContext partially populated by WMServlet
  - * @return the Template for formatting the WebContext data
  + * @param context The WebContext partially populated by WMServlet.
  + * @return The Template for formatting the WebContext data.
        * @exception HandlerException
  - * @see WMServlet#handle(jav​a.lang.String)
  + * @see WMServlet#handle(jav​a.lang.String)
        */
       protected Template
       handle (WebContext context)
  @@ -150,13 +152,13 @@
           // Retrieve the template
           try
           {
  - template = (Template) broker.getValue(Temp​lateProvider.TYPE,
  - templateName);
  + template = (Template)broker.get​Value(TemplateProvid​er.TYPE,
  + templateName);
           }
           catch (Exception e)
           {
               throw new HandlerException("Could not locate template: " +
  - templateName);
  + templateName);
           }
   
           // Process the template.
  @@ -197,7 +199,8 @@
       {
           // Catch-all for otherwise unhandled exceptions.
           log.exception(e);
  - if (debug) log.debug("Caught in UnsecureServlet: " + e.getMessage());
  + if (debug) log.debug("Caught in UnsecureServlet: " +
  + e.getMessage());
           throw new HandlerException(e.g​etMessage());
       }
       finally
  @@ -214,9 +217,13 @@
   
   
       /**
  - * Does whatever processing is necessary to fill in the WebContext object
  - * with objects to be used to fill in the template. This method can also
  - * decide to use another template entirely.
  + * Does whatever processing is necessary to fill the WebContext instance
  + * with objects to be used to fill in the template. The value in the
  + * WebContext keyed by the String "action" will always be filled by this
  + * method. The values corresponding to the CGI keys "action" and "Button"
  + * are checked (in that order, with a default of "none"), and resulting
  + * value is stuffed into the WebContext and keyed by "action".
  + * This method can also decide to use another template entirely.
        *
        * @param context the WebContext partially populated by WMServlet
        * @param connection a JDBC database connection
  @@ -241,7 +248,8 @@
       context.put("servletName", servletName);
       if (debug) log.debug(">> Starting servlet: " + servletName);
       context.put("myProperties", myProperties);
  - if (debug) log.debug(">> BRANDNAME: " + myProperties.getProp​erty("BRANDNAME"));
  + if (debug) log.debug(">> BRANDNAME: " +
  + myProperties.getProp​erty("BRANDNAME"));
   
       // Check whether we need to redirect based on protocol (scheme).
       HttpServletRequest request = context.getRequest();

« 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 commitlogger at hocus dot collab dot net commitlogger at hocus dot collab dot net 2000-03-24 12:52:35 PST
Messages per page: