Class UrlProber

java.lang.Object
net.adoptopenjdk.icedteaweb.resources.initializer.UrlProber

class UrlProber extends Object
  • Field Details

    • LOG

      private static final Logger LOG
  • Constructor Details

    • UrlProber

      UrlProber()
  • Method Details

    • getUrlResponseCodeWithRedirectionResult

      static UrlRequestResult getUrlResponseCodeWithRedirectionResult(URL url, Map<String,String> requestProperties, HttpMethod requestMethod) throws 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:
      IOException - if an I/O exception occurs.
    • getJnlpVersionHeader

      private static VersionId getJnlpVersionHeader(CloseableConnection connection)