Class NoSecuritySetup

java.lang.Object
test.de.iip_ecosphere.platform.connectors.opcuav1.ServerSetup
test.de.iip_ecosphere.platform.connectors.opcuav1.NoSecuritySetup

public class NoSecuritySetup extends ServerSetup
Describes a non-secure setup for testing purposes.
Author:
Holger Eichelberger, SSE
  • Constructor Summary

    Constructors
    Constructor
    Description
    NoSecuritySetup(String path, int tcpPort, int httpsPort)
    Creates a server setup instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configureCommonEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
    Configures the common endpoint builder used as basis for the following endpoint builders below.
    org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder
    configureHttpsEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
    Configures the HTTPS builder on usual non-discovery endpoints.
    org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder
    configureNoSecurityBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
    Configures the no-security builder on usual non-discovery endpoints.
    void
    configureServerBuilder(org.eclipse.milo.opcua.sdk.server.api.config.OpcUaServerConfigBuilder builder)
    Configures the server builder.
    org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder
    configureTcpEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
    Configures the TCP builder on usual non-discovery endpoints.
    de.iip_ecosphere.platform.connectors.ConnectorParameter
    Returns the connector parameter for setting up a corresponding connector.
    Initializes the application.
    void
    Shuts down the application to clean up resources if needed.

    Methods inherited from class test.de.iip_ecosphere.platform.connectors.opcuav1.ServerSetup

    getHttpsPort, getPath, getTcpPort

    Methods inherited from class java.lang.Object

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

    • NoSecuritySetup

      public NoSecuritySetup(String path, int tcpPort, int httpsPort)
      Creates a server setup instance.
      Parameters:
      path - the URL path on the endpoints (no trailing slash)
      tcpPort - the TCP port to serve
      httpsPort - the HTTPS port to serve (although not secured)
  • Method Details

    • initializeApplication

      public String initializeApplication() throws ExecutionException
      Description copied from class: ServerSetup
      Initializes the application.
      Specified by:
      initializeApplication in class ServerSetup
      Returns:
      the application URL
      Throws:
      ExecutionException - if initializing the application fails
    • shutdownApplication

      public void shutdownApplication() throws ExecutionException
      Description copied from class: ServerSetup
      Shuts down the application to clean up resources if needed.
      Specified by:
      shutdownApplication in class ServerSetup
      Throws:
      ExecutionException - if shutdown fails.
    • configureCommonEndpointBuilder

      public void configureCommonEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
      Description copied from class: ServerSetup
      Configures the common endpoint builder used as basis for the following endpoint builders below.
      Specified by:
      configureCommonEndpointBuilder in class ServerSetup
      Parameters:
      builder - the builder
    • configureNoSecurityBuilder

      public org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder configureNoSecurityBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
      Description copied from class: ServerSetup
      Configures the no-security builder on usual non-discovery endpoints.
      Specified by:
      configureNoSecurityBuilder in class ServerSetup
      Parameters:
      builder - the builder
      Returns:
      builder or null for no such endpoint
    • configureTcpEndpointBuilder

      public org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder configureTcpEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
      Description copied from class: ServerSetup
      Configures the TCP builder on usual non-discovery endpoints.
      Specified by:
      configureTcpEndpointBuilder in class ServerSetup
      Parameters:
      builder - the builder
      Returns:
      builder or null for no such endpoint
    • configureHttpsEndpointBuilder

      public org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder configureHttpsEndpointBuilder(org.eclipse.milo.opcua.stack.server.EndpointConfiguration.Builder builder)
      Description copied from class: ServerSetup
      Configures the HTTPS builder on usual non-discovery endpoints.
      Specified by:
      configureHttpsEndpointBuilder in class ServerSetup
      Parameters:
      builder - the builder
      Returns:
      builder or null for no such endpoint
    • configureServerBuilder

      public void configureServerBuilder(org.eclipse.milo.opcua.sdk.server.api.config.OpcUaServerConfigBuilder builder)
      Description copied from class: ServerSetup
      Configures the server builder.
      Specified by:
      configureServerBuilder in class ServerSetup
      Parameters:
      builder - the server builder
    • getConnectorParameter

      public de.iip_ecosphere.platform.connectors.ConnectorParameter getConnectorParameter()
      Description copied from class: ServerSetup
      Returns the connector parameter for setting up a corresponding connector. [convenience]
      Specified by:
      getConnectorParameter in class ServerSetup
      Returns:
      the connector parameter instance