Class BlueI18n

java.lang.Object
io.jenkins.blueocean.i18n.BlueI18n
All Implemented Interfaces:
ExtensionPoint, io.jenkins.blueocean.rest.ApiRoutable, io.jenkins.blueocean.Routable

@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class BlueI18n extends Object implements io.jenkins.blueocean.rest.ApiRoutable
Internationalization REST (ish) API for Blue Ocean.
Author:
tom.fennelly@gmail.com
  • Constructor Details

    • BlueI18n

      public BlueI18n()
  • Method Details

    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface io.jenkins.blueocean.rest.ApiRoutable
      Specified by:
      getUrlName in interface io.jenkins.blueocean.Routable
    • doDynamic

      public org.kohsuke.stapler.HttpResponse doDynamic(org.kohsuke.stapler.StaplerRequest request)
      Get a localised resource bundle.

      URL: blueocean-i18n/$PLUGIN_NAME/$PLUGIN_VERSION/$BUNDLE_NAME/$LOCALE (where $LOCALE is optional).

      Parameters:
      request - The request.
      Returns:
      The JSON response.