Class BaSyxDeploymentRecipe
- java.lang.Object
-
- de.iip_ecosphere.platform.support.aas.basyx.BaSyxDeploymentRecipe
-
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.DeploymentRecipe
public class BaSyxDeploymentRecipe extends java.lang.Object implements de.iip_ecosphere.platform.support.aas.DeploymentRecipeAn initial BaSyx-specific deployment builder.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classBaSyxDeploymentRecipe.BaSyxImmediateDeploymentRecipeImplements the immediate deployment recipe.private classBaSyxDeploymentRecipe.BaSyxRegistryDeploymentRecipeImplements the registry deployment recipe.
-
Field Summary
Fields Modifier and Type Field Description private DeploymentSpecdeploymentSpec
-
Constructor Summary
Constructors Constructor Description BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.Endpoint endpoint)Creates a deployment builder with root/empty document base path.BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.Endpoint endpoint, de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore)Creates a deployment builder with root/empty document base path.BaSyxDeploymentRecipe(java.lang.String host, int port, java.lang.String contextPath, java.lang.String docBasePath)Creates a deployment builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipeaddInMemoryRegistry(de.iip_ecosphere.platform.support.Endpoint regEndpoint)de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipeaddInMemoryRegistry(java.lang.String regEndpoint)(package private) static voiddeploy(DeploymentSpec deploymentSpec, de.iip_ecosphere.platform.support.aas.Aas aas)Creates a new BaSyx AAS server.de.iip_ecosphere.platform.support.aas.DeploymentRecipesetAccessControlAllowOrigin(java.lang.String accessControlAllowOrigin)de.iip_ecosphere.platform.support.aas.DeploymentRecipesetBearerTokenAuthenticationConfiguration(java.lang.String issuerUri, java.lang.String jwkSetUri, java.lang.String requiredAud)de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipesetRegistryUrl(de.iip_ecosphere.platform.support.Endpoint endpoint)
-
-
-
Field Detail
-
deploymentSpec
private DeploymentSpec deploymentSpec
-
-
Constructor Detail
-
BaSyxDeploymentRecipe
BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.Endpoint endpoint)
Creates a deployment builder with root/empty document base path.- Parameters:
endpoint- the endpoint to create the deployment context for
-
BaSyxDeploymentRecipe
BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.Endpoint endpoint, de.iip_ecosphere.platform.support.net.KeyStoreDescriptor kstore)Creates a deployment builder with root/empty document base path.- Parameters:
endpoint- the endpoint to create the deployment context forkstore- the key store descriptor, ignored if null
-
BaSyxDeploymentRecipe
BaSyxDeploymentRecipe(java.lang.String host, int port, java.lang.String contextPath, java.lang.String docBasePath)Creates a deployment builder.- Parameters:
host- the target hostport- the target IP portcontextPath- the context base path (may be empty, otherwise shall start with a "/")docBasePath- the documents base path (may be empty, otherwise shall start with a "/")
-
-
Method Detail
-
setAccessControlAllowOrigin
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe setAccessControlAllowOrigin(java.lang.String accessControlAllowOrigin)
- Specified by:
setAccessControlAllowOriginin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe
-
setBearerTokenAuthenticationConfiguration
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe setBearerTokenAuthenticationConfiguration(java.lang.String issuerUri, java.lang.String jwkSetUri, java.lang.String requiredAud) throws java.lang.IllegalArgumentException- Specified by:
setBearerTokenAuthenticationConfigurationin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe- Throws:
java.lang.IllegalArgumentException
-
addInMemoryRegistry
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe addInMemoryRegistry(de.iip_ecosphere.platform.support.Endpoint regEndpoint)
- Specified by:
addInMemoryRegistryin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe
-
addInMemoryRegistry
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe addInMemoryRegistry(java.lang.String regEndpoint)
- Specified by:
addInMemoryRegistryin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe
-
setRegistryUrl
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe setRegistryUrl(de.iip_ecosphere.platform.support.Endpoint endpoint)
- Specified by:
setRegistryUrlin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe
-
deploy
static void deploy(DeploymentSpec deploymentSpec, de.iip_ecosphere.platform.support.aas.Aas aas)
Creates a new BaSyx AAS server.- Parameters:
deploymentSpec- the deployment set instanceaas- the AAS
-
-