Class ServletContextUtil
Object
com.liferay.portal.kernel.servlet.ServletContextUtil
- Author:
- Brian Wing Shun Chan, Raymond Augé, James Lefeu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassNames
(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)
-
Field Details
-
PATH_WEB_INF
- See Also:
-
URI_ATTRIBUTE
-
-
Constructor Details
-
ServletContextUtil
public ServletContextUtil()
-
-
Method Details
-
getClassNames
public static Set<String> getClassNames(javax.servlet.ServletContext servletContext) throws IOException - Throws:
IOException
-
getLastModified
public static long getLastModified(javax.servlet.ServletContext servletContext) -
getLastModified
-
getLastModified
public static long getLastModified(javax.servlet.ServletContext servletContext, String path, boolean cache) -
getResourcePath
- Throws:
URISyntaxException
-
getResourceURI
- Throws:
URISyntaxException
-
getRootPath
public static String getRootPath(javax.servlet.ServletContext servletContext) throws MalformedURLException - Throws:
MalformedURLException
-
getRootURI
public static URI getRootURI(javax.servlet.ServletContext servletContext) throws MalformedURLException - Throws:
MalformedURLException
-