Package org.apache.jackrabbit.j2ee
Class Installer
java.lang.Object
org.apache.jackrabbit.j2ee.Installer
Provides very basic installation capabilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Return code for bootstrap config already existsstatic final int
Return code for repository config already existsstatic final int
Return code for repository config is missingstatic final int
Return code for repository home already existsstatic final int
Return code for repository home is missingstatic final int
Return code for a general install errorstatic final int
Return code for installation succeededstatic final int
Return code for invalid input parameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
installRepository
(javax.servlet.http.HttpServletRequest req) Handles the installation.
-
Field Details
-
C_INSTALL_OK
public static final int C_INSTALL_OKReturn code for installation succeeded- See Also:
-
C_INVALID_INPUT
public static final int C_INVALID_INPUTReturn code for invalid input parameter- See Also:
-
C_HOME_EXISTS
public static final int C_HOME_EXISTSReturn code for repository home already exists- See Also:
-
C_HOME_MISSING
public static final int C_HOME_MISSINGReturn code for repository home is missing- See Also:
-
C_CONFIG_EXISTS
public static final int C_CONFIG_EXISTSReturn code for repository config already exists- See Also:
-
C_CONFIG_MISSING
public static final int C_CONFIG_MISSINGReturn code for repository config is missing- See Also:
-
C_BOOTSTRAP_EXISTS
public static final int C_BOOTSTRAP_EXISTSReturn code for bootstrap config already exists- See Also:
-
C_INSTALL_ERROR
public static final int C_INSTALL_ERRORReturn code for a general install error- See Also:
-
-
Constructor Details
-
Installer
Creates a new installer- Parameters:
bootstrapConfigFile
- the location for the config filecontext
- the servlet context for accessing resources
-
-
Method Details
-
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.
-