dlr         00/10/15 15:57:05

  Modified:    src/java/org/apache/velocity/servlet VelocityServlet.java
  Log:
  Formatting changes for 80 column buffers.
  
  Revision  Changes    Path
  1.8       +17 -11    
jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java
  
  Index: VelocityServlet.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/servlet/VelocityServlet.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- VelocityServlet.java      2000/10/15 21:17:22     1.7
  +++ VelocityServlet.java      2000/10/15 22:57:04     1.8
  @@ -80,9 +80,10 @@
    * 
    * This class puts some things into the context object that you should
    * be aware of:
  - *
  + * <pre>
    * "req" - The HttpServletRequest object
    * "res" - The HttpServletResponse object
  + * </pre>
    *
    * If you put a contentType object into the context within either your
    * serlvet or within your template, then that will be used to override
  @@ -92,20 +93,22 @@
    *
    * @author Dave Bryson
    * @author <a href="mailto:[EMAIL PROTECTED]">Jon S. Stevens</a>
  - * $Id: VelocityServlet.java,v 1.7 2000/10/15 21:17:22 jon Exp $
  + * $Id: VelocityServlet.java,v 1.8 2000/10/15 22:57:04 dlr Exp $
    */
   public abstract class VelocityServlet extends HttpServlet
   {
       /**
  -     * The name for the request object in the context
  +     * The HTTP request object context key.
        */
       public static final String REQUEST = "req";
  +
       /**
  -     * The name for the response object in the context
  +     * The HTTP response object context key.
        */
       public static final String RESPONSE = "res";
  +
       /**
  -     * The name for the contentType object in the context
  +     * The HTTP content type context key.
        */
       public static final String CONTENT_TYPE = "contentType";
       
  @@ -121,9 +124,10 @@
       private static boolean asciiHack = true;
   
       /**
  -     * get the default contentType
  +     * The default content type.
        */
  -    private static String defaultContentType = 
Runtime.getString(Runtime.DEFAULT_CONTENT_TYPE, "text/html");
  +    private static String defaultContentType = 
  +        Runtime.getString(Runtime.DEFAULT_CONTENT_TYPE, "text/html");
   
       /** 
        * Performs initialization of this servlet.  Called by the servlet 
  @@ -155,7 +159,8 @@
       /**
        * Handles GET
        */
  -    public final void doGet( HttpServletRequest request, HttpServletResponse 
response )
  +    public final void doGet( HttpServletRequest request, 
  +                             HttpServletResponse response )
           throws ServletException, IOException
       {
           doRequest(request, response);
  @@ -165,7 +170,7 @@
        * Handle a POST
        */
       public final void doPost( HttpServletRequest request, 
  -                        HttpServletResponse response )
  +                              HttpServletResponse response )
           throws ServletException, IOException
       {
           doRequest(request, response);
  @@ -236,7 +241,8 @@
       /**
        * Retrieves the requested template.
        *
  -     * @param name The file name of the template to retrieve relative to 
template.path
  +     * @param name The file name of the template to retrieve relative to the 
  +     *             <code>template.path</code> property.
        * @return     The requested template.
        */
       public Template getTemplate( String name )
  @@ -270,4 +276,4 @@
           html.append("</html>");
           out.print( html.toString() );
       }
  -}
  \ No newline at end of file
  +}
  
  
  

Reply via email to