Package jetbrains.buildServer.http
Class HttpResourceValidator
- java.lang.Object
-
- jetbrains.buildServer.http.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
-
-
Constructor Summary
Constructors Constructor Description HttpResourceValidator()
-
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.
-
-
-
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
-
-