Mercurial > hg > release > icedtea6-1.3
view plugin/icedtea/sun/applet/PluginCallRequestFactory.java @ 1066:358cb21c4730
More refactoring -- the last big one in the forseeable future.
Implemented proper sandbox for liveconnect calls.
Added error detection in the plugin, so it doesn't loop forever if Java side
encounters an error.
author | Deepak Bhole <dbhole@redhat.com> |
---|---|
date | Wed, 01 Oct 2008 16:40:56 -0400 |
parents | abdb5c94757d |
children |
line wrap: on
line source
package sun.applet; public class 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"); } } }