public abstract class PageStatePreloader extends Object implements ExtensionPoint
Allows the loading page's JavaScript blueocean global scope to be pre-populated with data that we know the page is going to need, thereby providing a mechanism for eliminating the request overhead for that data.
ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
PageStatePreloader() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionList<PageStatePreloader> |
all() |
abstract String |
getStateJson()
Get the state JSON to be set in the page's JavaScript blueocean global scope.
|
abstract String |
getStatePropertyPath()
Get the JavaScript object graph path at which the state is to be stored.
|
@Nonnull public abstract String getStatePropertyPath()
@CheckForNull public abstract String getStateJson()
null if no data is to be set of this page.public static ExtensionList<PageStatePreloader> all()
Copyright © 2016–2020. All rights reserved.