Class CachingHttpClient

    • Constructor Detail

    • Method Detail

      • emptyCache

        public void emptyCache()
      • execute

        public com.synopsys.integration.rest.response.Response execute​(com.synopsys.integration.rest.request.Request request)
                                                                throws com.synopsys.integration.exception.IntegrationException
        Specified by:
        execute in interface BlackDuckHttpClient
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • executeGetRequestIfModifiedSince

        public java.util.Optional<com.synopsys.integration.rest.response.Response> executeGetRequestIfModifiedSince​(com.synopsys.integration.rest.request.Request getRequest,
                                                                                                                    long timeToCheck)
                                                                                                             throws com.synopsys.integration.exception.IntegrationException,
                                                                                                                    java.io.IOException
        Specified by:
        executeGetRequestIfModifiedSince in interface BlackDuckHttpClient
        Throws:
        com.synopsys.integration.exception.IntegrationException
        java.io.IOException
      • attemptAuthentication

        public com.synopsys.integration.rest.response.Response attemptAuthentication()
                                                                              throws com.synopsys.integration.exception.IntegrationException
        Specified by:
        attemptAuthentication in interface BlackDuckHttpClient
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • extractErrorResponse

        public java.util.Optional<com.synopsys.integration.rest.response.ErrorResponse> extractErrorResponse​(java.lang.String responseContent)
        Specified by:
        extractErrorResponse in interface BlackDuckHttpClient
      • handleErrorResponse

        public void handleErrorResponse​(org.apache.http.client.methods.HttpUriRequest request,
                                        com.synopsys.integration.rest.response.Response response)
        Specified by:
        handleErrorResponse in interface BlackDuckHttpClient
      • throwExceptionForError

        public void throwExceptionForError​(com.synopsys.integration.rest.response.Response response)
                                    throws com.synopsys.integration.exception.IntegrationException
        Specified by:
        throwExceptionForError in interface BlackDuckHttpClient
        Throws:
        com.synopsys.integration.exception.IntegrationException