AuthExceptionViewBean.java revision 6cf99bcf5206a0fcc9dd9296fc46ac28c3fe8ade
/*
* 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: AuthExceptionViewBean.java,v 1.8 2008/12/24 01:41:51 ericow Exp $
*
* Portions Copyright 2015-2016 ForgeRock AS.
*/
/**
* This class is a default implementation of <code>ViewBean</code>
* auth exception UI.
*/
public class AuthExceptionViewBean extends AuthViewBeanBase {
/**
* Creates <code>AuthExceptionViewBean</code> object.
*/
public AuthExceptionViewBean() {
super(PAGE_NAME);
}
/** registers child views */
protected void registerChildren() {
super.registerChildren();
}
/**
* Forwards the request to this view bean, displaying the page. This
* method is the equivalent of <code>RequestDispatcher.forward()</code>,
* meaning that the same semantics apply to the use of this method.
* This method makes implicit use of the display URL returned
* by the <code>getDisplayURL()</code> method.
* @param requestContext servlet context for auth request
*/
if (requestContext!=null) {
}
super.forwardTo(requestContext);
return;
}
try {
} catch (Exception e) {
if (e instanceof L10NMessage) {
} else {
ResultVal = e.getMessage();
}
}
try {
if (exDebug.messageEnabled()) {
}
} catch (Exception e) {}
} else {
super.forwardTo(requestContext);
}
}
/**
* Returns display url for auth exception UI
*
* @return display url for auth exception UI
*/
public String getDisplayURL() {
.toString();
}
// I18N get resource bundle
} else {
}
}
if (exDebug.messageEnabled()) {
}
} else {
return super.createChild(name);
}
}
/**
* Called as notification that the JSP has begun its display
* processing. In addition to performing the default behavior in the
* superclass's version, this method executes any auto-retrieving or auto-
* executing models associated with this view unless auto-retrieval is
* disabled.
* @param event Display Event.
* @throws ModelControlException if manipulation of a model fails during
* display preparation or execution of auto-retrieving models.
*/
throws ModelControlException {
try {
// No cookie domain specified in profile
if (cookieDomainSet.isEmpty()) {
} else {
}
}
} catch (Exception e) {
e.printStackTrace();
if (exDebug.messageEnabled()) {
e.getMessage());
}
e.getMessage();
}
}
}
/**
* Handles href exception request
* @param event request invocation event.
* @throws ServletException if it fails to foward request
* @throws IOException if it fails to foward request
*/
throws ServletException, IOException {
}
////////////////////////////////////////////////////////////////////////////
// Display cycle events:
// If the fireDisplayEvents attribute in a display field tag is set to true,
// then the begin/endDisplay events will fire for that display field.
////////////////////////////////////////////////////////////////////////////
/**
* Using the display cycle event to adjust the value of a given field
*/
/**
* Returns if it begins href exception display
* @param event child display event
* @return <code>true</code> by default
*/
return true;
}
/**
* Returns if it begins content href exception display
* @param event child display event
* @return <code>true</code> by default.
*/
return true;
}
/**
* Returns if it begins static text exception display
* @param event child display event
* @return <code>true</code> by default.
*/
return true;
}
/**
* Returns tile index for auth exception UI.
* @return default empty string
*/
public String getTileIndex() {
return "";
}
/**
* Return <code>true</code> if it begins content static text exception
* display.
* @param event The DisplayEvent
* @return <code>true</code> if it begins content static text exception
* display.
*/
public boolean beginContentStaticTextExceptionDisplay(
) {
return true;
}
////////////////////////////////////////////////////////////////////////////
// Class variables
////////////////////////////////////////////////////////////////////////////
/**
* Page name for auth exception.
*/
////////////////////////////////////////////////////////////////////////////
// Instance variables
////////////////////////////////////////////////////////////////////////////
/**
* Result value
*/
/**
* Resource bundle
*/
/**
* Property name for url login.
*/
/**
* Property name for text exception
*/
/**
* Property name for goto login after failure.
*/
public static final String TXT_GOTO_LOGIN_AFTER_FAIL =
"txtGotoLoginAfterFail";
/**
* Property name for auth exception UI html title.
*/
public static final String HTML_TITLE_AUTH_EXCEPTION =
"htmlTitle_AuthException";
static {
}
}