public class ServletContextHandler.Context extends ContextHandler.Context
_enabled, _extendedListenerTypes
ORDERED_LIBS, TEMPDIR
Constructor and Description |
---|
ServletContextHandler.Context() |
checkListener, createInstance, getAttribute, getAttributeNames, getClassLoader, getContext, getContextHandler, getContextPath, getInitParameter, getInitParameterNames, getMimeType, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServletContextName, isEnabled, isExtendedListenerTypes, log, log, log, removeAttribute, setAttribute, setEnabled, setExtendedListenerTypes, toString
getEffectiveMajorVersion, getEffectiveMinorVersion, getMajorVersion, getMinorVersion, getServerInfo, getServlet, getServletNames, getServlets, getVirtualServerName, setEffectiveMajorVersion, setEffectiveMinorVersion
addAll, clearAttributes, getAttributeEntrySet, getAttributeNamesCopy, getAttributeNameSet, size
public RequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher
in interface ServletContext
getNamedDispatcher
in class ContextHandler.NoContext
public FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass)
addFilter
in interface ServletContext
addFilter
in class ContextHandler.NoContext
public FilterRegistration.Dynamic addFilter(String filterName, String className)
addFilter
in interface ServletContext
addFilter
in class ContextHandler.NoContext
public FilterRegistration.Dynamic addFilter(String filterName, Filter filter)
addFilter
in interface ServletContext
addFilter
in class ContextHandler.NoContext
public ServletRegistration.Dynamic addServlet(String servletName, Class<? extends Servlet> servletClass)
addServlet
in interface ServletContext
addServlet
in class ContextHandler.NoContext
public ServletRegistration.Dynamic addServlet(String servletName, String className)
addServlet
in interface ServletContext
addServlet
in class ContextHandler.NoContext
public ServletRegistration.Dynamic addServlet(String servletName, Servlet servlet)
addServlet
in interface ServletContext
addServlet
in class ContextHandler.NoContext
public boolean setInitParameter(String name, String value)
setInitParameter
in interface ServletContext
setInitParameter
in class ContextHandler.Context
public <T extends Filter> T createFilter(Class<T> c) throws ServletException
createFilter
in interface ServletContext
createFilter
in class ContextHandler.NoContext
ServletException
public <T extends Servlet> T createServlet(Class<T> c) throws ServletException
createServlet
in interface ServletContext
createServlet
in class ContextHandler.NoContext
ServletException
public Set<SessionTrackingMode> getDefaultSessionTrackingModes()
getDefaultSessionTrackingModes
in interface ServletContext
getDefaultSessionTrackingModes
in class ContextHandler.NoContext
public Set<SessionTrackingMode> getEffectiveSessionTrackingModes()
getEffectiveSessionTrackingModes
in interface ServletContext
getEffectiveSessionTrackingModes
in class ContextHandler.NoContext
public FilterRegistration getFilterRegistration(String filterName)
getFilterRegistration
in interface ServletContext
getFilterRegistration
in class ContextHandler.NoContext
public Map<String,? extends FilterRegistration> getFilterRegistrations()
getFilterRegistrations
in interface ServletContext
getFilterRegistrations
in class ContextHandler.NoContext
public ServletRegistration getServletRegistration(String servletName)
getServletRegistration
in interface ServletContext
getServletRegistration
in class ContextHandler.NoContext
public Map<String,? extends ServletRegistration> getServletRegistrations()
getServletRegistrations
in interface ServletContext
getServletRegistrations
in class ContextHandler.NoContext
public SessionCookieConfig getSessionCookieConfig()
getSessionCookieConfig
in interface ServletContext
getSessionCookieConfig
in class ContextHandler.NoContext
public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes)
setSessionTrackingModes
in interface ServletContext
setSessionTrackingModes
in class ContextHandler.NoContext
public void addListener(String className)
addListener
in interface ServletContext
addListener
in class ContextHandler.Context
public <T extends EventListener> void addListener(T t)
addListener
in interface ServletContext
addListener
in class ContextHandler.Context
public void addListener(Class<? extends EventListener> listenerClass)
addListener
in interface ServletContext
addListener
in class ContextHandler.Context
public <T extends EventListener> T createListener(Class<T> clazz) throws ServletException
createListener
in interface ServletContext
createListener
in class ContextHandler.Context
ServletException
public JspConfigDescriptor getJspConfigDescriptor()
getJspConfigDescriptor
in interface ServletContext
getJspConfigDescriptor
in class ContextHandler.Context
public void setJspConfigDescriptor(JspConfigDescriptor d)
setJspConfigDescriptor
in class ContextHandler.Context
public void declareRoles(String... roleNames)
declareRoles
in interface ServletContext
declareRoles
in class ContextHandler.Context
Copyright © 1995-2015 Webtide. All Rights Reserved.