public class UrlResourceSource extends AbstractResourceSource implements ResourceSource
| Constructor and Description |
|---|
UrlResourceSource(javax.servlet.ServletContext sc,
String basePath)
Create the source based on a directory name.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceContent |
getContent(String entry)
Search for the given URL resource and return as ResourceContent.
|
String |
getRealPath()
Returns the "real path" from the ServletContext root.
|
readBytes, readStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadBytes, readStringpublic UrlResourceSource(javax.servlet.ServletContext sc,
String basePath)
public String getRealPath()
This can be null for unpacked WAR deployment.
getRealPath in interface ResourceSourcepublic ResourceContent getContent(String entry)
Returns null if the resource is not found.
getContent in interface ResourceSourceCopyright © 2014. All Rights Reserved.