Class HttpResourceValidator


  • public class HttpResourceValidator
    extends Object
    Performs basic validation of the URL: checks for resource availability and validates provided credentials. In case of SSL disables validation of certificates during URL verification.
    Since:
    9.0
    • Constructor Detail

      • HttpResourceValidator

        public HttpResourceValidator()
    • Method Detail

      • testResourceAvailable

        public void testResourceAvailable​(@NotNull
                                          String url,
                                          @Nullable
                                          SimpleCredentials credentials)
                                   throws IOException
        Checks that we can connect to provided URL with given credentials.
        Parameters:
        url - http(s) url to resource
        Throws:
        IOException - if connection fails