Permalink
Browse files

added cookie session handler to demo server

  • Loading branch information...
1 parent 84b730c commit 930fedf2e5bb645d182f3163dfa0b8ee23dc59ad @hofmeister committed Mar 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 server/src/main/java/com/vonhof/webbeans/demo/DemoServer.java
@@ -5,6 +5,7 @@
import com.vonhof.webi.FileRequestHandler;
import com.vonhof.webi.Webi;
import com.vonhof.webi.mvc.MVCRequestHandler;
+import com.vonhof.webi.session.CookieSessionHandler;
import com.vonhof.webi.websocket.SocketService;
import java.io.File;
import java.sql.SQLException;
@@ -22,6 +23,8 @@ public static void main( String[] args ) throws SQLException, Exception {
webi.addBean(server);
webi.add("/socket/data", new SocketService<DataClient>(DataClient.class));
+ webi.add("/", new CookieSessionHandler("DEMO"));
+
final MVCRequestHandler mvcHandler = webi.add("/rest/",new MVCRequestHandler());
mvcHandler.expose(new DataController());

0 comments on commit 930fedf

Please sign in to comment.