Mercurial Hosting > luan
changeset 227:c0f87c1ba99f
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@228 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 23 Jul 2014 03:50:57 +0000 |
parents | 392105b660d7 |
children | 7580379cdc79 |
files | dist/luan-core-trunk.jar dist/luan-logging-trunk.jar dist/luan-web-trunk.jar web/src/luan/modules/web/HttpLuan.java |
diffstat | 4 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
diff -r 392105b660d7 -r c0f87c1ba99f dist/luan-core-trunk.jar Binary file dist/luan-core-trunk.jar has changed
diff -r 392105b660d7 -r c0f87c1ba99f dist/luan-logging-trunk.jar Binary file dist/luan-logging-trunk.jar has changed
diff -r 392105b660d7 -r c0f87c1ba99f dist/luan-web-trunk.jar Binary file dist/luan-web-trunk.jar has changed
diff -r 392105b660d7 -r c0f87c1ba99f web/src/luan/modules/web/HttpLuan.java --- a/web/src/luan/modules/web/HttpLuan.java Tue Jul 22 06:23:13 2014 +0000 +++ b/web/src/luan/modules/web/HttpLuan.java Wed Jul 23 03:50:57 2014 +0000 @@ -151,19 +151,19 @@ } }; tbl.put( "headers", headers ); - tbl.put( "method", new LuanProperty(){ public Object get() { + tbl.put( "method", new LuanProperty() { public Object get() { return request.getMethod(); } } ); - tbl.put( "servlet_path", new LuanProperty(){ public Object get() { + tbl.put( "servlet_path", new LuanProperty() { public Object get() { return request.getServletPath(); } } ); - tbl.put( "server_name", new LuanProperty(){ public Object get() { + tbl.put( "server_name", new LuanProperty() { public Object get() { return request.getServerName(); } } ); - tbl.put( "current_url", new LuanProperty(){ public Object get() { + tbl.put( "current_url", new LuanProperty() { public Object get() { return getCurrentURL(request); } } ); - tbl.put( "remote_address", new LuanProperty(){ public Object get() { + tbl.put( "remote_address", new LuanProperty() { public Object get() { return request.getRemoteAddr(); } } ); LuanTable cookies = new AbstractLuanTable() { @@ -239,7 +239,7 @@ } }; tbl.put( "headers", headers ); - tbl.put( "content_type", new LuanProperty(){ + tbl.put( "content_type", new LuanProperty() { @Override public Object get() { return response.getContentType(); } @@ -247,7 +247,7 @@ response.setContentType(string(value)); return true; } } ); - tbl.put( "character_encoding", new LuanProperty(){ + tbl.put( "character_encoding", new LuanProperty() { @Override public Object get() { return response.getCharacterEncoding(); }