Package jetbrains.buildServer.http
Class HttpResourceValidator
- java.lang.Object
-
- jetbrains.buildServer.http.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 Summary
Constructors Constructor Description HttpResourceValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestResourceAvailable(String url, SimpleCredentials credentials)Checks that we can connect to provided URL with given credentials.
-
-
-
Method Detail
-
testResourceAvailable
public void testResourceAvailable(@NotNull String url, @Nullable SimpleCredentials credentials) throws IOExceptionChecks that we can connect to provided URL with given credentials.- Parameters:
url- http(s) url to resource- Throws:
IOException- if connection fails
-
-