public class Installer extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | C_BOOTSTRAP_EXISTSReturn code for bootstrap config already exists | 
| static int | C_CONFIG_EXISTSReturn code for repository config already exists | 
| static int | C_CONFIG_MISSINGReturn code for repository config is missing | 
| static int | C_HOME_EXISTSReturn code for repository home already exists | 
| static int | C_HOME_MISSINGReturn code for repository home is missing | 
| static int | C_INSTALL_ERRORReturn code for a general install error | 
| static int | C_INSTALL_OKReturn code for installation succeeded | 
| static int | C_INVALID_INPUTReturn code for invalid input parameter | 
| Constructor and Description | 
|---|
| Installer(File bootstrapConfigFile,
         javax.servlet.ServletContext context)Creates a new installer | 
| Modifier and Type | Method and Description | 
|---|---|
| int | installRepository(javax.servlet.http.HttpServletRequest req)Handles the installation. | 
public static final int C_INSTALL_OK
public static final int C_INVALID_INPUT
public static final int C_HOME_EXISTS
public static final int C_HOME_MISSING
public static final int C_CONFIG_EXISTS
public static final int C_CONFIG_MISSING
public static final int C_BOOTSTRAP_EXISTS
public static final int C_INSTALL_ERROR
public Installer(File bootstrapConfigFile, javax.servlet.ServletContext context)
bootstrapConfigFile - the location for the config filecontext - the servlet context for accessing resourcespublic int installRepository(javax.servlet.http.HttpServletRequest req)
                      throws javax.servlet.ServletException,
                             IOException
req - the servlet request with the input parametersjavax.servlet.ServletException - if a servlet error occurs.IOException - if an I/O error occurs.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.