public static class ContextHandler.StaticContext extends AttributesMap implements ServletContext
| Constructor and Description |
|---|
StaticContext() |
addAll, clearAttributes, getAttribute, getAttributeEntrySet, getAttributeNames, getAttributeNamesCopy, getAttributeNameSet, removeAttribute, setAttribute, size, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getAttributeNames, removeAttribute, setAttributepublic ServletContext getContext(String uripath)
getContext in interface ServletContextpublic int getMajorVersion()
getMajorVersion in interface ServletContextpublic String getMimeType(String file)
getMimeType in interface ServletContextpublic int getMinorVersion()
getMinorVersion in interface ServletContextpublic RequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher in interface ServletContextpublic RequestDispatcher getRequestDispatcher(String uriInContext)
getRequestDispatcher in interface ServletContextpublic String getRealPath(String path)
getRealPath in interface ServletContextpublic URL getResource(String path) throws MalformedURLException
getResource in interface ServletContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
getResourceAsStream in interface ServletContextpublic Set<String> getResourcePaths(String path)
getResourcePaths in interface ServletContextpublic String getServerInfo()
getServerInfo in interface ServletContext@Deprecated public Servlet getServlet(String name) throws ServletException
getServlet in interface ServletContextServletException@Deprecated public Enumeration<String> getServletNames()
getServletNames in interface ServletContext@Deprecated public Enumeration<Servlet> getServlets()
getServlets in interface ServletContextpublic void log(Exception exception, String msg)
log in interface ServletContextpublic void log(String msg)
log in interface ServletContextpublic void log(String message, Throwable throwable)
log in interface ServletContextpublic String getInitParameter(String name)
getInitParameter in interface ServletContextpublic Enumeration<String> getInitParameterNames()
getInitParameterNames in interface ServletContextpublic String getServletContextName()
getServletContextName in interface ServletContextpublic String getContextPath()
getContextPath in interface ServletContextpublic FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass)
public FilterRegistration.Dynamic addFilter(String filterName, Filter filter)
public FilterRegistration.Dynamic addFilter(String filterName, String className)
public ServletRegistration.Dynamic addServlet(String servletName, Class<? extends Servlet> servletClass)
public ServletRegistration.Dynamic addServlet(String servletName, Servlet servlet)
public ServletRegistration.Dynamic addServlet(String servletName, String className)
public <T extends Filter> T createFilter(Class<T> c) throws ServletException
ServletExceptionpublic <T extends Servlet> T createServlet(Class<T> c) throws ServletException
ServletExceptionpublic Set<SessionTrackingMode> getDefaultSessionTrackingModes()
public Set<SessionTrackingMode> getEffectiveSessionTrackingModes()
public FilterRegistration getFilterRegistration(String filterName)
public Map<String,? extends FilterRegistration> getFilterRegistrations()
public ServletRegistration getServletRegistration(String servletName)
public Map<String,? extends ServletRegistration> getServletRegistrations()
public SessionCookieConfig getSessionCookieConfig()
public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes)
public void addListener(String className)
public <T extends EventListener> void addListener(T t)
public void addListener(Class<? extends EventListener> listenerClass)
public <T extends EventListener> T createListener(Class<T> clazz) throws ServletException
ServletExceptionpublic ClassLoader getClassLoader()
public int getEffectiveMajorVersion()
public int getEffectiveMinorVersion()
public void setEffectiveMajorVersion(int v)
public void setEffectiveMinorVersion(int v)
public JspConfigDescriptor getJspConfigDescriptor()
public void declareRoles(String... roleNames)
public String getVirtualServerName()
Copyright © 1995–2017 Webtide. All rights reserved.