Class RateLimitedCall
java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.RateLimitedCall
Represents a rate-limited HTTP call to the NVD API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hc.client5.http.async.methods.SimpleHttpResponseprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionRateLimitedCall(org.apache.hc.client5.http.async.methods.SimpleHttpResponse response, int startIndex) Constructs a new RateLimitedCall. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.async.methods.SimpleHttpResponseReturns the HTTP response.intReturns the start index for pagination.
-
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 responsestartIndex- 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
-