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