diff src/luan/modules/http/LuanDomainHandler.java @ 1333:25746915a241

merge Luan and LuanState
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Feb 2019 22:33:40 -0700
parents 11b7e11f9ed5
children 7483108154bb
line wrap: on
line diff
--- a/src/luan/modules/http/LuanDomainHandler.java	Tue Feb 12 21:50:26 2019 -0700
+++ b/src/luan/modules/http/LuanDomainHandler.java	Tue Feb 12 22:33:40 2019 -0700
@@ -4,7 +4,7 @@
 import luan.webserver.Response;
 import luan.webserver.Handler;
 import luan.webserver.handlers.DomainHandler;
-import luan.LuanState;
+import luan.Luan;
 import luan.LuanTable;
 import luan.LuanCloner;
 import luan.LuanException;
@@ -13,26 +13,26 @@
 
 public class LuanDomainHandler implements Handler, DomainHandler.Factory {
 
-	private final LuanState luanInit;
+	private final Luan luanInit;
 	private final DomainHandler domainHandler = new DomainHandler(this);
 
-	public LuanDomainHandler(LuanState luanInit) {
+	public LuanDomainHandler(Luan luanInit) {
 		LuanCloner cloner = new LuanCloner(LuanCloner.Type.COMPLETE);
-		this.luanInit = (LuanState)cloner.clone(luanInit);
+		this.luanInit = (Luan)cloner.clone(luanInit);
 	}
 
 	@Override public Handler newHandler(String domain) {
-		LuanState luan = newLuan(domain);
+		Luan luan = newLuan(domain);
 		return new LuanHandler(luan);
 	}
 
-	protected void newLoggerRepository(LuanState luan) throws LuanException {
+	protected void newLoggerRepository(Luan luan) throws LuanException {
 		Log4j.newLoggerRepository(luan);
 	}
 
-	protected LuanState newLuan(String domain) {
+	protected Luan newLuan(String domain) {
 		LuanCloner cloner = new LuanCloner(LuanCloner.Type.COMPLETE);
-		LuanState luan = (LuanState)cloner.clone(luanInit);
+		Luan luan = (Luan)cloner.clone(luanInit);
 		try {
 			newLoggerRepository(luan);
 			LuanTable Http = (LuanTable)luan.require("luan:http/Http.luan");