org.apache.batik.bridge
public class DocumentJarClassLoader extends URLClassLoader
Field Summary | |
---|---|
protected CodeSource | documentCodeSource
CodeSource for the Document which referenced the Jar file |
Constructor Summary | |
---|---|
DocumentJarClassLoader(URL jarURL, URL documentURL)
Constructor |
Method Summary | |
---|---|
protected PermissionCollection | getPermissions(CodeSource codesource)
Returns the permissions for the given codesource object.
|
See Also: DocumentJarClassLoader
Then, if the documentURL passed at construction time is not null, the permissions granted to that URL are added. As a result, the jar file code will only be able to connect to the server which served the document.
Parameters: codesource the codesource
Returns: the permissions granted to the codesource