public class WebAppConfiguration extends Object implements ServletContext, Comparator
| Constructor and Description |
|---|
WebAppConfiguration(HostConfiguration ownerHostConfig,
Cluster cluster,
String webRoot,
String prefix,
ObjectPool objectPool,
Map startupArgs,
Node elm,
ClassLoader parentClassLoader,
File[] parentClassPaths,
String contextName)
Constructor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic WebAppConfiguration(HostConfiguration ownerHostConfig, Cluster cluster, String webRoot, String prefix, ObjectPool objectPool, Map startupArgs, Node elm, ClassLoader parentClassLoader, File[] parentClassPaths, String contextName)
public String getContextPath()
getContextPath in interface ServletContextpublic String getWebroot()
public ClassLoader getLoader()
public AccessLogger getAccessLogger()
public Map getFilters()
public String getContextName()
public Class[] getErrorPageExceptions()
public Map getErrorPagesByException()
public Map getErrorPagesByCode()
public Map getLocaleEncodingMap()
public String[] getWelcomeFiles()
public boolean isDistributable()
public Map getFilterMatchCache()
public String getOwnerHostname()
public ServletRequestListener[] getRequestListeners()
public ServletRequestAttributeListener[] getRequestAttributeListeners()
public static void addJspServletParams(Map jspParams)
public int compare(Object one, Object two)
compare in interface Comparatorpublic void destroy()
public void resetClassLoader()
throws IOException
IOExceptionpublic WinstoneSession makeNewSession(String sessionId)
sessionId - The sessionID for the new sessionpublic WinstoneSession getSessionById(String sessionId, boolean localOnly)
sessionId - The id of the session we wantpublic void invalidateExpiredSessions()
public void setSessionListeners(WinstoneSession session)
public void removeServletConfigurationAndMappings(ServletConfiguration config)
public Object getAttribute(String name)
getAttribute in interface ServletContextpublic Enumeration getAttributeNames()
getAttributeNames in interface ServletContextpublic void removeAttribute(String name)
removeAttribute in interface ServletContextpublic void setAttribute(String name, Object object)
setAttribute in interface ServletContextpublic String getInitParameter(String name)
getInitParameter in interface ServletContextpublic Enumeration getInitParameterNames()
getInitParameterNames in interface ServletContextpublic String getServerInfo()
getServerInfo in interface ServletContextpublic int getMajorVersion()
getMajorVersion in interface ServletContextpublic int getMinorVersion()
getMinorVersion in interface ServletContextpublic ServletContext getContext(String uri)
getContext in interface ServletContextpublic String getServletContextName()
getServletContextName in interface ServletContextpublic String getMimeType(String fileName)
getMimeType in interface ServletContextpublic void log(String message)
log in interface ServletContextpublic void log(String message, Throwable throwable)
log in interface ServletContextpublic RequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher in interface ServletContextpublic RequestDispatcher getRequestDispatcher(String uriInsideWebapp)
getRequestDispatcher in interface ServletContextpublic RequestDispatcher getInitialDispatcher(String uriInsideWebapp, WinstoneRequest request, WinstoneResponse response) throws IOException
IOExceptionpublic RequestDispatcher getErrorDispatcherByClass(Throwable exception)
public RequestDispatcher getErrorDispatcherByCode(String requestURI, int statusCode, String summaryMessage, Throwable exception)
public URL getResource(String path) throws MalformedURLException
getResource in interface ServletContextMalformedURLExceptionpublic InputStream getResourceAsStream(String path)
getResourceAsStream in interface ServletContextpublic String getRealPath(String path)
getRealPath in interface ServletContextpublic Set getResourcePaths(String path)
getResourcePaths in interface ServletContextpublic Servlet getServlet(String name)
getServlet in interface ServletContextpublic Enumeration getServletNames()
getServletNames in interface ServletContextpublic Enumeration getServlets()
getServlets in interface ServletContextpublic void log(Exception exception, String msg)
log in interface ServletContextCopyright © 2014. All rights reserved.