Class ResultContainer<V>
java.lang.Object
io.jenkins.plugins.restlistparam.model.ResultContainer<V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()booleanbooleanbooleanvoidsetErrorCause(String errorCause) voidsetErrorDetails(FetchErrorDetails errorDetails) voidsetErrorMsg(String errorMsg) voidsetNoValues(String errorMsg) Records that the response was fetched and parsed fine but yielded no values.voidsetPageLimitReached(boolean pageLimitReached) voidsetPagesFetched(int pagesFetched) voidsetTimedOut(boolean timedOut) void
-
Constructor Details
-
ResultContainer
-
-
Method Details
-
setErrorMsg
-
setNoValues
Records that the response was fetched and parsed fine but yielded no values. Unlike other errors, this may be an expected outcome (seeallowEmptyValue). -
isNoValues
public boolean isNoValues() -
getErrorMsg
-
setValue
-
getValue
-
getPagesFetched
public int getPagesFetched()- Returns:
- How many pages were fetched to produce this result (1 without pagination)
-
setPagesFetched
public void setPagesFetched(int pagesFetched) -
isPageLimitReached
public boolean isPageLimitReached()- Returns:
- Whether pagination stopped at the page limit while a next page was still available
-
setPageLimitReached
public void setPageLimitReached(boolean pageLimitReached) -
getErrorDetails
- Returns:
- Request metadata of the failure, when the error came from fetching
-
setErrorDetails
-
getErrorCause
- Returns:
- The HTTP status code or the exception's simple name behind the error, if known
-
setErrorCause
-
isTimedOut
public boolean isTimedOut()- Returns:
- Whether the error is that the fetch ran out of time
-
setTimedOut
public void setTimedOut(boolean timedOut)
-