public class MockServletContext extends org.apache.myfaces.test.mock.MockServletContext
Constructor and Description |
---|
MockServletContext(URI base) |
Modifier and Type | Method and Description |
---|---|
String |
getRealPath(String path) |
javax.servlet.RequestDispatcher |
getRequestDispatcher(String path) |
URL |
getResource(String path) |
InputStream |
getResourceAsStream(String path) |
Set |
getResourcePaths(String path) |
addAttributeListener, addInitParameter, addMimeType, getAttribute, getAttributeNames, getContext, getContextPath, getInitParameter, getInitParameterNames, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, getWebContainer, log, log, log, removeAttribute, setAttribute, setDocumentRoot, setDocumentRoot, setWebContainer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFilter, addFilter, addFilter, addListener, addListener, addListener, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getClassLoader, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getJspConfigDescriptor, getServletRegistration, getServletRegistrations, getSessionCookieConfig, setInitParameter, setSessionTrackingModes
protected final URI base
public MockServletContext(URI base)
public Set getResourcePaths(String path)
getResourcePaths
in interface javax.servlet.ServletContext
getResourcePaths
in class org.apache.myfaces.test.mock.MockServletContext
public URL getResource(String path) throws MalformedURLException
getResource
in interface javax.servlet.ServletContext
getResource
in class org.apache.myfaces.test.mock.MockServletContext
MalformedURLException
public InputStream getResourceAsStream(String path)
getResourceAsStream
in interface javax.servlet.ServletContext
getResourceAsStream
in class org.apache.myfaces.test.mock.MockServletContext
public javax.servlet.RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface javax.servlet.ServletContext
getRequestDispatcher
in class org.apache.myfaces.test.mock.MockServletContext
public String getRealPath(String path)
getRealPath
in interface javax.servlet.ServletContext
getRealPath
in class org.apache.myfaces.test.mock.MockServletContext
Copyright © 2020 The Apache Software Foundation. All rights reserved.