AuthenticationServletBase.java revision 25e37495f2591ee8f2c057f2644ed5570b4c078d
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: AuthenticationServletBase.java,v 1.4 2008/06/25 05:41:49 qcheng Exp $
*
*/
/**
* Portions Copyrighted 2012 ForgeRock AS
*/
/**
* This is the front controller of authentication UI
*/
public class AuthenticationServletBase extends ApplicationServletBase {
/**
* creates an instance of application servlet base
*/
public AuthenticationServletBase() {
super();
}
/**
* Forwards to login view bean, in case of an invalid target
* request handler (page).
*
* @param requestContext - request context
* @param handlerName - name of handler
* @throws ServletException
*/
protected void onRequestHandlerNotFound(
throws ServletException
{
throw new CompleteRequestException();
}
/**
* Forwards to login view bean, in case of no handler specified
*
* @param requestContext - request context
* @throws ServletException
*/
throws ServletException
{
throw new CompleteRequestException();
}
/**
* Forwards to uncaught exception view bean, to respond to uncaught
* application error messages.
*
* @param requestContext - request context
* @param e Exception that was not handled by the application.
* @throws ServletException
* @throws IOException
*/
protected void onUncaughtException(
Exception e)
throws ServletException, IOException
{
if (exDebug.messageEnabled()) {
, e);
}
throw new CompleteRequestException();
}
protected void onPageSessionDeserializationException(
Exception e)
throws ServletException, IOException {
if (exDebug.messageEnabled()) {
}
throw new CompleteRequestException();
}
}