|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.resource.AbstractResource
net.shibboleth.utilities.java.support.resource.ClasspathResource
public class ClasspathResource
A resource which reads data from the classpath.
| Field Summary | |
|---|---|
private URL |
classpathResource
URL to the classpath resource. |
| Constructor Summary | |
|---|---|
ClasspathResource(String resourcePath)
Constructor. |
|
ClasspathResource(String resourcePath,
ClassLoader classLoader)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
doExists()
Checks whether the resource exists. |
protected InputStream |
doGetInputStream()
Gets the input stream to the resource's data. |
protected long |
doGetLastModifiedTime()
Gets the time, in milliseconds since the epoch, when the resource was last modified. |
| Methods inherited from class net.shibboleth.utilities.java.support.resource.AbstractResource |
|---|
doValidate, equals, exists, getInputStream, getLastModifiedTime, getLocation, hashCode, setLocation, toString, validate |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
|---|
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
|---|
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
|---|
initialize, isInitialized |
| Field Detail |
|---|
private final URL classpathResource
| Constructor Detail |
|---|
public ClasspathResource(String resourcePath)
resourcePath - classpath path to the resource
public ClasspathResource(String resourcePath,
ClassLoader classLoader)
resourcePath - classpath path to the resourceclassLoader - class loader used to locate the resource| Method Detail |
|---|
protected boolean doExists()
throws ResourceException
doExists in class AbstractResourceResourceException - thrown if there is a problem determining if the resource exists
protected InputStream doGetInputStream()
throws ResourceException
doGetInputStream in class AbstractResourceResourceException - thrown if an input stream can not be created for the resource
protected long doGetLastModifiedTime()
throws ResourceException
doGetLastModifiedTime in class AbstractResourceResourceException - thrown if the last modified time can not be determined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||