|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.web.ServletContextResourceLoader
public class ServletContextResourceLoader
This class loads resource from either ServletContext (when the url starts with "/"), or another ResourceLoader.
| Constructor Summary | |
|---|---|
ServletContextResourceLoader(javax.servlet.ServletContext ctxt,
ResourceLoader loader)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.net.URL |
getResource(java.lang.String path)
Get the URL that identifies the resource. |
java.io.InputStream |
getResourceAsStream(java.lang.String path)
Create a InputStream for a resource. |
ResourceLoader |
getResourceLoader()
To get the ResourceLoader object. |
javax.servlet.ServletContext |
getServletContext()
To get the ServletContext object. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServletContextResourceLoader(javax.servlet.ServletContext ctxt,
ResourceLoader loader)
| Method Detail |
|---|
public java.net.URL getResource(java.lang.String path)
ResourceLoader
getResource in interface ResourceLoaderpath - the resource path.
public java.io.InputStream getResourceAsStream(java.lang.String path)
ResourceLoader
getResourceAsStream in interface ResourceLoaderpath - the resource path.
public javax.servlet.ServletContext getServletContext()
public ResourceLoader getResourceLoader()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||