Java Doc for WebApplication.java in  » Web-Server » Quadcap-Web-Server » com » quadcap » http » server22 » 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 » Quadcap Web Server » com.quadcap.http.server22 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.quadcap.http.server22.WebApplication

WebApplication
public class WebApplication implements ServletContext(Code)
This class provides a wrapper for a Web Application, implementing the application's ServletContext interface.
author:
   Stan Bailes


Field Summary
 Hashtableattributes
    
 WebClassLoaderclassLoader
    
 StringcontextPath
    
 WebServletdefaultServlet
    
 StringdisplayName
    
 DirectorydocRoot
    
 StringerrorPage
    
 HashtableexactMappings
    
 HashtableextMappings
    
 PropertiesinitParams
    
 HashtablemimeTypes
    
 HashtablepathMappings
    
 WebServerserver
    
 HashMapservlets
    
 longsessionCount
    
 intsessionTimeout
    
 Hashtablesessions
    
 ListwelcomeFiles
    

Constructor Summary
public  WebApplication()
    

Method Summary
public  voidaddInitParam(String prop, String val)
    
 voidaddMimeMapping(String ext, String type)
    
public  voidaddServlet(WebServlet servlet)
    
public  voidaddServletMapping(String servletName, String urlPattern)
    
public  voidaddWelcomeFile(String s)
    
public  HSessioncreateSession()
    
public  voidexpireSessions()
    
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
final  ClassLoadergetClassLoader()
    
public  ServletContextgetContext(String path)
    
public  StringgetContextClassPath()
     Return the classpath for the context's libraries and classes under WEB-INF.
public  StringgetContextPath()
    
public  StringgetDisplayName()
    
public  StringgetErrorPage()
    
public  StringgetInitParameter(String name)
    
public  EnumerationgetInitParameterNames()
    
public  intgetMajorVersion()
    
public  StringgetMimeType(String file)
    
public  intgetMinorVersion()
    
public  RequestDispatchergetNamedDispatcher(String name)
    
public  StringgetRealPath(String path)
    
public  RequestDispatchergetRelativeRequestDispatcher(String path, HttpRequest base)
    
public  RequestDispatchergetRequestDispatcher(String path)
    
public  URLgetResource(String path)
    
public  InputStreamgetResourceAsStream(String path)
    
public  StringgetRootPath()
    
public  StringgetServerInfo()
     Returns the name and version of the network service under which the servlet is running.
public  ServletgetServlet(String name)
    
 WebServletgetServletForRequest(HttpDispatcher rd)
    
public  EnumerationgetServletNames()
    
public  EnumerationgetServlets()
    
public  HSessiongetSession(String sessionId)
     Returns the session bound to the specified session ID.
public  intgetSessionTimeout()
    
public  WebServergetWebServer()
    
public  ListgetWelcomeFiles()
    
public  voidinit(WebServer server, String root, Directory dir)
    
public  booleanisDirectory(String d)
    
final  voidloadInitialServlets()
    
public  voidlog(String msg)
     Writes a message to the server's log file.
public  voidlog(Exception e, String msg)
     Write the stack backtrace for the exception and the specified message to the server's log file.
public  voidlog(String msg, Throwable e)
     Write the stack backtrace for the exception and the specified message to the server's log file.
 voidparseDeploymentDescriptor(Reader r)
    
public  voidremoveAttribute(String name)
    
 voidremoveSession(HSession session)
    
 StringresolveDirectory(String path)
     If a URI refers to a directory, use the welcome file list to find a resource in the directory to serve.
final  voidresolveServlets(Hashtable t)
    
public  voidsetAttribute(String name, Object val)
    
public  voidsetDisplayName(String name)
    
public  voidsetErrorPage(String errorPage)
    
public  voidsetSessionTimeout(int timeout)
    
public  voidshutdown()
    
public  StringtoString()
    

Field Detail
attributes
Hashtable attributes(Code)
Servlet context attributes



classLoader
WebClassLoader classLoader(Code)



contextPath
String contextPath(Code)



defaultServlet
WebServlet defaultServlet(Code)



displayName
String displayName(Code)



docRoot
Directory docRoot(Code)
My document root



errorPage
String errorPage(Code)
Error page



exactMappings
Hashtable exactMappings(Code)



extMappings
Hashtable extMappings(Code)



initParams
Properties initParams(Code)



mimeTypes
Hashtable mimeTypes(Code)
Mime types



