Class BaSyxDeploymentRecipe

java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.server.BaSyxDeploymentRecipe
All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.CorsEnabledRecipe, de.iip_ecosphere.platform.support.aas.DeploymentRecipe

public class BaSyxDeploymentRecipe extends Object implements de.iip_ecosphere.platform.support.aas.DeploymentRecipe
An initial BaSyx-specific deployment builder.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private class 
    Implements the immediate deployment recipe.
    private class 
    Implements the registry deployment recipe.

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe

    de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe, de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private de.iip_ecosphere.platform.support.aas.SetupSpec
     

    Fields inherited from interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe

    ANY_CORS_ORIGIN
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.aas.SetupSpec spec)
    Creates a deployment builder with root/empty document base path.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static void
    deploy(de.iip_ecosphere.platform.support.aas.SetupSpec spec, de.iip_ecosphere.platform.support.aas.Aas aas)
    Creates a new BaSyx AAS server.
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe
     
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe
    forRegistry(de.iip_ecosphere.platform.support.Endpoint aasRegistry, de.iip_ecosphere.platform.support.Endpoint smRegistry)
     
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    setAccessControlAllowOrigin(String accessControlAllowOrigin)
     
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    setBearerTokenAuthenticationConfiguration(String issuerUri, String jwkSetUri, String requiredAud)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe

    forRegistry
  • Field Details

    • setupSpec

      private de.iip_ecosphere.platform.support.aas.SetupSpec setupSpec
  • Constructor Details

    • BaSyxDeploymentRecipe

      BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.aas.SetupSpec spec)
      Creates a deployment builder with root/empty document base path.
      Parameters:
      spec - the setup specification
  • Method Details

    • setAccessControlAllowOrigin

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe setAccessControlAllowOrigin(String accessControlAllowOrigin)
      Specified by:
      setAccessControlAllowOrigin in interface de.iip_ecosphere.platform.support.aas.CorsEnabledRecipe
      Specified by:
      setAccessControlAllowOrigin in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    • setBearerTokenAuthenticationConfiguration

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe setBearerTokenAuthenticationConfiguration(String issuerUri, String jwkSetUri, String requiredAud) throws IllegalArgumentException
      Specified by:
      setBearerTokenAuthenticationConfiguration in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
      Throws:
      IllegalArgumentException
    • forRegistry

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe forRegistry()
      Specified by:
      forRegistry in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    • forRegistry

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe forRegistry(de.iip_ecosphere.platform.support.Endpoint aasRegistry, de.iip_ecosphere.platform.support.Endpoint smRegistry)
      Specified by:
      forRegistry in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    • deploy

      static void deploy(de.iip_ecosphere.platform.support.aas.SetupSpec spec, de.iip_ecosphere.platform.support.aas.Aas aas) throws IOException
      Creates a new BaSyx AAS server.
      Parameters:
      spec - the setup specification
      aas - the AAS
      Throws:
      IOException - if the deployment cannot be executed, e.g. due to permission issues