⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 redirect.java

📁 cisco-2950交换机的应用程序的源代码
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Redirect.java

package cisco.dsbu.redirect.main;

import java.applet.Applet;
import java.applet.AppletContext;
import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JApplet;

// Referenced classes of package cisco.dsbu.redirect.main:
//            TestError

public final class Redirect extends JApplet
{

    public Redirect()
    {
    }

    public void start()
    {
        String s1 = "Version 1.3.0, 1.3.1, or 1.4";
        String s = System.getProperty("java.version");
        System.out.println("Java plug-in version is " + s);
        System.out.println("CodeBase - " + getCodeBase().toExternalForm());
        System.out.println("Host - " + getCodeBase().getHost());
        System.out.println("Port - " + getCodeBase().getPort());
        System.out.println("File - " + getCodeBase().getFile());
        try
        {
            Thread.sleep(6000L);
        }
        catch(InterruptedException interruptedexception) { }
        String s2 = getCodeBase().getHost();
        String s3 = "";
        if(getCodeBase().getPort() != -1)
            s3 = ":" + getCodeBase().getPort();
        String s4 = getCodeBase().getFile();
        if(s.indexOf("1.3") != -1 || s.indexOf("1.4") != -1)
        {
            try
            {
                URL url = getCodeBase();
                System.out.println("Launching CMS using plug-in caching - " + url.toExternalForm());
                getAppletContext().showDocument(new URL(url, "cms_13.html"), "_self");
            }
            catch(MalformedURLException malformedurlexception)
            {
                System.err.println("Unable to redirect the browser to the correct location - " + malformedurlexception.getMessage());
            }
        } else
        {
            System.out.println("Running Java Plug-in Version" + s);
            TestError testerror = new TestError(s, s1);
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -