Changeset 923
- Timestamp:
- 2008-12-02 19:35:03 (4 years ago)
- Location:
- trunk/samples/kauri-runtime-sample
- Files:
-
- 5 added
- 1 deleted
- 3 edited
- 5 moved
-
kauri-runtime-sample-index/src/main/kauri/pages (added)
-
kauri-runtime-sample-index/src/main/kauri/pages/about..xml (added)
-
kauri-runtime-sample-index/src/main/kauri/pages/index.html.xml (moved) (moved from trunk/samples/kauri-runtime-sample/kauri-runtime-sample-index/src/main/kauri/templates/index.xml) (3 diffs)
-
kauri-runtime-sample-index/src/main/kauri/router.groovy (modified) (1 diff)
-
kauri-runtime-sample-index/src/main/kauri/spring/services.xml (moved) (moved from trunk/samples/kauri-runtime-sample/kauri-runtime-sample-index/src/main/kauri/spring/runtime-sample-index-beans.xml) (2 diffs)
-
kauri-runtime-sample-index/src/main/kauri/templates/layout (added)
-
kauri-runtime-sample-index/src/main/kauri/templates/layout/layout.xml (added)
-
kauri-runtime-sample-index/src/main/kauri/templates/layout/menu.xml (added)
-
kauri-runtime-sample-module1/src/main/java/org/kauriproject/samples/samplemodule1/MyThirdRestlet.java (modified) (1 diff)
-
kauri-runtime-sample-module1/src/main/kauri/spring/services.xml (moved) (moved from trunk/samples/kauri-runtime-sample/kauri-runtime-sample-module1/src/main/kauri/spring/runtime-sample-module1-beans.xml)
-
kauri-runtime-sample-module1/src/main/kauri/static (moved) (moved from trunk/samples/kauri-runtime-sample/kauri-runtime-sample-module1/src/main/kauri/resources)
-
kauri-runtime-sample-module2/src/main/java/org/kauriproject/samples/samplemodule1 (deleted)
-
kauri-runtime-sample-module2/src/main/kauri/spring/services.xml (moved) (moved from trunk/samples/kauri-runtime-sample/kauri-runtime-sample-module2/src/main/kauri/spring/runtime-sample-module2-beans.xml)
-
kauri.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/samples/kauri-runtime-sample/kauri-runtime-sample-index/src/main/kauri/pages/index.html.xml
r911 r923 1 1 <?xml version="1.0"?> 2 <html> 3 <head> 4 <title>Kauri runtime samples</title> 5 </head> 2 <html t:inherit="module:/templates/layout/layout.xml" 3 xmlns:t="http://kauriproject.org/template"> 6 4 7 < body>5 <t:block name="main"> 8 6 <h1>Kauri runtime samples</h1> 9 7 … … 15 13 functionality of the Kauri Runtime is that the Spring containers can also 16 14 export and import what we call <b>rest-services</b>. Rest-services can answer 17 to R eST-style requests (i.e. GET/POST/PUT/... on an URI-identified resource),15 to REST-style requests (i.e. GET/POST/PUT/... on an URI-identified resource), 18 16 not just for a single URI but an entire URI-space. These rest-services can 19 17 be wired between modules similar to classic Java 20 services, and can be mounted on public URI paths.</p> 18 services, and can be mounted on public URI paths to make them 19 available over HTTP.</p> 21 20 22 21 <h2>Things you can look at:</h2> … … 44 43 in Kauri.</p> 45 44 46 </ body>45 </t:block> 47 46 </html> -
trunk/samples/kauri-runtime-sample/kauri-runtime-sample-index/src/main/kauri/router.groovy
r748 r923 1 // To see some feedback in your console of when the routing is rebuild,2 // uncomment the following line3 //println("Building router")4 5 1 builder.router { 6 2 7 template(uri: "/", match: "equals", template: "module:/templates/index.xml", mediaType: "text/html")3 pages(uri: "", root: "pages") 8 4 9 5 } -
trunk/samples/kauri-runtime-sample/kauri-runtime-sample-index/src/main/kauri/spring/services.xml
r911 r923 21 21 service="org.kauriproject.template.service.TemplateService"/> 22 22 23 <kauri:export-restservice ref="router"/> 23 <kauri:export-restservice ref="main"/> 24 25 <kauri:import-restservice name="samples-common"/> 24 26 25 27 <kauri:import-restservice name="firstRestlet"/> … … 32 34 33 35 34 <bean id=" router" factory-bean="routingService" factory-method="createRouter">36 <bean id="main" factory-bean="routingService" factory-method="createRouter"> 35 37 <constructor-arg ref="restletContext"/> 36 38 <constructor-arg ref="module"/> -
trunk/samples/kauri-runtime-sample/kauri-runtime-sample-module1/src/main/java/org/kauriproject/samples/samplemodule1/MyThirdRestlet.java
r748 r923 16 16 17 17 public void handle(Request request, Response response) { 18 Reference reference = new Reference("module:/ resources/helloworld.txt");18 Reference reference = new Reference("module:/static/helloworld.txt"); 19 19 Response otherResponse = getContext().getClientDispatcher().get(reference); 20 20 Representation representation = otherResponse.getEntity(); -
trunk/samples/kauri-runtime-sample/kauri.xml
r440 r923 18 18 <modules> 19 19 20 <artifact id="routingModule" groupId="org.kauriproject" artifactId="kauri-routing-impl"> 20 <artifact id="routing" groupId="org.kauriproject" artifactId="kauri-routing-impl"/> 21 22 <artifact id="template" groupId="org.kauriproject" artifactId="kauri-template-service-impl"/> 23 24 <artifact id="blueprintcss" groupId="org.kauriproject" artifactId="kauri-blueprintcss"> 25 <mount name="main" path="/kauri/blueprintcss"/> 21 26 </artifact> 22 23 <artifact id="templateModule" groupId="org.kauriproject" artifactId="kauri-template-service-impl"> 27 28 <artifact id="samples.common" groupId="org.kauriproject" artifactId="kauri-samples-common"> 29 <inject-restservice name="blueprintcss" ref="blueprintcss:main"/> 30 31 <mount name="main" path="/samples/common"/> 24 32 </artifact> 25 33 … … 39 47 40 48 <artifact id="index" groupId="org.kauriproject" artifactId="kauri-runtime-sample-index"> 49 <inject-restservice name="samples-common" ref="samples.common:main"/> 41 50 <inject-restservice name="firstRestlet" ref="samplemodule1:firstRestlet"/> 42 51 <inject-restservice name="secondRestlet" ref="samplemodule1:secondRestlet"/> … … 45 54 <inject-restservice name="depTestRestlet2" ref="samplemodule2:depTestRestlet2"/> 46 55 47 <mount name=" router" path=""/>56 <mount name="main" path=""/> 48 57 </artifact> 49 58
Note: See TracChangeset
for help on using the changeset viewer.