Package com.netscape.cms.servlet.admin
Class RegistryAdminServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.netscape.cms.servlet.admin.AdminServlet
-
- com.netscape.cms.servlet.admin.RegistryAdminServlet
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class RegistryAdminServlet extends AdminServlet
This implements the administration servlet for registry subsystem.- Version:
- $Revision$, $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMMA
static java.lang.String
INVALID_POLICY_IMPL_CONFIG
static java.lang.String
INVALID_POLICY_IMPL_ID
static java.lang.String
INVALID_POLICY_IMPL_OP
static java.lang.String
INVALID_POLICY_INST_ID
static java.lang.String
INVALID_POLICY_INSTANCE_CONFIG
static java.lang.String
INVALID_POLICY_SCOPE
static java.lang.String
MISSING_POLICY_IMPL_CLASS
static java.lang.String
MISSING_POLICY_IMPL_ID
static java.lang.String
MISSING_POLICY_INST_ID
static java.lang.String
MISSING_POLICY_ORDERING
static java.lang.String
NYI
static java.lang.String
PROP_AUTHORITY
static java.lang.String
PROP_PREDICATE
-
Fields inherited from class com.netscape.cms.servlet.admin.AdminServlet
auditor, AUTHZ_CONFIG_STORE, AUTHZ_MGR_BASIC, AUTHZ_MGR_LDAP, AUTHZ_RES_NAME, AUTHZ_SRC_LDAP, AUTHZ_SRC_TYPE, AUTHZ_SRC_XML, CERT_ATTR, ERROR, mAclMethod, mAuthz, mConfig, mLogger, mOp, mToken, PROP_ACL, PROP_AUTHZ_MGR, PROP_ID, RESTART, SUCCESS
-
-
Constructor Summary
Constructors Constructor Description RegistryAdminServlet()
Constructs administration servlet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
deleteImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
protected java.lang.String
getNonNull(java.lang.String s)
void
getProfileImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
java.lang.String
getServletInfo()
Returns serlvet information.void
getSupportedConstraintPolicies(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
void
init(javax.servlet.ServletConfig config)
Initializes this servlet.void
listImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Lists all registered profile impementationsvoid
processImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Process Policy Implementation Management.void
service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Serves HTTP admin request.-
Methods inherited from class com.netscape.cms.servlet.admin.AdminServlet
audit, audit, auditParams, auditSubjectID, authenticate, authorize, authorize, commit, convertStringArrayToNVPairs, getAuthCreds, getClassByNameAsExtendedPluginInfo, getConfig, getLocale, getParameter, listConfig, outputHttpParameters, sendResponse, setConfig, URLdecode
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
PROP_AUTHORITY
public static final java.lang.String PROP_AUTHORITY
- See Also:
- Constant Field Values
-
PROP_PREDICATE
public static final java.lang.String PROP_PREDICATE
- See Also:
- Constant Field Values
-
INVALID_POLICY_SCOPE
public static java.lang.String INVALID_POLICY_SCOPE
-
INVALID_POLICY_IMPL_OP
public static java.lang.String INVALID_POLICY_IMPL_OP
-
NYI
public static java.lang.String NYI
-
INVALID_POLICY_IMPL_CONFIG
public static java.lang.String INVALID_POLICY_IMPL_CONFIG
-
INVALID_POLICY_INSTANCE_CONFIG
public static java.lang.String INVALID_POLICY_INSTANCE_CONFIG
-
MISSING_POLICY_IMPL_ID
public static java.lang.String MISSING_POLICY_IMPL_ID
-
MISSING_POLICY_IMPL_CLASS
public static java.lang.String MISSING_POLICY_IMPL_CLASS
-
INVALID_POLICY_IMPL_ID
public static java.lang.String INVALID_POLICY_IMPL_ID
-
MISSING_POLICY_INST_ID
public static java.lang.String MISSING_POLICY_INST_ID
-
INVALID_POLICY_INST_ID
public static java.lang.String INVALID_POLICY_INST_ID
-
COMMA
public static java.lang.String COMMA
-
MISSING_POLICY_ORDERING
public static java.lang.String MISSING_POLICY_ORDERING
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
Initializes this servlet.- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classAdminServlet
- Throws:
javax.servlet.ServletException
-
getServletInfo
public java.lang.String getServletInfo()
Returns serlvet information.- Specified by:
getServletInfo
in interfacejavax.servlet.Servlet
- Overrides:
getServletInfo
in classjavax.servlet.GenericServlet
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
Serves HTTP admin request.- Overrides:
service
in classAdminServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
-
processImplMgmt
public void processImplMgmt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
Process Policy Implementation Management.- Throws:
javax.servlet.ServletException
java.io.IOException
-
addImpl
public void addImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
-
deleteImpl
public void deleteImpl(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
-
listImpls
public void listImpls(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
Lists all registered profile impementations- Throws:
javax.servlet.ServletException
java.io.IOException
-
getSupportedConstraintPolicies
public void getSupportedConstraintPolicies(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
-
getProfileImplConfig
public void getProfileImplConfig(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
-
getNonNull
protected java.lang.String getNonNull(java.lang.String s)
-
-