notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1041 - trunk/main/planet/web/server/src/main/net/dpml/web/server
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1041 - trunk/main/planet/web/server/src/main/net/dpml/web/server
- Date: Sun, 5 Feb 2006 19:59:31 +0100
Author: mcconnell
Date: 2006-02-05 19:59:27 +0100 (Sun, 05 Feb 2006)
New Revision: 1041
Modified:
trunk/main/planet/web/server/src/main/net/dpml/web/server/ServletContextHandler.java
Log:
housekeeping
Modified:
trunk/main/planet/web/server/src/main/net/dpml/web/server/ServletContextHandler.java
===================================================================
---
trunk/main/planet/web/server/src/main/net/dpml/web/server/ServletContextHandler.java
2006-02-05 18:33:44 UTC (rev 1040)
+++
trunk/main/planet/web/server/src/main/net/dpml/web/server/ServletContextHandler.java
2006-02-05 18:59:27 UTC (rev 1041)
@@ -59,10 +59,14 @@
String getContextPath();
}
+ private final Logger m_logger;
+
private int m_priority = 0;
- public ServletContextHandler( Context context, Configuration config )
throws Exception
+ public ServletContextHandler( Logger logger, Context context,
Configuration config ) throws Exception
{
+ m_logger = logger;
+
String base = context.getResourceBase();
super.setResourceBase( base );
String path = context.getContextPath();
@@ -75,9 +79,11 @@
private Handler buildHandler( Configuration config ) throws
ConfigurationException
{
+ getLogger().debug( "configuration " + config );
Configuration servlets = config.getChild( "servlets" );
ArrayList servletList = new ArrayList();
Configuration[] servletConfigs = servlets.getChildren( "servlet" );
+ getLogger().debug( "servlet count: " + servletConfigs.length );
for( int i=0; i<servletConfigs.length; i++ )
{
Configuration servletConfig = servletConfigs[i];
@@ -88,7 +94,8 @@
}
ArrayList mappingList = new ArrayList();
Configuration mappings = config.getChild( "mappings" );
- Configuration[] servletMappings = config.getChildren( "map" );
+ Configuration[] servletMappings = mappings.getChildren( "map" );
+ getLogger().debug( "mapping count: " + servletMappings.length );
for( int i=0; i<servletMappings.length; i++ )
{
Configuration servletMap = servletMappings[i];
@@ -101,4 +108,9 @@
ServletMapping[] mappingArray = (ServletMapping[])
mappingList.toArray( new ServletMapping[0] );
return new ServletHandler( servletArray, mappingArray );
}
+
+ private Logger getLogger()
+ {
+ return m_logger;
+ }
}
- r1041 - trunk/main/planet/web/server/src/main/net/dpml/web/server, mcconnell at BerliOS, 02/05/2006
Archive powered by MHonArc 2.6.24.