Class GatewayConnectionManager
- java.lang.Object
-
- com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager
-
public class GatewayConnectionManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GatewayConnectionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GatewayConnectiongetInstance()Returns the shared instance of the GatewayConnectionstatic booleanisInitialized()static voidsetConnection(GatewayConnection con)static GatewayAddresstoGatewayAddress(HttpURL url)Converts an HttpURL to a GatewayAddress.static java.util.List<GatewayAddress>toGatewayAddressList(java.util.List<HttpURL> urls)Straight conversion between a list of HttpURLs and GatewayAddresses.static HttpURLtoHttpURL(GatewayAddress addr)Converts from a GatewayAddress to an HttpURL.static java.util.List<HttpURL>toHttpURLList(java.util.List<GatewayAddress> addresses)Straight conversion between a list of GatewayAddresses and HttpURLs.
-
-
-
Method Detail
-
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 java.util.List<GatewayAddress> toGatewayAddressList(java.util.List<HttpURL> urls)
Straight conversion between a list of HttpURLs and GatewayAddresses. SeetoGatewayAddress(HttpURL)for an explanation.
-
toHttpURL
public static HttpURL toHttpURL(GatewayAddress addr)
Converts from a GatewayAddress to an HttpURL. SeetoGatewayAddress(HttpURL)for an explanation.
-
toHttpURLList
public static java.util.List<HttpURL> toHttpURLList(java.util.List<GatewayAddress> addresses)
Straight conversion between a list of GatewayAddresses and HttpURLs. SeetoGatewayAddress(HttpURL)for an explanation.
-
-