Liferay 6.2-ce-ga5

com.liferay.portal.kernel.servlet
Class ServletContextUtil

java.lang.Object
  extended by com.liferay.portal.kernel.servlet.ServletContextUtil

public class ServletContextUtil
extends Object


Field Summary
static String PATH_WEB_XML
           
static String URI_ATTRIBUTE
           
 
Constructor Summary
ServletContextUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_WEB_XML

public static final String PATH_WEB_XML
See Also:
Constant Field Values

URI_ATTRIBUTE

public static final String URI_ATTRIBUTE
Constructor Detail

ServletContextUtil

public ServletContextUtil()
Method Detail

getClassNames

public static Set<String> getClassNames(javax.servlet.ServletContext servletContext)
                                 throws IOException
Throws:
IOException

getLastModified

public static long getLastModified(javax.servlet.ServletContext servletContext)

getLastModified

public static long getLastModified(javax.servlet.ServletContext servletContext,
                                   String path)

getLastModified

public static long getLastModified(javax.servlet.ServletContext servletContext,
                                   String path,
                                   boolean cache)

getResourcePath

public static String getResourcePath(URL url)
                              throws URISyntaxException
Throws:
URISyntaxException

getResourceURI

public static URI getResourceURI(URL url)
                          throws URISyntaxException
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

Liferay 6.2-ce-ga5