Java Doc for ServletHolder.java in  » Sevlet-Container » jetty-modules » org » mortbay » jetty » servlet » 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 » Sevlet Container » jetty modules » org.mortbay.jetty.servlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mortbay.jetty.servlet.Holder
   org.mortbay.jetty.servlet.ServletHolder

ServletHolder
public class ServletHolder extends Holder implements Comparable(Code)
Servlet Instance and Context Holder. Holds the name, params and some state of a javax.servlet.Servlet instance. It implements the ServletConfig interface. This class will organise the loading of the servlet when needed or requested.
author:
   Greg Wilkins

Inner Class :class Config implements ServletConfig


Constructor Summary
public  ServletHolder()
     Constructor .
public  ServletHolder(Servlet servlet)
     Constructor for existing servlet.
public  ServletHolder(Class servlet)
     Constructor for existing servlet.

Method Summary
public  voidcheckServletType()
     Check to ensure class of servlet is acceptable.
public  intcompareTo(Object o)
     Comparitor by init order.
public  voiddoStart()
    
public  voiddoStop()
    
public  booleanequals(Object o)
    
public  StringgetForcedPath()
    
public  intgetInitOrder()
    
public  MapgetRoleMap()
    
public  StringgetRunAs()
    
public synchronized  ServletgetServlet()
     Get the servlet.
public  StringgetUserRoleLink(String name)
     get a user role link.
Parameters:
  name - The name of the role The name as translated by the link.
public  voidhandle(ServletRequest request, ServletResponse response)
     Service a request with this servlet.
public  inthashCode()
    
public  voidsetForcedPath(String forcedPath)
    
public  voidsetInitOrder(int order)
     Set the initialize order. Holders with order<0, are initialized on use.
public  voidsetRunAs(String role)
    
Parameters:
  role - Role name that is added to UserPrincipal when this servletis called.
public synchronized  voidsetServlet(Servlet servlet)
    
public synchronized  voidsetUserRoleLink(String name, String link)
     Link a user role.


Constructor Detail
ServletHolder
public ServletHolder()(Code)
Constructor .



ServletHolder
public ServletHolder(Servlet servlet)(Code)
Constructor for existing servlet.



ServletHolder
public ServletHolder(Class servlet)(Code)
Constructor for existing servlet.




Method Detail
checkServletType
public void checkServletType() throws UnavailableException(Code)
Check to ensure class of servlet is acceptable.
throws:
  UnavailableException -



compareTo
public int compareTo(Object o)(Code)
Comparitor by init order.



doStart
public void doStart() throws Exception(Code)



doStop
public void doStop()(Code)



equals
public boolean equals(Object o)(Code)



getForcedPath
public String getForcedPath()(Code)
Returns the forcedPath.



getInitOrder
public int getInitOrder()(Code)



getRoleMap
public Map getRoleMap()(Code)



getRunAs
public String getRunAs()(Code)



getServlet
public synchronized Servlet getServlet() throws ServletException(Code)
Get the servlet. The servlet



getUserRoleLink
public String getUserRoleLink(String name)(Code)
get a user role link.
Parameters:
  name - The name of the role The name as translated by the link. If no link exists,the name is returned.



handle
public void handle(ServletRequest request, ServletResponse response) throws ServletException, UnavailableException, IOException(Code)
Service a request with this servlet.



hashCode
public int hashCode()(Code)



setForcedPath
public void setForcedPath(String forcedPath)(Code)

Parameters:
  forcedPath - The forcedPath to set.



setInitOrder
public void setInitOrder(int order)(Code)
Set the initialize order. Holders with order<0, are initialized on use. Those with order>=0 are initialized in increasing order when the handler is started.



setRunAs
public void setRunAs(String role)(Code)

Parameters:
  role - Role name that is added to UserPrincipal when this servletis called.



setServlet
public synchronized void setServlet(Servlet servlet)(Code)



setUserRoleLink
public synchronized void setUserRoleLink(String name, String link)(Code)
Link a user role. Translate the role name used by a servlet, to the link name used by the container.
Parameters:
  name - The role name as used by the servlet
Parameters:
  link - The role name as used by the container.



Fields inherited from org.mortbay.jetty.servlet.Holder
protected transient Class _class(Code)(Java Doc)
protected String _className(Code)(Java Doc)
protected String _displayName(Code)(Java Doc)
protected boolean _extInstance(Code)(Java Doc)
protected Map _initParams(Code)(Java Doc)
protected String _name(Code)(Java Doc)
protected ServletHandler _servletHandler(Code)(Java Doc)

Methods inherited from org.mortbay.jetty.servlet.Holder
public void doStart() throws Exception(Code)(Java Doc)
public void doStop()(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDisplayName()(Code)(Java Doc)
public Class getHeldClass()(Code)(Java Doc)
public String getInitParameter(String param)(Code)(Java Doc)
public Enumeration getInitParameterNames()(Code)(Java Doc)
public Map getInitParameters()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public ServletHandler getServletHandler()(Code)(Java Doc)
public synchronized Object newInstance() throws InstantiationException, IllegalAccessException(Code)(Java Doc)
public void setClassName(String className)(Code)(Java Doc)
public void setDisplayName(String name)(Code)(Java Doc)
public void setHeldClass(Class held)(Code)(Java Doc)
public void setInitParameter(String param, String value)(Code)(Java Doc)
public void setInitParameters(Map map)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setServletHandler(ServletHandler servletHandler)(Code)(Java Doc)
public String toString()(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.