org.jboss.as.console.client.core.LogoutCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of switchyard-console-as7-core
Show all versions of switchyard-console-as7-core
Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.
package org.jboss.as.console.client.core;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.Window;
import org.jboss.as.console.client.Console;
/**
* @author Heiko Braun
* @date 2/13/12
*/
public class LogoutCmd implements Command {
@Override
public void execute() {
String logoutUrl = Console.MODULES.getBootstrapContext().getLogoutUrl();
clearMsie();
Window.Location.replace(logoutUrl);
}
public static native String clearMsie() /*-{
try {
document.execCommand('ClearAuthenticationCache');
} catch (error) {
}
}-*/;
}