implemented #152.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1132 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2006-11-16 16:29:56 +00:00
1 parent 4de81f1eb3
commit a2b9eaee30
3 files changed
+51 -3

No files matched your search

+6
View File
@@ -170,6 +170,12 @@ public class Functions {
return null;
}
public static String getCookie(HttpServletRequest req,String name, String defaultValue) {
Cookie c = getCookie(req, name);
if(c==null || c.getValue()==null) return defaultValue;
return c.getValue();
}
/**
* Creates a sub map by using the given range (both ends inclusive).
*/