Class FetchErrorDetails

java.lang.Object
io.jenkins.plugins.restlistparam.model.FetchErrorDetails

public final class FetchErrorDetails extends Object
Request metadata of a failed fetch, shown to users who can configure the job. It never holds the response body, credentials, header values or the URL's query string and user info.
  • Constructor Details

    • FetchErrorDetails

      public FetchErrorDetails(String url, Integer page, String cause, long durationMs)
      Parameters:
      url - The requested URL; it is stored without query string, fragment and user info
      page - The page on which the fetch failed, or null when the failure is not tied to a page
      cause - The HTTP status code or the exception's simple name, or null when there is neither
      durationMs - How long the fetch took until it failed
  • Method Details

    • sanitizeUrl

      public static String sanitizeUrl(String url)
      Returns:
      url without query string, fragment and user info
    • getUrl

      public String getUrl()
    • getPage

      public Integer getPage()
    • getCause

      public String getCause()
    • getDurationMs

      public long getDurationMs()