Skip to Content.
Sympa Menu

notify-dpml - r1116 - in trunk/main: metro/tools/src/main/net/dpml/metro/tools planet/http/impl/src/main/net/dpml/http

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1116 - in trunk/main: metro/tools/src/main/net/dpml/metro/tools planet/http/impl/src/main/net/dpml/http
  • Date: Fri, 17 Feb 2006 07:56:06 +0100

Author: mcconnell
Date: 2006-02-17 07:55:17 +0100 (Fri, 17 Feb 2006)
New Revision: 1116

Modified:
trunk/main/metro/tools/src/main/net/dpml/metro/tools/ValueDataType.java

trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHandlerContext.java
trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHelper.java
Log:
update planet to leverage array context entries

Modified:
trunk/main/metro/tools/src/main/net/dpml/metro/tools/ValueDataType.java
===================================================================
--- trunk/main/metro/tools/src/main/net/dpml/metro/tools/ValueDataType.java
2006-02-17 06:35:51 UTC (rev 1115)
+++ trunk/main/metro/tools/src/main/net/dpml/metro/tools/ValueDataType.java
2006-02-17 06:55:17 UTC (rev 1116)
@@ -46,16 +46,7 @@
*/
public void setClass( final String classname )
{
- if( classname.endsWith( "[]" ) )
- {
- int n = classname.length() - 2;
- m_classname = "[L" + classname.substring( 0, n ) + ";";
- System.out.println( "## " + m_classname );
- }
- else
- {
- m_classname = classname;
- }
+ m_classname = classname;
}

/**

Modified:
trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHandlerContext.java
===================================================================
---
trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHandlerContext.java
2006-02-17 06:35:51 UTC (rev 1115)
+++
trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHandlerContext.java
2006-02-17 06:55:17 UTC (rev 1116)
@@ -24,27 +24,26 @@
*/
public interface ContextHandlerContext
{
-
/**
* Get the array of virtual hosts.
- * @param hosts the default virtual host array (empty)
- * @return the virtual host array.
+ * @param hosts the default virtual host array
+ * @return the resolved virtual host array
*/
- //String[] getVitualHosts( String[] hosts );
+ String[] getVirtualHosts( String[] hosts );

/**
- * Get the array of hosts server by the context.
- * @param hosts the default host array (empty)
- * @return the host array.
+ * Get the array of hosts.
+ * @param hosts the default host array
+ * @return the resolved host array
*/
- //String[] getHosts( String[] hosts );
+ String[] getHosts( String[] hosts );

/**
* Get the array of welcome files.
* @param values the default welcome file values
* @return the resolved array of welcome files
*/
- //String[] getWelcomeFiles( String[] values );
+ String[] getWelcomeFiles( String[] values );

/**
* Get the classloader to assign to the context handler.

Modified:
trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHelper.java
===================================================================
--- trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHelper.java
2006-02-17 06:35:51 UTC (rev 1115)
+++ trunk/main/planet/http/impl/src/main/net/dpml/http/ContextHelper.java
2006-02-17 06:55:17 UTC (rev 1116)
@@ -58,6 +58,24 @@
handler.setDisplayName( name );
}

+ String[] hosts = context.getHosts( null );
+ if( null != hosts )
+ {
+ handler.setHosts( hosts );
+ }
+
+ String[] virtual = context.getVirtualHosts( null );
+ if( null != virtual )
+ {
+ handler.setVirtualHosts( virtual );
+ }
+
+ String[] welcome = context.getWelcomeFiles( null );
+ if( null != welcome )
+ {
+ handler.setWelcomeFiles( welcome );
+ }
+
Map map = context.getMimeTypes( null );
if( null != map )
{




  • r1116 - in trunk/main: metro/tools/src/main/net/dpml/metro/tools planet/http/impl/src/main/net/dpml/http, mcconnell at BerliOS, 02/17/2006

Archive powered by MHonArc 2.6.24.

Top of Page