Class HttpResourceValidator


  • public class HttpResourceValidator
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void testResourceAvailable​(java.lang.String url, SimpleCredentials credentials)
      Checks that we can connect to provided URL with given credentials.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpResourceValidator

        public HttpResourceValidator()
    • Method Detail

      • testResourceAvailable

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