public class ContextHandler.Context extends ContextHandler.StaticContext
A partial implementation of ServletContext
. A complete implementation is provided by the
derived ContextHandler
implementations.
Attributes.Wrapper
ORDERED_LIBS, TEMPDIR
addFilter, addFilter, addFilter, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getMajorVersion, getMinorVersion, getNamedDispatcher, getServerInfo, getServlet, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, setEffectiveMajorVersion, setEffectiveMinorVersion, setSessionTrackingModes
addAll, clearAttributes, dump, dump, getAttributeEntrySet, getAttributeNamesCopy, getAttributeNameSet, size
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
unwrap
dump, dumpContainer, dumpIterable, dumpMapEntries, dumpObject, dumpObjects, dumpSelf, named
public ContextHandler getContextHandler()
public ServletContext getContext(String uripath)
getContext
in interface ServletContext
getContext
in class ContextHandler.StaticContext
public String getMimeType(String file)
getMimeType
in interface ServletContext
getMimeType
in class ContextHandler.StaticContext
public RequestDispatcher getRequestDispatcher(String uriInContext)
getRequestDispatcher
in interface ServletContext
getRequestDispatcher
in class ContextHandler.StaticContext
public String getRealPath(String path)
getRealPath
in interface ServletContext
getRealPath
in class ContextHandler.StaticContext
public URL getResource(String path) throws MalformedURLException
getResource
in interface ServletContext
getResource
in class ContextHandler.StaticContext
MalformedURLException
public InputStream getResourceAsStream(String path)
getResourceAsStream
in interface ServletContext
getResourceAsStream
in class ContextHandler.StaticContext
public Set<String> getResourcePaths(String path)
getResourcePaths
in interface ServletContext
getResourcePaths
in class ContextHandler.StaticContext
public void log(Exception exception, String msg)
log
in interface ServletContext
log
in class ContextHandler.StaticContext
public void log(String msg)
log
in interface ServletContext
log
in class ContextHandler.StaticContext
public void log(String message, Throwable throwable)
log
in interface ServletContext
log
in class ContextHandler.StaticContext
public String getInitParameter(String name)
getInitParameter
in interface ServletContext
getInitParameter
in class ContextHandler.StaticContext
public Enumeration<String> getInitParameterNames()
getInitParameterNames
in interface ServletContext
getInitParameterNames
in class ContextHandler.StaticContext
public Object getAttribute(String name)
getAttribute
in interface ServletContext
getAttribute
in interface Attributes
getAttribute
in class AttributesMap
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface ServletContext
getAttributeNames
in interface Attributes
getAttributeNames
in class AttributesMap
public void setAttribute(String name, Object value)
setAttribute
in interface ServletContext
setAttribute
in interface Attributes
setAttribute
in class AttributesMap
public void removeAttribute(String name)
removeAttribute
in interface ServletContext
removeAttribute
in interface Attributes
removeAttribute
in class AttributesMap
public String getServletContextName()
getServletContextName
in interface ServletContext
getServletContextName
in class ContextHandler.StaticContext
public String getContextPath()
getContextPath
in interface ServletContext
getContextPath
in class ContextHandler.StaticContext
public String toString()
toString
in class AttributesMap
public boolean setInitParameter(String name, String value)
setInitParameter
in interface ServletContext
setInitParameter
in class ContextHandler.StaticContext
public void addListener(String className)
addListener
in interface ServletContext
addListener
in class ContextHandler.StaticContext
public <T extends EventListener> void addListener(T t)
addListener
in interface ServletContext
addListener
in class ContextHandler.StaticContext
public void addListener(Class<? extends EventListener> listenerClass)
addListener
in interface ServletContext
addListener
in class ContextHandler.StaticContext
public void checkListener(Class<? extends EventListener> listener) throws IllegalStateException
IllegalStateException
public void setExtendedListenerTypes(boolean extended)
public boolean isExtendedListenerTypes()
public ClassLoader getClassLoader()
getClassLoader
in interface ServletContext
getClassLoader
in class ContextHandler.StaticContext
public JspConfigDescriptor getJspConfigDescriptor()
getJspConfigDescriptor
in interface ServletContext
getJspConfigDescriptor
in class ContextHandler.StaticContext
public void setJspConfigDescriptor(JspConfigDescriptor d)
public void declareRoles(String... roleNames)
declareRoles
in interface ServletContext
declareRoles
in class ContextHandler.StaticContext
public void setEnabled(boolean enabled)
public boolean isEnabled()
public String getVirtualServerName()
getVirtualServerName
in interface ServletContext
getVirtualServerName
in class ContextHandler.StaticContext
Copyright © 2010 - 2020 Adobe. All Rights Reserved