Mercurial > hg > release > icedtea6-1.3
view plugin/icedtea/org/classpath/icedtea/plugin/PluginCallRequestFactoryImpl.java @ 1049:abdb5c94757d
More refactoring. Moved classes to a shorter path, removed classes provided by
the JDK tarball (they were there by mistake).
author | Deepak Bhole <dbhole@redhat.com> |
---|---|
date | Tue, 23 Sep 2008 16:52:24 -0400 |
parents | |
children |
line wrap: on
line source
package org.classpath.icedtea.plugin; import sun.applet.PluginCallRequest; import sun.applet.PluginCallRequestFactory; public class PluginCallRequestFactoryImpl implements PluginCallRequestFactory { public PluginCallRequest getPluginCallRequest(String id, String message, String returnString) { if (id == "member") { return new GetMemberPluginCallRequest(message, returnString); } else if (id == "void") { return new VoidPluginCallRequest(message, returnString); } else if (id == "window") { return new GetWindowPluginCallRequest(message, returnString); } else { throw new RuntimeException ("Unknown plugin call request type requested from factory"); } } }