Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2888 - in development/main/test/components/http: . demo demo/src demo/src/main demo/src/main/net demo/src/main/net/dpml demo/src/main/net/dpml/http impl

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2888 - in development/main/test/components/http: . demo demo/src demo/src/main demo/src/main/net demo/src/main/net/dpml demo/src/main/net/dpml/http impl
  • Date: Fri, 17 Jun 2005 20:40:24 -0400

Author: mcconnell AT dpml.net
Date: Fri Jun 17 20:40:24 2005
New Revision: 2888

Added:
development/main/test/components/http/demo/ (props changed)
development/main/test/components/http/demo/build.xml
development/main/test/components/http/demo/src/
development/main/test/components/http/demo/src/main/
development/main/test/components/http/demo/src/main/net/
development/main/test/components/http/demo/src/main/net/dpml/
development/main/test/components/http/demo/src/main/net/dpml/http/
development/main/test/components/http/demo/src/main/net/dpml/http/Demo.java
Modified:
development/main/test/components/http/impl/build.xml
development/main/test/components/http/index.xml
Log:
Add the http demo part.

Added: development/main/test/components/http/demo/build.xml
==============================================================================
--- (empty file)
+++ development/main/test/components/http/demo/build.xml Fri Jun 17
20:40:24 2005
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004 Niclas Hedman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.dpml.net/central/about/legal/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<project name="dpml-http-demo" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
xmlns:x="plugin:dpml/magic/dpml-magic-core" >
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+ <target name="build" depends="standard.build">
+
+ <types xmlns="plugin:dpml/composition/dpml-composition-builder">
+ <type class="net.dpml.http.Demo" threadsafe="true"/>
+ </types>
+
+ <component xmlns="plugin:dpml/composition/dpml-composition-builder"
+ type="net.dpml.http.Demo"
+ name="demo">
+ <parts>
+ <component type="net.dpml.http.impl.HttpServerImpl" name="server">
+ <context>
+ <entry key="trace" value="false"/>
+ <entry key="anonymous" value="false"/>
+ <entry key="gracefulStop" value="false"/>
+ <entry key="requestsPerGC" value="100"/>
+ </context>
+ </component>
+ <component name="context" type="net.dpml.http.impl.HttpContextImpl" >
+ <context>
+ <entry key="name" value="context"/>
+ <reference key="server" uri="parts:server"/>
+ <value key="tempDirectory">
+ <param class="java.io.File" value="urn:system:temp.dir"/>
+ <param value="http/context"/>
+ </value>
+ <component key="requestLog"
type="net.dpml.http.impl.NcsaRequestLog">
+ <context>
+ <entry key="filename" value="static_request.log"/>
+ <entry key="append" value="true"/>
+ <entry key="extended" value="true"/>
+ </context>
+ </component>
+ </context>
+ </component>
+ <component name="notFoundHandler"
type="net.dpml.http.impl.NotFoundHandler">
+ <context>
+ <entry key="name" value="not-found-handler"/>
+ <reference key="httpContext" uri="parts:context"/>
+ </context>
+ </component>
+ </parts>
+ </component>
+
+ </target>
+
+</project>
+

Added:
development/main/test/components/http/demo/src/main/net/dpml/http/Demo.java
==============================================================================
--- (empty file)
+++
development/main/test/components/http/demo/src/main/net/dpml/http/Demo.java
Fri Jun 17 20:40:24 2005
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2005 Stephen McConnell
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package net.dpml.http;
+
+import net.dpml.logging.Logger;
+
+import net.dpml.http.impl.*;
+
+public class Demo
+{
+ public interface Parts
+ {
+ HttpServerImpl getServer();
+ NotFoundHandler getNotFoundHandler();
+ HttpContextImpl getContext();
+ }
+
+ private Logger m_logger;
+ private Parts m_parts;
+
+ public void Demo( Logger logger, Parts parts )
+ {
+ m_logger = logger;
+ m_parts = parts;
+ }
+}
+

Modified: development/main/test/components/http/impl/build.xml
==============================================================================
--- development/main/test/components/http/impl/build.xml (original)
+++ development/main/test/components/http/impl/build.xml Fri Jun 17
20:40:24 2005
@@ -55,6 +55,7 @@
<type class="net.dpml.http.impl.SystemMimeTypes" threadsafe="true"/>
<type class="net.dpml.http.impl.WebApplicationContext"
threadsafe="true"/>
</types>
+
</target>

</project>

Modified: development/main/test/components/http/index.xml
==============================================================================
--- development/main/test/components/http/index.xml (original)
+++ development/main/test/components/http/index.xml Fri Jun 17 20:40:24
2005
@@ -74,6 +74,21 @@
</plugins>
</project>

+ <project basedir="demo">
+ <info>
+ <group>dpml/planet/http</group>
+ <name>dpml-http-demo</name>
+ <version>1.0.0</version>
+ <status>SNAPSHOT</status>
+ </info>
+ <dependencies>
+ <include key="dpml-http-impl"/>
+ </dependencies>
+ <plugins>
+ <include key="dpml-composition-builder" runtime="false"/>
+ </plugins>
+ </project>
+
<resource>
<info>
<group>jetty</group>



  • svn commit: r2888 - in development/main/test/components/http: . demo demo/src demo/src/main demo/src/main/net demo/src/main/net/dpml demo/src/main/net/dpml/http impl, mcconnell, 06/17/2005

Archive powered by MHonArc 2.6.24.

Top of Page