public class ServletContextUtil
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_WEB_INF |
static String |
URI_ATTRIBUTE |
| Constructor and Description |
|---|
ServletContextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
getClassNames(javax.servlet.ServletContext servletContext) |
static long |
getLastModified(javax.servlet.ServletContext servletContext) |
static long |
getLastModified(javax.servlet.ServletContext servletContext,
String path) |
static long |
getLastModified(javax.servlet.ServletContext servletContext,
String path,
boolean cache) |
static String |
getResourcePath(URL url) |
static URI |
getResourceURI(URL url) |
static String |
getRootPath(javax.servlet.ServletContext servletContext) |
static URI |
getRootURI(javax.servlet.ServletContext servletContext) |
public static final String PATH_WEB_INF
public static final String URI_ATTRIBUTE
public static Set<String> getClassNames(javax.servlet.ServletContext servletContext)
throws IOException
IOExceptionpublic static long getLastModified(javax.servlet.ServletContext servletContext)
public static long getLastModified(javax.servlet.ServletContext servletContext,
String path)
public static long getLastModified(javax.servlet.ServletContext servletContext,
String path,
boolean cache)
public static String getResourcePath(URL url)
throws URISyntaxException
URISyntaxExceptionpublic static URI getResourceURI(URL url)
throws URISyntaxException
URISyntaxExceptionpublic static String getRootPath(javax.servlet.ServletContext servletContext)
throws MalformedURLException
MalformedURLExceptionpublic static URI getRootURI(javax.servlet.ServletContext servletContext)
throws MalformedURLException
MalformedURLException