public static class LightweightWebAppBuilder.LightServletContext
extends MockServletContext
Constructor and Description |
---|
LightServletContext(ServletContext delegate,
java.lang.ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
java.lang.ClassLoader |
getClassLoader() |
int |
getEffectiveMajorVersion() |
int |
getMajorVersion() |
java.net.URL |
getResource(java.lang.String path) |
java.io.InputStream |
getResourceAsStream(java.lang.String path) |
java.lang.String |
getServerInfo() |
java.lang.String |
getVirtualServerName() |
void |
setAttribute(java.lang.String name,
java.lang.Object object) |
public LightServletContext(ServletContext delegate, java.lang.ClassLoader loader)
public java.lang.ClassLoader getClassLoader()
public java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLException
java.net.MalformedURLException
public java.io.InputStream getResourceAsStream(java.lang.String path)
public int getMajorVersion()
public int getEffectiveMajorVersion()
public java.lang.String getVirtualServerName()
public void setAttribute(java.lang.String name, java.lang.Object object)
public java.lang.Object getAttribute(java.lang.String name)
public java.util.Enumeration<java.lang.String> getAttributeNames()
public java.lang.String getServerInfo()