Package dev.sigstore.http
Class UnsuccessfulResponseHandler
- java.lang.Object
-
- dev.sigstore.http.UnsuccessfulResponseHandler
-
- All Implemented Interfaces:
com.google.api.client.http.HttpUnsuccessfulResponseHandler
public class UnsuccessfulResponseHandler extends java.lang.Object implements com.google.api.client.http.HttpUnsuccessfulResponseHandlerHandler for 429 and standard server errors 5XX. Objects of this class are single use. A new instance should be created for each request (but this is handled inHttpClients.newRequestFactory(HttpParams)).This implementation is a bit weird, but hopefully we can just move to grpc for rekor when ready.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleResponse(com.google.api.client.http.HttpRequest request, com.google.api.client.http.HttpResponse response, boolean supportsRetry)static UnsuccessfulResponseHandlernewUnsuccessfulResponseHandler()
-
-
-
Method Detail
-
newUnsuccessfulResponseHandler
public static UnsuccessfulResponseHandler newUnsuccessfulResponseHandler()
-
handleResponse
public boolean handleResponse(com.google.api.client.http.HttpRequest request, com.google.api.client.http.HttpResponse response, boolean supportsRetry) throws java.io.IOException- Specified by:
handleResponsein interfacecom.google.api.client.http.HttpUnsuccessfulResponseHandler- Throws:
java.io.IOException
-
-