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 longgetLastModified(javax.servlet.ServletContext servletContext) static longgetLastModified(javax.servlet.ServletContext servletContext, String path) static longgetLastModified(javax.servlet.ServletContext servletContext, String path, boolean cache) static StringgetResourcePath(URL url) static URIgetResourceURI(URL url) static StringgetRootPath(javax.servlet.ServletContext servletContext) static URIgetRootURI(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
-