public class AMSetupServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
AMSetupServlet() |
Modifier and Type | Method and Description |
---|---|
static void |
chmodFileReadOnly(File f)
Change a file to be read only for owner (eg password file on disk that we want to protect)
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
enableDebug() |
static String |
getBaseDir() |
static String |
getErrorMessage() |
static LicenseLocator |
getLicenseLocator() |
static String |
getPresetConfigDir() |
void |
init(javax.servlet.ServletConfig config) |
static boolean |
isConfigured() |
static boolean |
isConfigured(javax.servlet.ServletContext servletctx)
Invoked from the filter to decide which page needs to be
displayed.
|
static boolean |
isCurrentConfigurationValid() |
static boolean |
isOpenDJUpgraded() |
static boolean |
isUpgradeCompleted() |
static boolean |
processRequest(IHttpServletRequest request,
IHttpServletResponse response) |
static String |
readFile(String file) |
static void |
upgradeCompleted() |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public static LicenseLocator getLicenseLocator()
public static boolean isCurrentConfigurationValid()
public static boolean isConfigured()
public static void upgradeCompleted()
public static boolean isUpgradeCompleted()
public static boolean isOpenDJUpgraded()
public static void enableDebug()
public static boolean isConfigured(javax.servlet.ServletContext servletctx)
servletctx
- is the Servlet Contextpublic void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException, ConfiguratorException
doPost
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
ConfiguratorException
public static boolean processRequest(IHttpServletRequest request, IHttpServletResponse response)
public static String getErrorMessage()
public static String getPresetConfigDir() throws ConfiguratorException
ConfiguratorException
public static String getBaseDir() throws ConfiguratorException
ConfiguratorException
public static String readFile(String file) throws IOException
IOException
public static void chmodFileReadOnly(File f) throws IOException
f
- - the File handle to the fileIOException
- if the file does not exist or permissions can not be changedCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.