Class UrlProber
java.lang.Object
net.adoptopenjdk.icedteaweb.resources.initializer.UrlProber
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static VersionIdgetJnlpVersionHeader(CloseableConnection connection) (package private) static UrlRequestResultgetUrlResponseCodeWithRedirectionResult(URL url, Map<String, String> requestProperties, HttpMethod requestMethod) Connects to the given URL, and grabs a response code and redirection if the URL uses the HTTP protocol, or returns an arbitrary valid HTTP response code.
-
Field Details
-
LOG
-
-
Constructor Details
-
UrlProber
UrlProber()
-
-
Method Details
-
getUrlResponseCodeWithRedirectionResult
static UrlRequestResult getUrlResponseCodeWithRedirectionResult(URL url, Map<String, String> requestProperties, HttpMethod requestMethod) throws IOExceptionConnects to the given URL, and grabs a response code and redirection if the URL uses the HTTP protocol, or returns an arbitrary valid HTTP response code.- Returns:
- the response code if HTTP connection and redirection value, or HttpURLConnection.HTTP_OK and null if not.
- Throws:
IOException- if an I/O exception occurs.
-
getJnlpVersionHeader
-