public class PluginImpl
extends hudson.Plugin
| Constructor and Description |
|---|
PluginImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jsonObject) |
protected hudson.XmlFile |
getConfigXml() |
String |
getSystemLocale() |
boolean |
isIgnoreAcceptLanguage() |
protected 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) |
void |
start() |
public void start()
throws Exception
start in class hudson.PluginExceptionprotected void load()
throws IOException
load in class hudson.PluginIOExceptionprotected hudson.XmlFile getConfigXml()
getConfigXml in class hudson.Pluginpublic void configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jsonObject)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
configure in class hudson.PluginIOExceptionjavax.servlet.ServletExceptionhudson.model.Descriptor.FormExceptionpublic boolean isIgnoreAcceptLanguage()
public String getSystemLocale()
public void setSystemLocale(String systemLocale) throws IOException
IOExceptionpublic void setIgnoreAcceptLanguage(boolean ignoreAcceptLanguage)
ignoreAcceptLanguage - If true,
Ignore browser preference and force this language to all usersCopyright © 2016–2018. All rights reserved.