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, setSessionTrackingModesaddAll, clearAttributes, getAttributeEntrySet, getAttributeNamesCopy, getAttributeNameSet, sizeprotected boolean _enabled
protected boolean _extendedListenerTypes
public ContextHandler getContextHandler()
public ServletContext getContext(String uripath)
getContext in interface ServletContextgetContext in class ContextHandler.NoContextpublic String getMimeType(String file)
getMimeType in interface ServletContextgetMimeType in class ContextHandler.NoContextpublic RequestDispatcher getRequestDispatcher(String uriInContext)
getRequestDispatcher in interface ServletContextgetRequestDispatcher in class ContextHandler.NoContextpublic String getRealPath(String path)
getRealPath in interface ServletContextgetRealPath in class ContextHandler.NoContextpublic URL getResource(String path) throws MalformedURLException
getResource in interface ServletContextgetResource in class ContextHandler.NoContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
getResourceAsStream in interface ServletContextgetResourceAsStream in class ContextHandler.NoContextpublic Set<String> getResourcePaths(String path)
getResourcePaths in interface ServletContextgetResourcePaths in class ContextHandler.NoContextpublic void log(Exception exception, String msg)
log in interface ServletContextlog in class ContextHandler.NoContextpublic void log(String msg)
log in interface ServletContextlog in class ContextHandler.NoContextpublic void log(String message, Throwable throwable)
log in interface ServletContextlog in class ContextHandler.NoContextpublic String getInitParameter(String name)
getInitParameter in interface ServletContextgetInitParameter in class ContextHandler.NoContextpublic Enumeration<String> getInitParameterNames()
getInitParameterNames in interface ServletContextgetInitParameterNames in class ContextHandler.NoContextpublic Object getAttribute(String name)
getAttribute in interface ServletContextgetAttribute in interface AttributesgetAttribute in class AttributesMappublic Enumeration<String> getAttributeNames()
getAttributeNames in interface ServletContextgetAttributeNames in interface AttributesgetAttributeNames in class AttributesMappublic void setAttribute(String name, Object value)
setAttribute in interface ServletContextsetAttribute in interface AttributessetAttribute in class AttributesMappublic void removeAttribute(String name)
removeAttribute in interface ServletContextremoveAttribute in interface AttributesremoveAttribute in class AttributesMappublic String getServletContextName()
getServletContextName in interface ServletContextgetServletContextName in class ContextHandler.NoContextpublic String getContextPath()
getContextPath in interface ServletContextgetContextPath in class ContextHandler.NoContextpublic String toString()
toString in class AttributesMappublic boolean setInitParameter(String name, String value)
setInitParameter in interface ServletContextsetInitParameter in class ContextHandler.NoContextpublic void addListener(String className)
addListener in interface ServletContextaddListener in class ContextHandler.NoContextpublic <T extends EventListener> void addListener(T t)
addListener in interface ServletContextaddListener in class ContextHandler.NoContextpublic void addListener(Class<? extends EventListener> listenerClass)
addListener in interface ServletContextaddListener in class ContextHandler.NoContextpublic <T extends EventListener> T createListener(Class<T> clazz) throws ServletException
createListener in interface ServletContextcreateListener in class ContextHandler.NoContextServletExceptionpublic void checkListener(Class<? extends EventListener> listener) throws IllegalStateException
IllegalStateExceptionpublic void setExtendedListenerTypes(boolean extended)
public boolean isExtendedListenerTypes()
public ClassLoader getClassLoader()
getClassLoader in interface ServletContextgetClassLoader in class ContextHandler.NoContextpublic JspConfigDescriptor getJspConfigDescriptor()
getJspConfigDescriptor in interface ServletContextgetJspConfigDescriptor in class ContextHandler.NoContextpublic void setJspConfigDescriptor(JspConfigDescriptor d)
public void declareRoles(String... roleNames)
declareRoles in interface ServletContextdeclareRoles in class ContextHandler.NoContextpublic void setEnabled(boolean enabled)
public boolean isEnabled()
Copyright © 1995-2015 Webtide. All Rights Reserved.