Package io.jenkins.blueocean.i18n
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doDynamic
(org.kohsuke.stapler.StaplerRequest request) Get a localised resource bundle.
-
Constructor Details
-
BlueI18n
public BlueI18n()
-
-
Method Details
-
getUrlName
- Specified by:
getUrlName
in interfaceio.jenkins.blueocean.rest.ApiRoutable
- Specified by:
getUrlName
in interfaceio.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.
-