62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * The contents of this file are subject to the terms of the Common Development and
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Distribution License (the License). You may not use this file except in compliance with the
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * specific language governing permission and limitations under the License.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * When distributing Covered Software, include this CDDL Header Notice in each file and include
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Header, with the fields enclosed by brackets [] replaced by your own identifying
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * information: "Portions copyright [year] [name of copyright owner]".
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Copyright 2015 ForgeRock AS.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joosteimport com.sun.identity.console.base.ConsoleServletBase;
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Servlet responsible for initializing the request context and setting the viewbean manager for Audit configuration.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * @since 13.0.0
62639ee1329be2d687701dfa01fc006314440bf7Jaco Joostepublic class AuditServlet extends ConsoleServletBase {
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste private static final String DEFAULT_MODULE_URL = "../audit";
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste private static final String PACKAGE_NAME = getPackageName(AuditServlet.class.getName());
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Initialize request context and set the viewbean manager.
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * @param requestContext current request context
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste protected void initializeRequestContext(RequestContext requestContext) {
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste ViewBeanManager viewBeanManager = new ViewBeanManager(requestContext, PACKAGE_NAME);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste ((RequestContextImpl) requestContext).setViewBeanManager(viewBeanManager);
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * Gets the modules URL
62639ee1329be2d687701dfa01fc006314440bf7Jaco Jooste * @return Returns the module URL as String