Class RateLimitedCall

java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.RateLimitedCall

public class RateLimitedCall extends Object
Represents a rate-limited HTTP call to the NVD API.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.hc.client5.http.async.methods.SimpleHttpResponse
     
    private final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RateLimitedCall(org.apache.hc.client5.http.async.methods.SimpleHttpResponse response, int startIndex)
    Constructs a new RateLimitedCall.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hc.client5.http.async.methods.SimpleHttpResponse
    Returns the HTTP response.
    int
    Returns the start index for pagination.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • response

      private final org.apache.hc.client5.http.async.methods.SimpleHttpResponse response
    • startIndex

      private final int startIndex
  • Constructor Details

    • RateLimitedCall

      public RateLimitedCall(org.apache.hc.client5.http.async.methods.SimpleHttpResponse response, int startIndex)
      Constructs a new RateLimitedCall.
      Parameters:
      response - the HTTP response
      startIndex - the start index for pagination
  • Method Details

    • getResponse

      public org.apache.hc.client5.http.async.methods.SimpleHttpResponse getResponse()
      Returns the HTTP response.
      Returns:
      the response
    • getStartIndex

      public int getStartIndex()
      Returns the start index for pagination.
      Returns:
      the start index