public class SpringBootMockServletContext extends MockServletContext
MockServletContext
実装。既知の Spring Boot リソースの場所を考慮し、場所が見つからない場合は "/" に空のディレクトリを使用します。ORDERED_LIBSEE, TEMPDIREE
コンストラクターと説明 |
---|
SpringBootMockServletContext(StringSE resourceBasePath) |
SpringBootMockServletContext(StringSE resourceBasePath, ResourceLoader resourceLoader) |
修飾子と型 | メソッドと説明 |
---|---|
URLSE | getResource(StringSE path) |
protected StringSE | getResourceBasePathLocation(StringSE path) |
protected StringSE | getResourceLocation(StringSE path) |
addFilter, addFilter, addFilter, addInitParameter, addJspFile, addListener, addListener, addListener, addMimeType, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getClassLoader, getContext, getContextPath, getDeclaredRoles, getDefaultServletName, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestCharacterEncoding, getRequestDispatcher, getResourceAsStream, getResourcePaths, getResponseCharacterEncoding, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, getSessionTimeout, getVirtualServerName, log, log, log, registerContext, registerNamedDispatcher, removeAttribute, setAttribute, setContextPath, setDefaultServletName, setEffectiveMajorVersion, setEffectiveMinorVersion, setInitParameter, setMajorVersion, setMinorVersion, setRequestCharacterEncoding, setResponseCharacterEncoding, setServletContextName, setSessionTimeout, setSessionTrackingModes, unregisterNamedDispatcher
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public SpringBootMockServletContext(StringSE resourceBasePath)
public SpringBootMockServletContext(StringSE resourceBasePath, ResourceLoader resourceLoader)
protected StringSE getResourceLocation(StringSE path)
MockServletContext
の getResourceLocation
public URLSE getResource(StringSE path) throws MalformedURLExceptionSE
ServletContextEE
の getResourceEE
MockServletContext
の getResource
MalformedURLExceptionSE