Package com.avoka.fc.core.test
Class NopServletContext
java.lang.Object
com.avoka.fc.core.test.NopServletContext
- All Implemented Interfaces:
ServletContext
This class provides a servlet context implementation that does nothing. It can be used during db-config loading.
-
Field Summary
Fields inherited from interface javax.servlet.ServletContext
ORDERED_LIBS, TEMPDIR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddJspFile
(String a, String b) void
addListener
(Class<? extends EventListener> arg0) void
addListener
(String arg0) <T extends EventListener>
voidaddListener
(T arg0) addServlet
(String arg0, Class<? extends Servlet> arg1) addServlet
(String arg0, String arg1) addServlet
(String arg0, Servlet arg1) <T extends Filter>
TcreateFilter
(Class<T> arg0) <T extends EventListener>
TcreateListener
(Class<T> arg0) <T extends Servlet>
TcreateServlet
(Class<T> arg0) void
declareRoles
(String... arg0) getAttribute
(String arg0) getContext
(String arg0) int
int
getFilterRegistration
(String arg0) Map<String,
? extends FilterRegistration> getInitParameter
(String arg0) int
getMimeType
(String arg0) int
getNamedDispatcher
(String arg0) getRealPath
(String arg0) getRequestDispatcher
(String arg0) getResource
(String arg0) getResourceAsStream
(String arg0) getResourcePaths
(String arg0) getServlet
(String arg0) getServletRegistration
(String arg0) Map<String,
? extends ServletRegistration> int
void
void
void
void
removeAttribute
(String arg0) void
setAttribute
(String arg0, Object arg1) boolean
setInitParameter
(String arg0, String arg1) void
setRequestCharacterEncoding
(String encoding) void
setResponseCharacterEncoding
(String encoding) void
setSessionTimeout
(int time) void
-
Constructor Details
-
NopServletContext
public NopServletContext()
-
-
Method Details
-
setAttribute
- Specified by:
setAttribute
in interfaceServletContext
-
removeAttribute
- Specified by:
removeAttribute
in interfaceServletContext
-
log
- Specified by:
log
in interfaceServletContext
-
log
- Specified by:
log
in interfaceServletContext
-
log
- Specified by:
log
in interfaceServletContext
-
getServlets
- Specified by:
getServlets
in interfaceServletContext
-
getServletNames
- Specified by:
getServletNames
in interfaceServletContext
-
getServletContextName
- Specified by:
getServletContextName
in interfaceServletContext
-
getServlet
- Specified by:
getServlet
in interfaceServletContext
- Throws:
ServletException
-
getServerInfo
- Specified by:
getServerInfo
in interfaceServletContext
-
getResourcePaths
- Specified by:
getResourcePaths
in interfaceServletContext
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfaceServletContext
-
getResource
- Specified by:
getResource
in interfaceServletContext
- Throws:
MalformedURLException
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfaceServletContext
-
getRealPath
- Specified by:
getRealPath
in interfaceServletContext
-
getNamedDispatcher
- Specified by:
getNamedDispatcher
in interfaceServletContext
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceServletContext
-
getMimeType
- Specified by:
getMimeType
in interfaceServletContext
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceServletContext
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfaceServletContext
-
getInitParameter
- Specified by:
getInitParameter
in interfaceServletContext
-
getContext
- Specified by:
getContext
in interfaceServletContext
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceServletContext
-
getAttribute
- Specified by:
getAttribute
in interfaceServletContext
-
addFilter
- Specified by:
addFilter
in interfaceServletContext
-
addFilter
- Specified by:
addFilter
in interfaceServletContext
-
addFilter
- Specified by:
addFilter
in interfaceServletContext
-
addListener
- Specified by:
addListener
in interfaceServletContext
-
addListener
- Specified by:
addListener
in interfaceServletContext
-
addListener
- Specified by:
addListener
in interfaceServletContext
-
addServlet
- Specified by:
addServlet
in interfaceServletContext
-
addServlet
- Specified by:
addServlet
in interfaceServletContext
-
addServlet
- Specified by:
addServlet
in interfaceServletContext
-
createFilter
- Specified by:
createFilter
in interfaceServletContext
- Throws:
ServletException
-
createListener
- Specified by:
createListener
in interfaceServletContext
- Throws:
ServletException
-
createServlet
- Specified by:
createServlet
in interfaceServletContext
- Throws:
ServletException
-
declareRoles
- Specified by:
declareRoles
in interfaceServletContext
-
getClassLoader
- Specified by:
getClassLoader
in interfaceServletContext
-
getContextPath
- Specified by:
getContextPath
in interfaceServletContext
-
getDefaultSessionTrackingModes
- Specified by:
getDefaultSessionTrackingModes
in interfaceServletContext
-
getEffectiveMajorVersion
public int getEffectiveMajorVersion()- Specified by:
getEffectiveMajorVersion
in interfaceServletContext
-
getEffectiveMinorVersion
public int getEffectiveMinorVersion()- Specified by:
getEffectiveMinorVersion
in interfaceServletContext
-
getEffectiveSessionTrackingModes
- Specified by:
getEffectiveSessionTrackingModes
in interfaceServletContext
-
getFilterRegistration
- Specified by:
getFilterRegistration
in interfaceServletContext
-
getFilterRegistrations
- Specified by:
getFilterRegistrations
in interfaceServletContext
-
getJspConfigDescriptor
- Specified by:
getJspConfigDescriptor
in interfaceServletContext
-
getServletRegistration
- Specified by:
getServletRegistration
in interfaceServletContext
-
getServletRegistrations
- Specified by:
getServletRegistrations
in interfaceServletContext
-
getSessionCookieConfig
- Specified by:
getSessionCookieConfig
in interfaceServletContext
-
setInitParameter
- Specified by:
setInitParameter
in interfaceServletContext
-
setSessionTrackingModes
- Specified by:
setSessionTrackingModes
in interfaceServletContext
-
getVirtualServerName
- Specified by:
getVirtualServerName
in interfaceServletContext
-
setResponseCharacterEncoding
- Specified by:
setResponseCharacterEncoding
in interfaceServletContext
-
getResponseCharacterEncoding
- Specified by:
getResponseCharacterEncoding
in interfaceServletContext
-
setRequestCharacterEncoding
- Specified by:
setRequestCharacterEncoding
in interfaceServletContext
-
getRequestCharacterEncoding
- Specified by:
getRequestCharacterEncoding
in interfaceServletContext
-
setSessionTimeout
public void setSessionTimeout(int time) - Specified by:
setSessionTimeout
in interfaceServletContext
-
getSessionTimeout
public int getSessionTimeout()- Specified by:
getSessionTimeout
in interfaceServletContext
-
addJspFile
- Specified by:
addJspFile
in interfaceServletContext
-