public class EmbeddedServletContext
extends MockServletContext
Modifier and Type | Class and Description |
---|---|
static interface |
EmbeddedServletContext.ResourceProvider |
Constructor and Description |
---|
EmbeddedServletContext() |
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() |
java.lang.String |
getInitParameter(java.lang.String name) |
java.util.Enumeration<java.lang.String> |
getInitParameterNames() |
int |
getMajorVersion() |
int |
getMinorVersion() |
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) |
boolean |
setInitParameter(java.lang.String name,
java.lang.String value) |
public java.lang.String getInitParameter(java.lang.String name)
public java.util.Enumeration<java.lang.String> getInitParameterNames()
public boolean setInitParameter(java.lang.String name, java.lang.String value)
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 int getMinorVersion()
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()