hudson.plugins.locale
Class PluginImpl

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.plugins.locale.PluginImpl
All Implemented Interfaces:
hudson.model.Saveable

public class PluginImpl
extends hudson.Plugin

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class hudson.Plugin
NONE
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PluginImpl()
           
 
Method Summary
 void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jsonObject)
           
protected  hudson.XmlFile getConfigXml()
           
 java.lang.String getSystemLocale()
           
 boolean isIgnoreAcceptLanguage()
           
protected  void load()
           
static java.util.Locale parse(java.lang.String s)
          Parses a string like "ja_JP" into a Locale object.
 void setSystemLocale(java.lang.String systemLocale)
           
 void start()
           
 
Methods inherited from class hudson.Plugin
configure, doDynamic, postInitialize, save, setServletContext, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginImpl

public PluginImpl()
Method Detail

start

public void start()
           throws java.lang.Exception
Overrides:
start in class hudson.Plugin
Throws:
java.lang.Exception

load

protected void load()
             throws java.io.IOException
Overrides:
load in class hudson.Plugin
Throws:
java.io.IOException

getConfigXml

protected hudson.XmlFile getConfigXml()
Overrides:
getConfigXml in class hudson.Plugin

configure

public void configure(org.kohsuke.stapler.StaplerRequest req,
                      net.sf.json.JSONObject jsonObject)
               throws java.io.IOException,
                      javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.Plugin
Throws:
java.io.IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException

isIgnoreAcceptLanguage

public boolean isIgnoreAcceptLanguage()

getSystemLocale

public java.lang.String getSystemLocale()

setSystemLocale

public void setSystemLocale(java.lang.String systemLocale)
                     throws java.io.IOException
Throws:
java.io.IOException

parse

public static java.util.Locale parse(java.lang.String s)
Parses a string like "ja_JP" into a Locale object.



Copyright © 2009. All Rights Reserved.