Class BaSyxDeploymentRecipe
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.common.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 ClassesModifier and TypeClassDescriptionprivate classImplements the immediate deployment recipe.private classImplements 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
FieldsModifier and TypeFieldDescriptionprivate de.iip_ecosphere.platform.support.aas.SetupSpecFields inherited from interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
ANY_CORS_ORIGIN -
Constructor Summary
ConstructorsConstructorDescriptionBaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.aas.SetupSpec spec) Creates a deployment builder. -
Method Summary
Modifier and TypeMethodDescriptionprotected de.iip_ecosphere.platform.support.aas.AasServercreateImmediateDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, List<de.iip_ecosphere.platform.support.function.IORunnable> actions, String... options) Creates a server instance for immediate deployment.protected de.iip_ecosphere.platform.support.aas.AasServercreateRegistryDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, String... options) Creates a server instance for registry-based deployment.static voiddeploy(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.ImmediateDeploymentRecipede.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipeforRegistry(de.iip_ecosphere.platform.support.Endpoint aasRegistry, de.iip_ecosphere.platform.support.Endpoint smRegistry) de.iip_ecosphere.platform.support.aas.DeploymentRecipesetAccessControlAllowOrigin(String accessControlAllowOrigin) de.iip_ecosphere.platform.support.aas.DeploymentRecipesetBearerTokenAuthenticationConfiguration(String issuerUri, String jwkSetUri, String requiredAud) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
public BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.aas.SetupSpec spec) Creates a deployment builder.- Parameters:
spec- the setup specification
-
-
Method Details
-
createImmediateDeploymentServer
protected de.iip_ecosphere.platform.support.aas.AasServer createImmediateDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, List<de.iip_ecosphere.platform.support.function.IORunnable> actions, String... options) Creates a server instance for immediate deployment.- Parameters:
spec- the setup specificationoptions- the startup options- Returns:
- the instance
-
createRegistryDeploymentServer
protected de.iip_ecosphere.platform.support.aas.AasServer createRegistryDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, String... options) Creates a server instance for registry-based deployment.- Parameters:
spec- the setup specificationoptions- the startup options- Returns:
- the instance
-
setAccessControlAllowOrigin
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe setAccessControlAllowOrigin(String accessControlAllowOrigin) - Specified by:
setAccessControlAllowOriginin interfacede.iip_ecosphere.platform.support.aas.CorsEnabledRecipe- Specified by:
setAccessControlAllowOriginin interfacede.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:
setBearerTokenAuthenticationConfigurationin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe- Throws:
IllegalArgumentException
-
forRegistry
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe forRegistry()- Specified by:
forRegistryin interfacede.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:
forRegistryin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe
-
deploy
public 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 specificationaas- the AAS- Throws:
IOException- if the deployment cannot be executed, e.g. due to permission issues
-