| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package javax.faces.internal; |
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
public abstract class FacesConfigOptions { |
| 23 | |
|
| 24 | |
private static String configFiles; |
| 25 | |
|
| 26 | 1 | private static boolean savingStateInClient = false; |
| 27 | |
|
| 28 | |
private static final String DEFAULT_DEFAULT_SUFFIX = ".jsp"; |
| 29 | |
|
| 30 | 1 | private static String defaultSuffix = DEFAULT_DEFAULT_SUFFIX; |
| 31 | |
|
| 32 | |
private static String lifecycleId; |
| 33 | |
|
| 34 | |
private static String[] javascriptNotPermittedPath; |
| 35 | |
|
| 36 | 1 | private static boolean compressState = false; |
| 37 | |
|
| 38 | 1 | private static boolean defaultGridAsync = true; |
| 39 | |
|
| 40 | 1 | private static int gridFirstRenderRowCount = 50; |
| 41 | |
|
| 42 | |
private static final String DEFAULT_LAYOUT_PATH = "/layout/layout.html"; |
| 43 | |
|
| 44 | 1 | private static String defaultLayoutPath = DEFAULT_LAYOUT_PATH; |
| 45 | |
|
| 46 | 1 | private static String redirectUrl = null; |
| 47 | |
|
| 48 | 0 | protected FacesConfigOptions() { |
| 49 | 0 | } |
| 50 | |
|
| 51 | |
public static boolean isSavingStateInClient() { |
| 52 | 0 | return savingStateInClient; |
| 53 | |
} |
| 54 | |
|
| 55 | |
public static void setSavingStateInClient(boolean inClient) { |
| 56 | 0 | savingStateInClient = inClient; |
| 57 | 0 | } |
| 58 | |
|
| 59 | |
public static String getConfigFiles() { |
| 60 | 1 | return configFiles; |
| 61 | |
} |
| 62 | |
|
| 63 | |
public static void setConfigFiles(String files) { |
| 64 | 1 | configFiles = files; |
| 65 | 1 | } |
| 66 | |
|
| 67 | |
public static String getDefaultSuffix() { |
| 68 | 42 | return defaultSuffix; |
| 69 | |
} |
| 70 | |
|
| 71 | |
public static void setDefaultSuffix(String suffix) { |
| 72 | 7 | defaultSuffix = suffix; |
| 73 | 7 | } |
| 74 | |
|
| 75 | |
public static String getLifecycleId() { |
| 76 | 10 | return lifecycleId; |
| 77 | |
} |
| 78 | |
|
| 79 | |
public static void setLifecycleId(String id) { |
| 80 | 2 | lifecycleId = id; |
| 81 | 2 | } |
| 82 | |
|
| 83 | |
public static String[] getJavascriptNotPermittedPath() { |
| 84 | 24 | return javascriptNotPermittedPath; |
| 85 | |
} |
| 86 | |
|
| 87 | |
public static void setJavascriptNotPermittedPath(String[] notAllowedPath) { |
| 88 | 9 | javascriptNotPermittedPath = notAllowedPath; |
| 89 | 9 | } |
| 90 | |
|
| 91 | |
public static boolean getCompressState() { |
| 92 | 8 | return compressState; |
| 93 | |
} |
| 94 | |
|
| 95 | |
public static void setCompressState(boolean isCompress) { |
| 96 | 2 | compressState = isCompress; |
| 97 | 2 | } |
| 98 | |
|
| 99 | |
public static boolean isDefaultGridAsync() { |
| 100 | 0 | return defaultGridAsync; |
| 101 | |
} |
| 102 | |
|
| 103 | |
public static void setDefaultGridAsync(boolean defaultGridAsync) { |
| 104 | 0 | FacesConfigOptions.defaultGridAsync = defaultGridAsync; |
| 105 | 0 | } |
| 106 | |
|
| 107 | |
public static int getGridFirstRenderRowCount() { |
| 108 | 0 | return gridFirstRenderRowCount; |
| 109 | |
} |
| 110 | |
|
| 111 | |
public static void setGridFirstRenderRowCount(int gridFirstRenderRowCount) { |
| 112 | 0 | FacesConfigOptions.gridFirstRenderRowCount = gridFirstRenderRowCount; |
| 113 | 0 | } |
| 114 | |
|
| 115 | |
public static String getDefaultLayoutPath() { |
| 116 | 0 | return defaultLayoutPath; |
| 117 | |
} |
| 118 | |
|
| 119 | |
public static void setDefaultLayoutPath(String defaultLayoutPath) { |
| 120 | 0 | FacesConfigOptions.defaultLayoutPath = defaultLayoutPath; |
| 121 | 0 | } |
| 122 | |
|
| 123 | |
public static String getRedirectUrl() { |
| 124 | 1 | return redirectUrl; |
| 125 | |
} |
| 126 | |
|
| 127 | |
public static void setRedirectUrl(String redirectUrl) { |
| 128 | 2 | FacesConfigOptions.redirectUrl = redirectUrl; |
| 129 | 2 | } |
| 130 | |
|
| 131 | |
public static void clear() { |
| 132 | 1340 | configFiles = null; |
| 133 | 1340 | savingStateInClient = false; |
| 134 | 1340 | defaultSuffix = DEFAULT_DEFAULT_SUFFIX; |
| 135 | 1340 | lifecycleId = null; |
| 136 | 1340 | javascriptNotPermittedPath = null; |
| 137 | 1340 | compressState = false; |
| 138 | 1340 | defaultGridAsync = true; |
| 139 | 1340 | gridFirstRenderRowCount = 50; |
| 140 | 1340 | defaultLayoutPath = DEFAULT_LAYOUT_PATH; |
| 141 | 1340 | redirectUrl = null; |
| 142 | 1340 | } |
| 143 | |
|
| 144 | |
} |