Adding feature to allow controlling when and where the JNLP launch URL is exposed.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3348 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
stephenconnolly committed 2007-05-25 13:16:04 +00:00
1 parent 59f9b2fcfe
commit 476b13fcf4
10 files changed
+214 -15

No files matched your search

+6 -2
View File
@@ -189,6 +189,10 @@ public class Functions {
return Node.Mode.values();
}
public static Node.JNLPSecurityMode[] getJNLPSecurityModes() {
return Node.JNLPSecurityMode.values();
}
public static String getProjectListString(List<Project> projects) {
return Items.toNameList(projects);
}
@@ -196,7 +200,7 @@ public class Functions {
public static Object ifThenElse(boolean cond, Object thenValue, Object elseValue) {
return cond ? thenValue : elseValue;
}
public static String appendIfNotNull(String text, String suffix, String nullText) {
return text == null ? nullText : text + suffix;
}
@@ -271,7 +275,7 @@ public class Functions {
*
* @param noAutoRefresh
* On certain pages, like a page with forms, will have annoying interference
* with auto refresh. On those pages, disable auto-refresh.
* with auto refresh. On those pages, disable auto-refresh.
*/
public static void configureAutoRefresh(HttpServletRequest request, HttpServletResponse response, boolean noAutoRefresh) {
if(noAutoRefresh)