pathMappings
Hashtable pathMappings(Code)
Path mappings



server
WebServer server(Code)



servlets
HashMap servlets(Code)
Map name -> Servlet



sessionCount
long sessionCount(Code)



sessionTimeout
int sessionTimeout(Code)



sessions
Hashtable sessions(Code)
Session table: sessionId -> HttpSession



welcomeFiles
List welcomeFiles(Code)
Welcome file list




Constructor Detail
WebApplication
public WebApplication()(Code)




Method Detail
addInitParam
public void addInitParam(String prop, String val)(Code)



addMimeMapping
void addMimeMapping(String ext, String type)(Code)



addServlet
public void addServlet(WebServlet servlet)(Code)



addServletMapping
public void addServletMapping(String servletName, String urlPattern)(Code)



addWelcomeFile
public void addWelcomeFile(String s)(Code)



createSession
public HSession createSession()(Code)
Create a new session



expireSessions
public void expireSessions()(Code)
Reap any expired sessions (sessions not active during the last interval)



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getClassLoader
final ClassLoader getClassLoader()(Code)



getContext
public ServletContext getContext(String path)(Code)



getContextClassPath
public String getContextClassPath()(Code)
Return the classpath for the context's libraries and classes under WEB-INF.



getContextPath
public String getContextPath()(Code)



getDisplayName
public String getDisplayName()(Code)



getErrorPage
public String getErrorPage()(Code)



getInitParameter
public String getInitParameter(String name)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getMajorVersion
public int getMajorVersion()(Code)
Return the server major version number



getMimeType
public String getMimeType(String file)(Code)



getMinorVersion
public int getMinorVersion()(Code)
Return the server minor version number



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)(Code)



getRealPath
public String getRealPath(String path)(Code)



getRelativeRequestDispatcher
public RequestDispatcher getRelativeRequestDispatcher(String path, HttpRequest base)(Code)



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)

Parameters:
  path - is a string that must begin with '/' and is interpretedrelative to this context's root



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



getResourceAsStream
public InputStream getResourceAsStream(String path)(Code)



getRootPath
public String getRootPath()(Code)



getServerInfo
public String getServerInfo()(Code)
Returns the name and version of the network service under which the servlet is running. the server information string



getServlet
public Servlet getServlet(String name)(Code)



getServletForRequest
WebServlet getServletForRequest(HttpDispatcher rd)(Code)



getServletNames
public Enumeration getServletNames()(Code)



getServlets
public Enumeration getServlets()(Code)



getSession
public HSession getSession(String sessionId)(Code)
Returns the session bound to the specified session ID.
Parameters:
  sessionID - the ID of a particular session object the session name. Returns null if the session ID does not referto a valid session.



getSessionTimeout
public int getSessionTimeout()(Code)



getWebServer
public WebServer getWebServer()(Code)



getWelcomeFiles
public List getWelcomeFiles()(Code)



init
public void init(WebServer server, String root, Directory dir) throws ServletException, IOException(Code)



isDirectory
public boolean isDirectory(String d)(Code)



loadInitialServlets
final void loadInitialServlets() throws ServletException(Code)



log
public void log(String msg)(Code)
Writes a message to the server's log file.
Parameters:
  msg - the message



log
public void log(Exception e, String msg)(Code)
Write the stack backtrace for the exception and the specified message to the server's log file.
Parameters:
  e - the exception
Parameters:
  msg - the message



log
public void log(String msg, Throwable e)(Code)
Write the stack backtrace for the exception and the specified message to the server's log file.
Parameters:
  e - the exception
Parameters:
  msg - the message



parseDeploymentDescriptor
void parseDeploymentDescriptor(Reader r) throws ServletException, IOException(Code)



removeAttribute
public void removeAttribute(String name)(Code)



removeSession
void removeSession(HSession session)(Code)



resolveDirectory
String resolveDirectory(String path)(Code)
If a URI refers to a directory, use the welcome file list to find a resource in the directory to serve. Return the name of the file if found, otherwise, simply return the original directory name.



resolveServlets
final void resolveServlets(Hashtable t)(Code)



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



setDisplayName
public void setDisplayName(String name)(Code)



setErrorPage
public void setErrorPage(String errorPage)(Code)



setSessionTimeout
public void setSessionTimeout(int timeout)(Code)



shutdown
public void shutdown()(Code)



toString
public String toString()(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.