com.antiaction.mayhem.httpd.servlet
Class ServletContextInternal

java.lang.Object
  extended by com.antiaction.mayhem.httpd.servlet.ServletContextInternal

public class ServletContextInternal
extends java.lang.Object

ServletContext internal.

Version:
1.00
Author:
Nicholas Clarke

Field Summary
 java.io.File classesFile
          WEB-INF/classes file.
 java.util.HashMap containerAttributes
          Container managed attributes.
 java.util.List contextAttributeListenerList
          ServletContextAttributeListener List.
 java.util.List contextListenerList
          ServletContextListener List.
 ContextManager contextManager
          ServletContext Manager.
 java.lang.String contextPath
          Context path.
static java.util.HashMap contextURLConnectionHashMap
          URLConnection id lookup.
 java.lang.String contextURLConnectionId
          URLConnection id.
 FilterServletHandler filterServletHandler
          Filter/Servlet handler.
 java.io.File libFile
          WEB-INF/lib file.
 IContexLog logging
          Context logging mechanism.
 SecurityConstraints securityConstraints
          Security Constraints checker.
 javax.servlet.ServletContext servletContext
          ServletContext implementation Servlets see.
 java.util.List sessionAttributeListenerList
          HttpSessionAttributeListener List.
 java.util.List sessionListenerList
          HttpSessionListener List
 int sessionTimeout
          Session Timeout.
 IUserManager userManager
          User Manager.
 WebXML webxml
          Context webxml object.
 
Constructor Summary
ServletContextInternal(WebXML webxmlapp, java.lang.String contextPath, java.lang.String filesystemPath, IContexLog logging)
           
 
Method Summary
 void attributeAdded(javax.servlet.ServletContextAttributeEvent scab)
           
 void attributeRemoved(javax.servlet.ServletContextAttributeEvent scab)
           
 void attributeReplaced(javax.servlet.ServletContextAttributeEvent scab)
           
 void contextDestroyed(javax.servlet.ServletContextEvent sce)
           
 void contextInitialized(javax.servlet.ServletContextEvent sce)
           
 javax.servlet.ServletContext getContext(java.lang.String uripath)
           
 java.lang.String getContextPath()
          Conveniant Method to get the Context Path.
 java.lang.String getInitParameter(java.lang.String name)
           
 java.util.Enumeration getInitParameterNames()
           
 java.lang.String getMimeType(java.lang.String file)
           
 javax.servlet.RequestDispatcher getNamedDispatcher(java.lang.String name)
           
 java.lang.String getRealPath(java.lang.String path)
           
 javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
           
 java.net.URL getResource(java.lang.String path)
           
 java.io.InputStream getResourceAsStream(java.lang.String path)
           
 java.util.Set getResourcePaths(java.lang.String path)
           
 java.lang.String getServletContextName()
           
 void log(java.lang.String message, java.lang.Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextURLConnectionHashMap

public static java.util.HashMap contextURLConnectionHashMap
URLConnection id lookup.


contextURLConnectionId

public java.lang.String contextURLConnectionId
URLConnection id.


contextPath

public java.lang.String contextPath
Context path.


classesFile

public java.io.File classesFile
WEB-INF/classes file.


libFile

public java.io.File libFile
WEB-INF/lib file.


webxml

public WebXML webxml
Context webxml object.


servletContext

public javax.servlet.ServletContext servletContext
ServletContext implementation Servlets see.


contextManager

public ContextManager contextManager
ServletContext Manager.


sessionTimeout

public int sessionTimeout
Session Timeout.


containerAttributes

public java.util.HashMap containerAttributes
Container managed attributes.


filterServletHandler

public FilterServletHandler filterServletHandler
Filter/Servlet handler.


securityConstraints

public SecurityConstraints securityConstraints
Security Constraints checker.


userManager

public IUserManager userManager
User Manager.


logging

public IContexLog logging
Context logging mechanism.


contextListenerList

public java.util.List contextListenerList
ServletContextListener List.


contextAttributeListenerList

public java.util.List contextAttributeListenerList
ServletContextAttributeListener List.


sessionListenerList

public java.util.List sessionListenerList
HttpSessionListener List


sessionAttributeListenerList

public java.util.List sessionAttributeListenerList
HttpSessionAttributeListener List.

Constructor Detail

ServletContextInternal

public ServletContextInternal(WebXML webxmlapp,
                              java.lang.String contextPath,
                              java.lang.String filesystemPath,
                              IContexLog logging)
Method Detail

getContextPath

public java.lang.String getContextPath()
Conveniant Method to get the Context Path.

Returns:
context path.

getServletContextName

public java.lang.String getServletContextName()

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)

getInitParameterNames

public java.util.Enumeration getInitParameterNames()

getMimeType

public java.lang.String getMimeType(java.lang.String file)

log

public void log(java.lang.String message,
                java.lang.Throwable throwable)

getNamedDispatcher

public javax.servlet.RequestDispatcher getNamedDispatcher(java.lang.String name)

getRequestDispatcher

public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)

getContext

public javax.servlet.ServletContext getContext(java.lang.String uripath)

getRealPath

public java.lang.String getRealPath(java.lang.String path)

getResourcePaths

public java.util.Set getResourcePaths(java.lang.String path)

getResource

public java.net.URL getResource(java.lang.String path)
                         throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String path)

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent sce)

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent sce)

attributeAdded

public void attributeAdded(javax.servlet.ServletContextAttributeEvent scab)

attributeRemoved

public void attributeRemoved(javax.servlet.ServletContextAttributeEvent scab)

attributeReplaced

public void attributeReplaced(javax.servlet.ServletContextAttributeEvent scab)


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.