java.lang.Object
com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface
All Implemented Interfaces:
GatewayConstants

public final class GatewayInterface extends Object implements GatewayConstants
  • Constructor Details

    • GatewayInterface

      public GatewayInterface(org.eclipse.jetty.client.HttpClient httpClient, ScopeVersionHash version, HttpURL gatewayUrl, int connectTimeout, int socketTimeout, int concurrencyLevel, int opcBrowseTimeout)
  • Method Details

    • getCookieStore

      public org.eclipse.jetty.http.HttpCookieStore getCookieStore()
    • newHttpRequest

      public org.eclipse.jetty.client.Request newHttpRequest(org.eclipse.jetty.http.HttpMethod method, String... pathComponents)
      Create a new HTTP request against the gateway with the given method and path parameters, appended to this gateway interface's known base URL and protocol. The request will automatically include session ID and scope headers.
      Parameters:
      pathComponents - path components to append to the base URL - will be joined automatically with slashes
    • handshake

      public HandshakeExchange handshake(String... pathParts)
    • login

      public LoginResult login(Consumer<org.eclipse.jetty.client.Request> requestConsumer, String... pathComponents) throws GatewayException
      Logs in to the gateway. As a side effect, updates the cookie for this connection based on the result.
      Throws:
      GatewayException
    • idpStart

      public URI idpStart(String projectName, String... pathComponents) throws GatewayException
      Throws:
      GatewayException
    • setThroughputMonitor

      public void setThroughputMonitor(GatewayInterface.GatewayThroughputMonitor monitor)
    • getGatewayAddress

      public HttpURL getGatewayAddress()
    • isSSL

      public boolean isSSL()
    • setSSL

      public void setSSL(boolean ssl)
    • simulateDisconnect

      public void simulateDisconnect(int seconds)
    • invoke

      public <T> T invoke(ClientRpcSerializer serializer, RpcCall call, int timeoutMillis, @NotNull @NotNull Object... parameters) throws Exception
      Throws:
      Exception
    • invokeRaw

      public InputStream invokeRaw(RpcCall call, int timeoutMillis, FragileConsumer<OutputStream,IOException> parameterWriter) throws Exception
      Throws:
      Exception
    • getCookie

      public String getCookie()
    • getModules

      public List<ModuleInfo> getModules() throws GatewayException
      Throws:
      GatewayException
    • logout

      public void logout(String... pathComponents)
    • reportError

      public void reportError(String message, String details, String sysProps, String userDescription, String userName, String userContact) throws Exception
      Throws:
      Exception
    • setConnectTimeout

      public void setConnectTimeout(int connectTimeout)
    • setSocketTimeout

      public void setSocketTimeout(int socketTimeout)
    • setOpcBrowseTimeout

      public void setOpcBrowseTimeout(int opcBrowseTimeout)
    • setHttpConcurrency

      public void setHttpConcurrency(int concurrencyLevel)