01: package com.sun.portal.sra.desktop.commands;
02:
03: import java.io.IOException;
04: import java.util.HashMap;
05:
06: import javax.servlet.http.HttpServletRequest;
07: import javax.servlet.http.HttpServletResponse;
08:
09: public class LogoutCommand implements Command {
10:
11: public void execute(HttpServletRequest req,
12: HttpServletResponse res, HashMap providerMap)
13: throws IOException, CommandExecutionException {
14: String logoutURL = (String) req
15: .getAttribute("DSAME_LOGOUT_URL");
16:
17: // We can do any processing here before logging the user out.
18:
19: res.sendRedirect(logoutURL);
20: }
21:
22: }
|