RedirectCallbackHandler.java revision caf41732540b634e5160125b1969a36ac41e89ed
/*
* 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 legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at 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 copyright [year] [name of copyright owner]".
*
* Copyright 2013-2014 ForgeRock AS
*/
/**
* A Callback Handler for RedirectCallbacks, so that multiple places in OpenAM can re-use the same code.
*/
public class RedirectCallbackHandler {
/**
* Handles RedirectCallbacks by forwarding the response to the url in the callback.
*
* @param request The HttpServletRequest.
* @param response The HttpServletResponse.
* @param redirectCallback The RedirectCallback.
* @param loginURL The url used to login o be set as a cookie on the response.
* @throws IOException If a problem occurs when sending the redirect.
*/
if (debug.messageEnabled()){
}
// Create Cookie
try {
} catch (Exception e) {
if (debug.messageEnabled()){
}
}
}
if (debug.messageEnabled()) {
+ " redirect URL " + rUrl
}
// prepend deployment URI
} else {
}
}
}