diff src/luan/lib/HttpLib.java @ 88:6ca02b188dba

add LuanBit to clean up code; add repr(); git-svn-id: https://luan-java.googlecode.com/svn/trunk@89 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 27 Feb 2013 23:50:32 +0000
parents 6db8f286fa6c
children 8ef2d6701541
line wrap: on
line diff
--- a/src/luan/lib/HttpLib.java	Wed Feb 27 19:42:09 2013 +0000
+++ b/src/luan/lib/HttpLib.java	Wed Feb 27 23:50:32 2013 +0000
@@ -24,7 +24,7 @@
 		PackageLib.require(luan,NAME);
 		Object fn = luan.get(HttpLib.FN_NAME);
 		if( !(fn instanceof LuanFunction) )
-			throw new LuanException( luan, LuanElement.JAVA, "function '"+HttpLib.FN_NAME+"' not defined" );
+			throw luan.JAVA.exception( "function '"+HttpLib.FN_NAME+"' not defined" );
 	}
 
 	public static void service(LuanState luan,HttpServletRequest request,HttpServletResponse response)
@@ -49,7 +49,7 @@
 		module.put("parameters",parameters);
 		module.put("parameter_lists",parameter_lists);
 
-		luan.call(fn,LuanElement.JAVA,FN_NAME);
+		luan.JAVA.call(fn,FN_NAME);
 	}
 /*
 	private final HttpServletRequest request;