comparison src/luan/tools/WebShell.java @ 59:5c9cadd0acce

move standard calls from CmdLine to LuanState git-svn-id: https://luan-java.googlecode.com/svn/trunk@60 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 07 Jan 2013 03:36:28 +0000
parents 0c0f2b107099
children 59431bb8d0bf
comparison
equal deleted inserted replaced
58:d6c454b7f58c 59:5c9cadd0acce
23 23
24 public class WebShell extends HttpServlet { 24 public class WebShell extends HttpServlet {
25 private static final Logger logger = LoggerFactory.getLogger(WebShell.class); 25 private static final Logger logger = LoggerFactory.getLogger(WebShell.class);
26 26
27 protected LuanState newLuanState() throws LuanException { 27 protected LuanState newLuanState() throws LuanException {
28 return CmdLine.newStandardLuan(); 28 return LuanState.newStandard();
29 } 29 }
30 30
31 protected Object[] eval(LuanState luan,String cmd) throws LuanException { 31 protected Object[] eval(LuanState luan,String cmd) throws LuanException {
32 return CmdLine.eval(luan,cmd,"WebShell"); 32 return luan.eval(cmd,"WebShell");
33 } 33 }
34 34
35 protected void service(HttpServletRequest request,HttpServletResponse response) 35 protected void service(HttpServletRequest request,HttpServletResponse response)
36 throws ServletException, IOException 36 throws ServletException, IOException
37 { 37 {