Skip navigation links
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.2.1.2.0)

E76725-01
oracle.ide.webbrowser

Class HttpPing

    • Constructor Summary

      Constructors 
      Constructor and Description
      HttpPing(ProxyOptions options, java.net.URL url)
      Constructs an instance of HttpPing.
      HttpPing(ProxyOptions options, java.net.URL url, int timeout)
      Constructs an instance of HttpPing.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void ping()
      Pings the URL specified in the constructor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpPing

        public HttpPing(ProxyOptions options,
                        java.net.URL url)
        Constructs an instance of HttpPing.
        Parameters:
        options - proxy options. Must not be null.
        url - url to ping. Must not be null.
      • HttpPing

        public HttpPing(ProxyOptions options,
                        java.net.URL url,
                        int timeout)
        Constructs an instance of HttpPing.
        Parameters:
        options - proxy options. Must not be null.
        url - url to ping. Must not be null.
        timeout - time out. Must be greater than or equal to zero.
    • Method Detail

      • ping

        public void ping()
                  throws HttpPing.PingFailedException
        Pings the URL specified in the constructor. If an error occurs, throws a HttpPing.PingFailedException.

        Note: this method executes synchronously (i.e. on the calling thread). It's recommended that callers invoke it on a background thread, since it will block until a connection is successful or the timeout period elapses.

        Throws:
        HttpPing.PingFailedException - if connection to the URL was unsuccessful.
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.2.1.2.0)

E76725-01

Copyright © 1997, 2016, Oracle. All rights reserved.