Package org.kohsuke.stapler
Class LocaleDrivenResourceProvider
java.lang.Object
org.kohsuke.stapler.LocaleDrivenResourceProvider
Service provider interface allowing to hook into webapp resource lookup.
This cannot be made a property of WebApp as other behavior customizations, as webapp resource lookup is done before we have StaplerRequest2/StaplerResponse2.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LocaleDrivenResourceProvider
public LocaleDrivenResourceProvider()
-
-
Method Details
-
lookup
Returns the URL corresponding to the specified resource path. The path can take two forms:- A full URL represented as string. In Jenkins this is typically plugin webapp resources.
- A path with leading slash. These are actual webapp resources, with that being the implicit base directory.
- Parameters:
path
- the path to the resource- Returns:
- the URL to the file, if it is to be overridden, null otherwise.
-