Class GatewayConnectionManager

java.lang.Object
com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager

public class GatewayConnectionManager extends Object
  • Constructor Details

    • GatewayConnectionManager

      public GatewayConnectionManager()
  • Method Details

    • getInstance

      public static GatewayConnection getInstance()
      Returns the shared instance of the GatewayConnection
    • setConnection

      public static void setConnection(GatewayConnection con)
    • isInitialized

      public static boolean isInitialized()
    • toGatewayAddress

      public static GatewayAddress toGatewayAddress(HttpURL url)
      Converts an HttpURL to a GatewayAddress. These classes are basically identical. HttpURL is the Ignition common representation of a gateway address, and GatewayAddress is the client bootstrap's version. Since bootstrap doesn't depend on common, they can't be consolidated.
    • toGatewayAddressList

      public static List<GatewayAddress> toGatewayAddressList(List<HttpURL> urls)
      Straight conversion between a list of HttpURLs and GatewayAddresses. See toGatewayAddress(HttpURL) for an explanation.
    • toHttpURL

      public static HttpURL toHttpURL(GatewayAddress addr)
      Converts from a GatewayAddress to an HttpURL. See toGatewayAddress(HttpURL) for an explanation.
    • toHttpURLList

      public static List<HttpURL> toHttpURLList(List<GatewayAddress> addresses)
      Straight conversion between a list of GatewayAddresses and HttpURLs. See toGatewayAddress(HttpURL) for an explanation.