|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.utils.resource.ServletContextURLFactory
Resolve URI:s to URL by looking them up in the ServletContext.
The URI.getPath() is used to get the resource name.
| Constructor Summary | |
ServletContextURLFactory(javax.servlet.ServletContext ctx)
Create with a ServletContext. |
|
| Method Summary | |
protected java.lang.String |
getResURI(URI uri)
|
java.net.URL |
getURL(URI uri)
Construct an URL from URI by looking it up in the ContextClassLoader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServletContextURLFactory(javax.servlet.ServletContext ctx)
ctx - a servlet context
java.lang.IllegalArgumentException - thrown if ctx is null| Method Detail |
public java.net.URL getURL(URI uri)
throws java.net.MalformedURLException
getURL in interface URLFactoryjava.net.MalformedURLExceptionprotected java.lang.String getResURI(URI uri)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||