Package io.jenkins.blueocean.preload
Class RESTFetchPreloader
java.lang.Object
io.jenkins.blueocean.commons.PageStatePreloader
io.jenkins.blueocean.preload.RESTFetchPreloader
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
BlueRunChangesetPreloader
,FavoritesStatePreloader
,PipelineActivityStatePreloader
,PipelineBranchRunStatePreloader
,PipelineStatePreloader
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public abstract class RESTFetchPreloader
extends io.jenkins.blueocean.commons.PageStatePreloader
REST prefetch data preloader.
Pre-populates the page with REST data, allowing the client side Fetch
module (see Fetch
module in the @jenkins-cd/blueocean-core-js NPM packages
)
to avoid the REST API call overhead.
Create implementations of this class (and annotate with @Extension
) for data that
we know is going to be needed by the page.
- Author:
- tom.fennelly@gmail.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RESTFetchPreloader.FetchData
getFetchData
(BlueUrlTokenizer blueUrl) final String
final String
Methods inherited from class io.jenkins.blueocean.commons.PageStatePreloader
all
-
Constructor Details
-
RESTFetchPreloader
public RESTFetchPreloader()
-
-
Method Details
-
getStatePropertyPath
- Specified by:
getStatePropertyPath
in classio.jenkins.blueocean.commons.PageStatePreloader
-
getStateJson
- Specified by:
getStateJson
in classio.jenkins.blueocean.commons.PageStatePreloader
-
getFetchData
-