@Extension @Symbol(value="locale") public class PluginImpl extends GlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfExtensionPoint.LegacyInstancesAreScopedToHudsonclazz| Constructor and Description |
|---|
PluginImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jsonObject) |
static PluginImpl |
get() |
protected XmlFile |
getConfigFile() |
String |
getSystemLocale() |
static void |
init() |
boolean |
isIgnoreAcceptLanguage() |
void |
load() |
static Locale |
parse(String s)
Parses a string like "ja_JP" into a
Locale object. |
void |
setIgnoreAcceptLanguage(boolean ignoreAcceptLanguage)
Sets whether the plugin should take user preferences into account.
|
void |
setSystemLocale(String systemLocale) |
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic static PluginImpl get()
protected XmlFile getConfigFile()
getConfigFile in class Descriptor<GlobalConfiguration>@Initializer(after=EXTENSIONS_AUGMENTED) public static void init() throws Exception
Exceptionpublic void load()
load in class Descriptor<GlobalConfiguration>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jsonObject)
throws Descriptor.FormException
configure in class GlobalConfigurationDescriptor.FormExceptionpublic boolean isIgnoreAcceptLanguage()
public String getSystemLocale()
public void setSystemLocale(String systemLocale)
public void setIgnoreAcceptLanguage(boolean ignoreAcceptLanguage)
ignoreAcceptLanguage - If true,
Ignore browser preference and force this language to all usersCopyright © 2016–2022. All rights reserved.