directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1026988 - in /directory/apacheds/branches/apacheds-config/server-config/src: main/java/org/apache/directory/server/config/beans/HttpWebAppBean.java test/resources/httpServer.ldif
Date Mon, 25 Oct 2010 09:13:46 GMT
Author: elecharny
Date: Mon Oct 25 09:13:45 2010
New Revision: 1026988

URL: http://svn.apache.org/viewvc?rev=1026988&view=rev
Log:
Added the webApp processing

Modified:
    directory/apacheds/branches/apacheds-config/server-config/src/main/java/org/apache/directory/server/config/beans/HttpWebAppBean.java
    directory/apacheds/branches/apacheds-config/server-config/src/test/resources/httpServer.ldif

Modified: directory/apacheds/branches/apacheds-config/server-config/src/main/java/org/apache/directory/server/config/beans/HttpWebAppBean.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-config/server-config/src/main/java/org/apache/directory/server/config/beans/HttpWebAppBean.java?rev=1026988&r1=1026987&r2=1026988&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-config/server-config/src/main/java/org/apache/directory/server/config/beans/HttpWebAppBean.java
(original)
+++ directory/apacheds/branches/apacheds-config/server-config/src/main/java/org/apache/directory/server/config/beans/HttpWebAppBean.java
Mon Oct 25 09:13:45 2010
@@ -100,4 +100,30 @@ public class HttpWebAppBean extends AdsB
     {
         this.httpwarfile = httpWarFile;
     }
+
+    
+    /**
+     * {@inheritDoc}
+     */
+    public String toString( String tabs )
+    {
+        StringBuilder sb = new StringBuilder();
+        
+        sb.append( tabs ).append( "HttpWebApp :\n" );
+        sb.append( super.toString( tabs + "  " ) );
+        sb.append( tabs ).append( "  id : " ).append( id ).append( '\n' );
+        sb.append( tabs ).append( "  war file : " ).append( httpwarfile ).append( '\n' );
+        sb.append(  toString( tabs, "  application context path", httpappctxpath ) );
+
+        return sb.toString();
+    }
+    
+    
+    /**
+     * {@inheritDoc}
+     */
+    public String toString()
+    {
+        return toString( "" );
+    }
 }

Modified: directory/apacheds/branches/apacheds-config/server-config/src/test/resources/httpServer.ldif
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-config/server-config/src/test/resources/httpServer.ldif?rev=1026988&r1=1026987&r2=1026988&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-config/server-config/src/test/resources/httpServer.ldif
(original)
+++ directory/apacheds/branches/apacheds-config/server-config/src/test/resources/httpServer.ldif
Mon Oct 25 09:13:45 2010
@@ -53,6 +53,27 @@ ads-serverId: httpServer
 description: HTTP server
 ads-httpConfFile: test.conf
 
+dn: ou=httpWebApps,ads-serverId=httpServer,ou=servers,ads-directoryServiceId=default,ou=config
+ou: httpWebApps
+objectclass: organizationalUnit
+objectclass: top
+
+dn: ads-id=webApp1,ou=httpWebApps,ads-serverId=httpServer,ou=servers,ads-directoryServiceId=default,ou=config
+objectclass: top
+objectclass: ads-base
+objectclass: ads-httpWebApp
+ads-Id: webApp1
+ads-httpWarFile: war file 1
+ads-httpAppCtxPath: /home/app1
+
+dn: ads-id=webApp2,ou=httpWebApps,ads-serverId=httpServer,ou=servers,ads-directoryServiceId=default,ou=config
+objectclass: top
+objectclass: ads-base
+objectclass: ads-httpWebApp
+ads-Id: webApp2
+ads-httpWarFile: war file 2
+ads-httpAppCtxPath: /home/app2
+
 dn: ou=transports,ads-serverId=httpServer,ou=servers,ads-directoryServiceId=default,ou=config
 ou: transports
 objectclass: organizationalUnit



Mime
View raw message