Mercurial Hosting > luan
comparison src/luan/host/WebHandler.java @ 1256:c147e2e877e3
allow subclassing of HttpServicer
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 19 Sep 2018 20:15:16 -0600 |
parents | 3d29033de2bf |
children | 382c444a6c77 |
comparison
equal
deleted
inserted
replaced
1255:4f571a974132 | 1256:c147e2e877e3 |
---|---|
163 private static LuanRef newSite(String dir,String domain) { | 163 private static LuanRef newSite(String dir,String domain) { |
164 LuanState luan = new LuanState(); | 164 LuanState luan = new LuanState(); |
165 LuanTable init = initLuan(luan,dir,domain); | 165 LuanTable init = initLuan(luan,dir,domain); |
166 | 166 |
167 String loggerRoot = (String)init.rawGet("logger_root"); | 167 String loggerRoot = (String)init.rawGet("logger_root"); |
168 LuanHandler luanHandler = new LuanHandler(luan,loggerRoot); | 168 LuanHandler luanHandler = new LuanHandler(luan,loggerRoot,null); |
169 NotFound notFoundHandler = new NotFound(luanHandler); | 169 NotFound notFoundHandler = new NotFound(luanHandler); |
170 | 170 |
171 Handler handler = luanHandler; | 171 Handler handler = luanHandler; |
172 handler = new IndexHandler(handler); | 172 handler = new IndexHandler(handler); |
173 handler = new ListHandler( handler, notFoundHandler ); | 173 handler = new ListHandler( handler, notFoundHandler ); |