mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 16:45:58 +00:00
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:
1 parent
59f9b2fcfe
commit
476b13fcf4
10 files changed
+214
-15
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user