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 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 with root/empty document base path. -
Method Summary
Modifier and TypeMethodDescription(package private) 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
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:
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
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
-