Class ContinuationTokenPagination
java.lang.Object
hudson.model.AbstractDescribableImpl<Pagination>
io.jenkins.plugins.restlistparam.model.Pagination
io.jenkins.plugins.restlistparam.model.ContinuationTokenPagination
- All Implemented Interfaces:
Describable<Pagination>,Serializable
Reads a continuation token from the Json body and requests the configured endpoint again with the token
as a query parameter, as Nexus 3 (
continuationToken) or offset based APIs (nextPageStart) do.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.jenkins.plugins.restlistparam.model.Pagination
Pagination.NextPage, Pagination.Page, Pagination.PaginationDescriptor -
Field Summary
Fields inherited from class io.jenkins.plugins.restlistparam.model.Pagination
DEFAULT_MAX_PAGES, MAX_MAX_PAGES, MIN_MAX_PAGES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionincompatibilityWith(MimeType mimeType) The error that makes this strategy unusable withmimeTypeat fetch time, if any.next(Pagination.Page page) Finds the next page to request afterpage.Runs the same checks as the configuration form's field checks, for settings that were never saved.Methods inherited from class io.jenkins.plugins.restlistparam.model.Pagination
checkMaxPages, getEffectiveMaxPages, getMaxPages, setMaxPagesMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ContinuationTokenPagination
-
-
Method Details
-
getTokenExpression
-
getQueryParameter
-
next
Description copied from class:PaginationFinds the next page to request afterpage.- Specified by:
nextin classPagination- Parameters:
page- The page just fetched- Returns:
- The next page, or empty when
pageis the last one
-
incompatibilityWith
Description copied from class:PaginationThe error that makes this strategy unusable withmimeTypeat fetch time, if any. Configuration mistakes that can still be fetched (such as an out-of-range page limit) are not errors here.- Overrides:
incompatibilityWithin classPagination
-
validate
Description copied from class:PaginationRuns the same checks as the configuration form's field checks, for settings that were never saved.- Overrides:
validatein classPagination- Parameters:
mimeType- The parameter's MIME type- Returns:
- The first failing check, or
FormValidation.ok()
-