Package org.apache.jackrabbit.j2ee
Class Installer
- java.lang.Object
-
- org.apache.jackrabbit.j2ee.Installer
-
public class Installer extends Object
Provides very basic installation capabilities.
-
-
Field Summary
Fields Modifier and Type Field Description static int
C_BOOTSTRAP_EXISTS
Return code for bootstrap config already existsstatic int
C_CONFIG_EXISTS
Return code for repository config already existsstatic int
C_CONFIG_MISSING
Return code for repository config is missingstatic int
C_HOME_EXISTS
Return code for repository home already existsstatic int
C_HOME_MISSING
Return code for repository home is missingstatic int
C_INSTALL_ERROR
Return code for a general install errorstatic int
C_INSTALL_OK
Return code for installation succeededstatic int
C_INVALID_INPUT
Return code for invalid input parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
installRepository(javax.servlet.http.HttpServletRequest req)
Handles the installation.
-
-
-
Field Detail
-
C_INSTALL_OK
public static final int C_INSTALL_OK
Return code for installation succeeded- See Also:
- Constant Field Values
-
C_INVALID_INPUT
public static final int C_INVALID_INPUT
Return code for invalid input parameter- See Also:
- Constant Field Values
-
C_HOME_EXISTS
public static final int C_HOME_EXISTS
Return code for repository home already exists- See Also:
- Constant Field Values
-
C_HOME_MISSING
public static final int C_HOME_MISSING
Return code for repository home is missing- See Also:
- Constant Field Values
-
C_CONFIG_EXISTS
public static final int C_CONFIG_EXISTS
Return code for repository config already exists- See Also:
- Constant Field Values
-
C_CONFIG_MISSING
public static final int C_CONFIG_MISSING
Return code for repository config is missing- See Also:
- Constant Field Values
-
C_BOOTSTRAP_EXISTS
public static final int C_BOOTSTRAP_EXISTS
Return code for bootstrap config already exists- See Also:
- Constant Field Values
-
C_INSTALL_ERROR
public static final int C_INSTALL_ERROR
Return code for a general install error- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Installer
public Installer(File bootstrapConfigFile, javax.servlet.ServletContext context)
Creates a new installer- Parameters:
bootstrapConfigFile
- the location for the config filecontext
- the servlet context for accessing resources
-
-
Method Detail
-
installRepository
public int installRepository(javax.servlet.http.HttpServletRequest req) throws javax.servlet.ServletException, IOException
Handles the installation.- Parameters:
req
- the servlet request with the input parameters- Returns:
- the installation return code
- Throws:
javax.servlet.ServletException
- if a servlet error occurs.IOException
- if an I/O error occurs.
-
-