All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.as.console.client.core.LogoutCmd Maven / Gradle / Ivy

Go to download

Bundles the core AS7 console as a GWT module. Includes minor customizations to support extensions.

There is a newer version: 0.7.0.Final
Show newest version
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) {
        }

    }-*/;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy