Java Doc for WebAppConfiguration.java in  » Web-Server » Winstone » winstone » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Winstone » winstone 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   winstone.WebAppConfiguration

WebAppConfiguration
public class WebAppConfiguration implements ServletContext,Comparator(Code)
Models the web.xml file's details ... basically just a bunch of configuration details, plus the actual instances of mounted servlets.
author:
   Rick Knowles
version:
   $Id: WebAppConfiguration.java,v 1.55 2007/11/13 01:42:47 rickknowles Exp $


Field Summary
final static  StringJSP_SERVLET_CLASS
    

Constructor Summary
public  WebAppConfiguration(HostConfiguration ownerHostConfig, Cluster cluster, String webRoot, String prefix, ObjectPool objectPool, Map startupArgs, Node elm, ClassLoader parentClassLoader, File parentClassPaths, String contextName)
     Constructor.

Method Summary
public static  voidaddJspServletParams(Map jspParams)
    
 voidaddSession(String sessionId, WinstoneSession session)
    
public static  booleanbooleanArg(Map args, String name, boolean defaultTrue)
    
public  intcompare(Object one, Object two)
    
public  voiddestroy()
    
public  AccessLoggergetAccessLogger()
    
public  ObjectgetAttribute(String name)
     OK ...
public  EnumerationgetAttributeNames()
    
public  javax.servlet.ServletContextgetContext(String uri)
    
public  StringgetContextName()
    
public  StringgetContextPath()
    
public  RequestDispatchergetErrorDispatcherByClass(Throwable exception)
     Gets a dispatcher, set up for error dispatch.
public  RequestDispatchergetErrorDispatcherByCode(int statusCode, String summaryMessage, Throwable exception)
    
public  Class[]getErrorPageExceptions()
    
public  MapgetErrorPagesByCode()
    
public  MapgetErrorPagesByException()
    
public  MapgetFilterMatchCache()
    
public  MapgetFilters()
    
public  StringgetInitParameter(String name)
    
public  EnumerationgetInitParameterNames()
    
public  RequestDispatchergetInitialDispatcher(String uriInsideWebapp, WinstoneRequest request, WinstoneResponse response)
     Creates the dispatcher that corresponds to a request level dispatch (ie the initial entry point).
public  ClassLoadergetLoader()
    
public  MapgetLocaleEncodingMap()
    
public  intgetMajorVersion()
    
public  StringgetMimeType(String fileName)
    
public  intgetMinorVersion()
    
public  javax.servlet.RequestDispatchergetNamedDispatcher(String name)
    
public  StringgetOwnerHostname()
    
public  StringgetRealPath(String path)
    
public  ServletRequestAttributeListener[]getRequestAttributeListeners()
    
public  javax.servlet.RequestDispatchergetRequestDispatcher(String uriInsideWebapp)
     Gets a dispatcher, which sets the request attributes, etc on a forward/include.
public  ServletRequestListener[]getRequestListeners()
    
public  URLgetResource(String path)
    
public  InputStreamgetResourceAsStream(String path)
    
public  SetgetResourcePaths(String path)
    
public  StringgetServerInfo()
    
public  javax.servlet.ServletgetServlet(String name)
    
public  StringgetServletContextName()
    
public  EnumerationgetServletNames()
    
public  StringgetServletURIFromRequestURI(String requestURI)
    
public  EnumerationgetServlets()
    
public  WinstoneSessiongetSessionById(String sessionId, boolean localOnly)
     Retrieves the session by id.
public static  StringgetTextFromNode(Node node)
    
public  StringgetWebroot()
    
public  String[]getWelcomeFiles()
    
public static  intintArg(Map args, String name, int defaultValue)
    
public  voidinvalidateExpiredSessions()
    
public  booleanisDistributable()
    
public  voidlog(String message)
    
public  voidlog(String message, Throwable throwable)
    
public  voidlog(Exception exception, String msg)
    
public  WinstoneSessionmakeNewSession(String sessionId)
    
public  voidremoveAttribute(String name)
    
public  voidremoveServletConfigurationAndMappings(ServletConfiguration config)
    
 voidremoveSessionById(String sessionId)
    
public  voidresetClassLoader()
     Triggered by the admin thread on the reloading class loader.
public  voidsetAttribute(String name, Object object)
    
public  voidsetSessionListeners(WinstoneSession session)
    
public static  StringstringArg(Map args, String name, String defaultValue)
    
public static  booleanuseSavedSessions(Map args)
    

Field Detail
JSP_SERVLET_CLASS
final static String JSP_SERVLET_CLASS(Code)




Constructor Detail
WebAppConfiguration
public WebAppConfiguration(HostConfiguration ownerHostConfig, Cluster cluster, String webRoot, String prefix, ObjectPool objectPool, Map startupArgs, Node elm, ClassLoader parentClassLoader, File parentClassPaths, String contextName)(Code)
Constructor. This parses the xml and sets up for basic routing




Method Detail
addJspServletParams
public static void addJspServletParams(Map jspParams)(Code)



addSession
void addSession(String sessionId, WinstoneSession session)(Code)



booleanArg
public static boolean booleanArg(Map args, String name, boolean defaultTrue)(Code)



compare
public int compare(Object one, Object two)(Code)



destroy
public void destroy()(Code)
Iterates through each of the servlets/filters and calls destroy on them



getAccessLogger
public AccessLogger getAccessLogger()(Code)



getAttribute
public Object getAttribute(String name)(Code)
OK ... from here to the end is the interface implementation methods for the servletContext interface.



getAttributeNames
public Enumeration getAttributeNames()(Code)



getContext
public javax.servlet.ServletContext getContext(String uri)(Code)



getContextName
public String getContextName()(Code)



getContextPath
public String getContextPath()(Code)



getErrorDispatcherByClass
public RequestDispatcher getErrorDispatcherByClass(Throwable exception)(Code)
Gets a dispatcher, set up for error dispatch.



getErrorDispatcherByCode
public RequestDispatcher getErrorDispatcherByCode(int statusCode, String summaryMessage, Throwable exception)(Code)



getErrorPageExceptions
public Class[] getErrorPageExceptions()(Code)



getErrorPagesByCode
public Map getErrorPagesByCode()(Code)



getErrorPagesByException
public Map getErrorPagesByException()(Code)



getFilterMatchCache
public Map getFilterMatchCache()(Code)



getFilters
public Map getFilters()(Code)



getInitParameter
public String getInitParameter(String name)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getInitialDispatcher
public RequestDispatcher getInitialDispatcher(String uriInsideWebapp, WinstoneRequest request, WinstoneResponse response) throws IOException(Code)
Creates the dispatcher that corresponds to a request level dispatch (ie the initial entry point). The difference here is that we need to set up the dispatcher so that on a forward, it executes the security checks and the request filters, while not setting any of the request attributes for a forward. Also, we can't return a null dispatcher in error case - instead we have to return a dispatcher pre-init'd for showing an error page (eg 404). A null dispatcher is interpreted to mean a successful 302 has occurred.



getLoader
public ClassLoader getLoader()(Code)



getLocaleEncodingMap
public Map getLocaleEncodingMap()(Code)



getMajorVersion
public int getMajorVersion()(Code)



getMimeType
public String getMimeType(String fileName)(Code)
Look up the map of mimeType extensions, and return the type that matches



getMinorVersion
public int getMinorVersion()(Code)



getNamedDispatcher
public javax.servlet.RequestDispatcher getNamedDispatcher(String name)(Code)
Named dispatcher - this basically gets us a simple exact dispatcher (no url matching, no request attributes and no security)



getOwnerHostname
public String getOwnerHostname()(Code)



getRealPath
public String getRealPath(String path)(Code)



getRequestAttributeListeners
public ServletRequestAttributeListener[] getRequestAttributeListeners()(Code)



getRequestDispatcher
public javax.servlet.RequestDispatcher getRequestDispatcher(String uriInsideWebapp)(Code)
Gets a dispatcher, which sets the request attributes, etc on a forward/include. Doesn't execute security though.



getRequestListeners
public ServletRequestListener[] getRequestListeners()(Code)



getResource
public URL getResource(String path) throws MalformedURLException(Code)



getResourceAsStream
public InputStream getResourceAsStream(String path)(Code)



getResourcePaths
public Set getResourcePaths(String path)(Code)



getServerInfo
public String getServerInfo()(Code)



getServlet
public javax.servlet.Servlet getServlet(String name)(Code)



getServletContextName
public String getServletContextName()(Code)



getServletNames
public Enumeration getServletNames()(Code)



getServletURIFromRequestURI
public String getServletURIFromRequestURI(String requestURI)(Code)



getServlets
public Enumeration getServlets()(Code)



getSessionById
public WinstoneSession getSessionById(String sessionId, boolean localOnly)(Code)
Retrieves the session by id. If the web app is distributable, it asks the other members of the cluster if it doesn't have it itself.
Parameters:
  sessionId - The id of the session we want A valid session instance



getTextFromNode
public static String getTextFromNode(Node node)(Code)



getWebroot
public String getWebroot()(Code)



getWelcomeFiles
public String[] getWelcomeFiles()(Code)



intArg
public static int intArg(Map args, String name, int defaultValue)(Code)



invalidateExpiredSessions
public void invalidateExpiredSessions()(Code)



isDistributable
public boolean isDistributable()(Code)



log
public void log(String message)(Code)



log
public void log(String message, Throwable throwable)(Code)



log
public void log(Exception exception, String msg)(Code)



makeNewSession
public WinstoneSession makeNewSession(String sessionId)(Code)
Constructs a session instance with the given sessionId
Parameters:
  sessionId - The sessionID for the new session A valid session object



removeAttribute
public void removeAttribute(String name)(Code)



removeServletConfigurationAndMappings
public void removeServletConfigurationAndMappings(ServletConfiguration config)(Code)



removeSessionById
void removeSessionById(String sessionId)(Code)
Add/Remove the session from the collection



resetClassLoader
public void resetClassLoader() throws IOException(Code)
Triggered by the admin thread on the reloading class loader. This will cause a full shutdown and reinstantiation of the web app - not real graceful, but you shouldn't have reloading turned on in high load environments.



setAttribute
public void setAttribute(String name, Object object)(Code)



setSessionListeners
public void setSessionListeners(WinstoneSession session)(Code)



stringArg
public static String stringArg(Map args, String name, String defaultValue)(Code)



useSavedSessions
public static boolean useSavedSessions(Map args)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.