diff http/src/luan/modules/http/LuanHandler.java @ 517:8dcf9e12446b

add Luan.on_luan_close()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 27 May 2015 01:20:49 -0600
parents 2b9bc97f0439
children 8a217fe5b4f3
line wrap: on
line diff
--- a/http/src/luan/modules/http/LuanHandler.java	Tue May 26 20:59:05 2015 -0600
+++ b/http/src/luan/modules/http/LuanHandler.java	Wed May 27 01:20:49 2015 -0600
@@ -22,7 +22,7 @@
 		this.luan = luan;
 	}
 
-	public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) 
+	@Override public void handle(String target,Request baseRequest,HttpServletRequest request,HttpServletResponse response) 
 		throws IOException
 	{
 		if( target.endsWith("/") )
@@ -41,4 +41,16 @@
 	public void setWelcomeFile(String welcomeFile) {
 		this.welcomeFile = welcomeFile;
 	}
+
+	@Override protected void doStop() throws Exception {
+		luan.close();
+//System.out.println("qqqqqqqqqqqqqqqqqqqq doStop "+this);
+		super.doStop();
+	}
+/*
+	@Override public void destroy() {
+System.out.println("qqqqqqqqqqqqqqqqqqqq destroy "+this);
+		super.destroy();
+	}
+*/
 }