public class DummyServletContext extends Object
| Constructor and Description |
|---|
DummyServletContext() |
public Enumeration getAttributeNames()
public ServletContext getContext(String uripath)
public String getContextPath()
public Enumeration getInitParameterNames()
public int getMajorVersion()
public int getMinorVersion()
public RequestDispatcher getNamedDispatcher(String name)
public RequestDispatcher getRequestDispatcher(String path)
public URL getResource(String path) throws MalformedURLException
MalformedURLExceptionpublic InputStream getResourceAsStream(String path)
public String getServerInfo()
public Servlet getServlet(String name) throws ServletException
ServletExceptionpublic String getServletContextName()
public Enumeration getServletNames()
public Enumeration getServlets()
public void log(String msg)
public void removeAttribute(String name)
public Dynamic addFilter(String arg0, Filter arg1)
public void addListener(Class<? extends EventListener> arg0)
public void addListener(String arg0)
public <T extends EventListener> void addListener(T arg0)
public javax.servlet.ServletRegistration.Dynamic addServlet(String arg0, Servlet arg1)
public javax.servlet.ServletRegistration.Dynamic addServlet(String arg0, Class<? extends Servlet> arg1)
public <T extends Filter> T createFilter(Class<T> arg0) throws ServletException
ServletExceptionpublic <T extends EventListener> T createListener(Class<T> arg0) throws ServletException
ServletExceptionpublic <T extends Servlet> T createServlet(Class<T> arg0) throws ServletException
ServletExceptionpublic void declareRoles(String... arg0)
public ClassLoader getClassLoader()
public Set<SessionTrackingMode> getDefaultSessionTrackingModes()
public int getEffectiveMajorVersion()
public int getEffectiveMinorVersion()
public Set<SessionTrackingMode> getEffectiveSessionTrackingModes()
public FilterRegistration getFilterRegistration(String arg0)
public JspConfigDescriptor getJspConfigDescriptor()
public ServletRegistration getServletRegistration(String arg0)
public SessionCookieConfig getSessionCookieConfig()
public void setSessionTrackingModes(Set<SessionTrackingMode> arg0) throws IllegalStateException, IllegalArgumentException
Copyright © 2017 SAP SE. All Rights Reserved.