public class ThreadLocalServletContext extends AbstractRestThreadLocalProxy<ServletContext>
Modifier | Constructor and Description |
---|---|
protected |
ThreadLocalServletContext() |
Modifier and Type | Method and Description |
---|---|
FilterRegistration.Dynamic |
addFilter(java.lang.String filterName,
java.lang.Class<? extends Filter> filterClass) |
FilterRegistration.Dynamic |
addFilter(java.lang.String filterName,
Filter filter) |
FilterRegistration.Dynamic |
addFilter(java.lang.String filterName,
java.lang.String className) |
void |
addListener(java.lang.Class<? extends java.util.EventListener> listenerClass) |
void |
addListener(java.lang.String className) |
<T extends java.util.EventListener> |
addListener(T t) |
ServletRegistration.Dynamic |
addServlet(java.lang.String servletName,
java.lang.Class<? extends Servlet> clazz) |
ServletRegistration.Dynamic |
addServlet(java.lang.String servletName,
Servlet servlet) |
ServletRegistration.Dynamic |
addServlet(java.lang.String servletName,
java.lang.String className) |
<T extends Filter> |
createFilter(java.lang.Class<T> clazz) |
<T extends java.util.EventListener> |
createListener(java.lang.Class<T> clazz) |
<T extends Servlet> |
createServlet(java.lang.Class<T> clazz) |
void |
declareRoles(java.lang.String... roleNames) |
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
java.lang.ClassLoader |
getClassLoader() |
ServletContext |
getContext(java.lang.String uripath) |
java.lang.String |
getContextPath() |
java.util.Set<SessionTrackingMode> |
getDefaultSessionTrackingModes() |
int |
getEffectiveMajorVersion() |
int |
getEffectiveMinorVersion() |
java.util.Set<SessionTrackingMode> |
getEffectiveSessionTrackingModes() |
FilterRegistration |
getFilterRegistration(java.lang.String filterName) |
java.util.Map<java.lang.String,? extends FilterRegistration> |
getFilterRegistrations() |
java.lang.String |
getInitParameter(java.lang.String name) |
java.util.Enumeration<java.lang.String> |
getInitParameterNames() |
JspConfigDescriptor |
getJspConfigDescriptor() |
int |
getMajorVersion() |
java.lang.String |
getMimeType(java.lang.String file) |
int |
getMinorVersion() |
RequestDispatcher |
getNamedDispatcher(java.lang.String name) |
java.lang.String |
getRealPath(java.lang.String path) |
RequestDispatcher |
getRequestDispatcher(java.lang.String path) |
java.net.URL |
getResource(java.lang.String path) |
java.io.InputStream |
getResourceAsStream(java.lang.String path) |
java.util.Set<java.lang.String> |
getResourcePaths(java.lang.String path) |
java.lang.String |
getServerInfo() |
Servlet |
getServlet(java.lang.String name) |
java.lang.String |
getServletContextName() |
java.util.Enumeration<java.lang.String> |
getServletNames() |
ServletRegistration |
getServletRegistration(java.lang.String servletName) |
java.util.Map<java.lang.String,? extends ServletRegistration> |
getServletRegistrations() |
java.util.Enumeration<Servlet> |
getServlets() |
SessionCookieConfig |
getSessionCookieConfig() |
java.lang.String |
getVirtualServerName() |
void |
log(java.lang.Exception exception,
java.lang.String msg) |
void |
log(java.lang.String msg) |
void |
log(java.lang.String message,
java.lang.Throwable throwable) |
void |
removeAttribute(java.lang.String name) |
void |
setAttribute(java.lang.String name,
java.lang.Object object) |
boolean |
setInitParameter(java.lang.String name,
java.lang.String value) |
void |
setSessionTrackingModes(java.util.Set<SessionTrackingMode> sessionTrackingModes) |
find, get, remove, set
public java.lang.String getContextPath()
public ServletContext getContext(java.lang.String uripath)
public int getMajorVersion()
public int getMinorVersion()
public java.lang.String getMimeType(java.lang.String file)
public java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
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 RequestDispatcher getRequestDispatcher(java.lang.String path)
public RequestDispatcher getNamedDispatcher(java.lang.String name)
public Servlet getServlet(java.lang.String name) throws ServletException
ServletException
public java.util.Enumeration<Servlet> getServlets()
public java.util.Enumeration<java.lang.String> getServletNames()
public void log(java.lang.String msg)
public void log(java.lang.Exception exception, java.lang.String msg)
public void log(java.lang.String message, java.lang.Throwable throwable)
public java.lang.String getRealPath(java.lang.String path)
public java.lang.String getServerInfo()
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.Object getAttribute(java.lang.String name)
public java.util.Enumeration<java.lang.String> getAttributeNames()
public void setAttribute(java.lang.String name, java.lang.Object object)
public void removeAttribute(java.lang.String name)
public java.lang.String getServletContextName()
public ServletRegistration.Dynamic addServlet(java.lang.String servletName, java.lang.String className) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public ServletRegistration.Dynamic addServlet(java.lang.String servletName, Servlet servlet) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public ServletRegistration.Dynamic addServlet(java.lang.String servletName, java.lang.Class<? extends Servlet> clazz) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public <T extends Servlet> T createServlet(java.lang.Class<T> clazz) throws ServletException
ServletException
public ServletRegistration getServletRegistration(java.lang.String servletName)
public java.util.Map<java.lang.String,? extends ServletRegistration> getServletRegistrations()
public FilterRegistration.Dynamic addFilter(java.lang.String filterName, java.lang.String className) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public FilterRegistration.Dynamic addFilter(java.lang.String filterName, Filter filter) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public FilterRegistration.Dynamic addFilter(java.lang.String filterName, java.lang.Class<? extends Filter> filterClass) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
public <T extends Filter> T createFilter(java.lang.Class<T> clazz) throws ServletException
ServletException
public FilterRegistration getFilterRegistration(java.lang.String filterName)
public java.util.Map<java.lang.String,? extends FilterRegistration> getFilterRegistrations()
public void addListener(java.lang.Class<? extends java.util.EventListener> listenerClass)
public void addListener(java.lang.String className)
public <T extends java.util.EventListener> void addListener(T t)
public <T extends java.util.EventListener> T createListener(java.lang.Class<T> clazz) throws ServletException
ServletException
public void declareRoles(java.lang.String... roleNames)
public java.lang.String getVirtualServerName()
public SessionCookieConfig getSessionCookieConfig()
public void setSessionTrackingModes(java.util.Set<SessionTrackingMode> sessionTrackingModes)
public java.util.Set<SessionTrackingMode> getDefaultSessionTrackingModes()
public int getEffectiveMajorVersion() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public int getEffectiveMinorVersion() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public java.util.Set<SessionTrackingMode> getEffectiveSessionTrackingModes()
public java.lang.ClassLoader getClassLoader()
public JspConfigDescriptor getJspConfigDescriptor()