public class ContextHandler.Context extends ContextHandler.NoContext
A partial implementation of ServletContext
. A complete implementation is provided by the derived ContextHandler
.
Modifier and Type | Field and Description |
---|---|
protected boolean |
_enabled |
protected boolean |
_extendedListenerTypes |
ORDERED_LIBS, TEMPDIR
Modifier | Constructor and Description |
---|---|
protected |
ContextHandler.Context() |
addFilter, addFilter, addFilter, addServlet, addServlet, addServlet, createFilter, createServlet, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getMajorVersion, getMinorVersion, getNamedDispatcher, getServerInfo, getServlet, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, getVirtualServerName, setEffectiveMajorVersion, setEffectiveMinorVersion, setSessionTrackingModes
addAll, clearAttributes, getAttributeEntrySet, getAttributeNamesCopy, getAttributeNameSet, size
protected boolean _enabled
protected boolean _extendedListenerTypes
public ContextHandler getContextHandler()
public ServletContext getContext(String uripath)
getContext
in interface ServletContext
getContext
in class ContextHandler.NoContext
public String getMimeType(String file)
getMimeType
in interface ServletContext
getMimeType
in class ContextHandler.NoContext
public RequestDispatcher getRequestDispatcher(String uriInContext)
getRequestDispatcher
in interface ServletContext
getRequestDispatcher
in class ContextHandler.NoContext
public String getRealPath(String path)
getRealPath
in interface ServletContext
getRealPath
in class ContextHandler.NoContext
public URL getResource(String path) throws MalformedURLException
getResource
in interface ServletContext
getResource
in class ContextHandler.NoContext
MalformedURLException
public InputStream getResourceAsStream(String path)
getResourceAsStream
in interface ServletContext
getResourceAsStream
in class ContextHandler.NoContext
public Set<String> getResourcePaths(String path)
getResourcePaths
in interface ServletContext
getResourcePaths
in class ContextHandler.NoContext
public void log(Exception exception, String msg)
log
in interface ServletContext
log
in class ContextHandler.NoContext
public void log(String msg)
log
in interface ServletContext
log
in class ContextHandler.NoContext
public void log(String message, Throwable throwable)
log
in interface ServletContext
log
in class ContextHandler.NoContext
public String getInitParameter(String name)
getInitParameter
in interface ServletContext
getInitParameter
in class ContextHandler.NoContext
public Enumeration<String> getInitParameterNames()
getInitParameterNames
in interface ServletContext
getInitParameterNames
in class ContextHandler.NoContext
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.NoContext
public String getContextPath()
getContextPath
in interface ServletContext
getContextPath
in class ContextHandler.NoContext
public String toString()
toString
in class AttributesMap
public boolean setInitParameter(String name, String value)
setInitParameter
in interface ServletContext
setInitParameter
in class ContextHandler.NoContext
public void addListener(String className)
addListener
in interface ServletContext
addListener
in class ContextHandler.NoContext
public <T extends EventListener> void addListener(T t)
addListener
in interface ServletContext
addListener
in class ContextHandler.NoContext
public void addListener(Class<? extends EventListener> listenerClass)
addListener
in interface ServletContext
addListener
in class ContextHandler.NoContext
public <T extends EventListener> T createListener(Class<T> clazz) throws ServletException
createListener
in interface ServletContext
createListener
in class ContextHandler.NoContext
ServletException
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.NoContext
public JspConfigDescriptor getJspConfigDescriptor()
getJspConfigDescriptor
in interface ServletContext
getJspConfigDescriptor
in class ContextHandler.NoContext
public void setJspConfigDescriptor(JspConfigDescriptor d)
public void declareRoles(String... roleNames)
declareRoles
in interface ServletContext
declareRoles
in class ContextHandler.NoContext
public void setEnabled(boolean enabled)
public boolean isEnabled()
Copyright © 1995-2015 Webtide. All Rights Reserved.