litesoft
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
package org.litesoft.ddt; import org.litesoft.html.*; import org.litesoft.jetty.*; import org.litesoft.template.*; import org.litesoft.utils.*; public final class Main { private static final String[] ADDITIONAL_MIME_TYPES = { // "txt", "text/plain", // "bin", "application/octet-stream", }; public static void main( String[] args ) throws Exception { String zHTML = FileUtils.loadTextFileAsString( Main.class.getClassLoader().getResourceAsStream( "index.html" ), "\n" ); System.exit( new EmbeddedJetty( new PortServlets( 8088, new ClientForwardServlet( 8888 ), "/*" ), new PortServlets( 8888, new DeviceDesktopTestServlet( new IndexHtmlGenerator( Template.from( zHTML ) ) ), "/*", ADDITIONAL_MIME_TYPES ) ).run() ); } } |
Commits for litesoft/trunk/DeviceDesktopTest/src/org/litesoft/ddt/Main.java
Revision | Author | Commited | Message |
---|---|---|---|
961 Diff | GeorgeS | Fri 01 Aug, 2014 03:13:31 +0000 | Externalization Work. |
950 Diff | GeorgeS | Thu 19 Jun, 2014 17:57:04 +0000 | New Lines |
928 Diff | GeorgeS | Sun 30 Mar, 2014 19:34:22 +0000 | Introduction of Template |
927 Diff | GeorgeS | Mon 17 Mar, 2014 03:58:40 +0000 | Template system and index.html as a resource... |
924 Diff | GeorgeS | Fri 14 Mar, 2014 22:02:56 +0000 | Drop IWS |
923 Diff | GeorgeS | Fri 21 Feb, 2014 00:03:57 +0000 | Multi-Port Jetty |
922 Diff | GeorgeS | Tue 18 Feb, 2014 16:18:01 +0000 | Mini App ready for packaging... |
920 | GeorgeS | Sun 16 Feb, 2014 19:06:51 +0000 | DDT w/ Jetty |