Changeset 1100

Show
Ignore:
Timestamp:
06/19/08 23:20:57 (2 months ago)
Author:
kris
Message:

some more cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/mango/net/servlet/Servlet.d

    r1096 r1100  
    432432******************************************************************************/ 
    433433 
    434 class GetServlet : MethodServlet 
     434class QueryServlet : MethodServlet 
    435435{ 
    436436        /********************************************************************** 
    437437         
    438  
    439438        **********************************************************************/ 
    440439 
  • trunk/mango/net/servlet/ServletProvider.d

    r1098 r1100  
    189189                contexts.put (context.getName, context); 
    190190                return context; 
     191        } 
     192                 
     193        /********************************************************************** 
     194 
     195                Create and register a new servlet context 
     196 
     197        **********************************************************************/ 
     198 
     199        ServletContext addContext (char[] name, char[] path = null) 
     200        { 
     201                return addContext (new ServletContext (name, path, log)); 
    191202        } 
    192203                 
     
    234245                // add to list of mappings 
    235246                auto mapping = new ServletMapping (servlet, new Regex(pattern, null)); 
    236                 log.info ("mapping servlet {} to [{}]", servlet.getName, pattern); 
     247                log.info ("{} maps to path [{}] ", servlet.getName, pattern); 
    237248                mappings ~= mapping; 
    238249        } 
  • trunk/mango/net/servlet/ServletResponse.d

    r1097 r1100  
    136136 
    137137        /*********************************************************************** 
    138          
    139                 The argument 'status' should be "inout" instead so as to  
    140                 enforce pass-by-reference semantics. However, one cannot 
    141                 do that with a const struct. D apparently still requires 
    142                 further development in this area. 
    143138 
    144139        ***********************************************************************/ 
     
    150145 
    151146        /*********************************************************************** 
    152          
    153                 The argument 'status' should be "inout" instead so as to  
    154                 enforce pass-by-reference semantics. However, one cannot 
    155                 do that with a const struct. D apparently still requires 
    156                 further development in this area. 
    157147 
    158148        ***********************************************************************/ 
     
    174164        /*********************************************************************** 
    175165         
    176                 The argument 'status' should be "inout" instead so as to  
    177                 enforce pass-by-reference semantics. However, one cannot 
    178                 do that with a const struct. D apparently still requires 
    179                 further development in this area. 
    180  
    181166        ***********************************************************************/ 
    182167 
  • trunk/mango/net/servlet/tools/AdminServlet.d

    r1078 r1100  
    3131class AdminServlet : Servlet 
    3232{ 
     33        /*********************************************************************** 
     34 
     35        ***********************************************************************/ 
     36 
     37        this (ServletProvider sp, ServletContext context) 
     38        { 
     39                super ("mango.net.servlet.tools.AdminServlet"); 
     40 
     41                sp.addMapping ("/admin/logger", sp.addServlet (this, context)); 
     42        } 
     43 
    3344        /*********************************************************************** 
    3445 
     
    242253                output ("</body></html>"); 
    243254        } 
    244  
    245         /*********************************************************************** 
    246  
    247         ***********************************************************************/ 
    248  
    249         static void configure (ServletProvider sp, ServletContext context) 
    250         { 
    251                 sp.addMapping ("/admin/logger", sp.addServlet (new AdminServlet, context)); 
    252         } 
    253255} 
    254256