com.sun.enterprise.loader
Class ASURLClassLoader.URLEntry

java.lang.Object
  extended by com.sun.enterprise.loader.ASURLClassLoader.URLEntry
Enclosing class:
ASURLClassLoader

protected static final class ASURLClassLoader.URLEntry
extends Object

URL entry - keeps track of the url resources.


Method Summary
 boolean equals(Object obj)
          Returns true if two URL entries has equal URLs.
 int hashCode()
          Since equals is overridden, we need to override hashCode as well.
 void setProtectionDomain(ClassLoader ejbClassLoader, Certificate[] signers)
          Sets ProtectionDomain with CodeSource including Signers in Entry for use in call to defineClass.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setProtectionDomain

public void setProtectionDomain(ClassLoader ejbClassLoader,
                                Certificate[] signers)
                         throws MalformedURLException
Sets ProtectionDomain with CodeSource including Signers in Entry for use in call to defineClass.

Parameters:
signers - the array of signer certs or null
Throws:
MalformedURLException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Returns true if two URL entries has equal URLs.

Overrides:
equals in class Object
Parameters:
obj - URLEntry to compare against
Returns:
true if both entry has equal URL

hashCode

public int hashCode()
Since equals is overridden, we need to override hashCode as well.

Overrides:
hashCode in class Object


Copyright © 2012 GlassFish Community. All Rights Reserved.