Class UrlProber
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.resources.initializer.UrlProber
-
class UrlProber extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UrlProber()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static VersionIdgetJnlpVersionHeader(CloseableConnection connection)(package private) static UrlRequestResultgetUrlResponseCodeWithRedirectionResult(java.net.URL url, java.util.Map<java.lang.String,java.lang.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 Detail
-
LOG
private static final Logger LOG
-
-
Method Detail
-
getUrlResponseCodeWithRedirectionResult
static UrlRequestResult getUrlResponseCodeWithRedirectionResult(java.net.URL url, java.util.Map<java.lang.String,java.lang.String> requestProperties, HttpMethod requestMethod) throws java.io.IOException
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.- Returns:
- the response code if HTTP connection and redirection value, or HttpURLConnection.HTTP_OK and null if not.
- Throws:
java.io.IOException- if an I/O exception occurs.
-
getJnlpVersionHeader
private static VersionId getJnlpVersionHeader(CloseableConnection connection)
-
-