Java Doc for DefaultServletContainerAdapter.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » pageflow » 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 » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.pageflow 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.netui.pageflow.DefaultServletContainerAdapter

DefaultServletContainerAdapter
abstract public class DefaultServletContainerAdapter implements ServletContainerAdapter(Code)
Default implementation of a Servlet container adapter.



Constructor Summary
protected  DefaultServletContainerAdapter()
    

Method Summary
public  voidbeginRequest(HttpServletRequest request, HttpServletResponse response)
     Called at the beginning of each processed request.
public  ObjectcreateControlBeanContext(HttpServletRequest request, HttpServletResponse response)
     Get a context object to support Beehive Controls.
protected  PageFlowEventReportercreateEventReporter()
    
public  booleandoSecurityRedirect(String path, HttpServletRequest request, HttpServletResponse response)
     Cause the server to do a security check for the given path.
public  voidendRequest(HttpServletRequest request, HttpServletResponse response)
     Called at the end of each processed request.
public  voidensureFailover(String attrName, Object attrVal, HttpServletRequest request)
     Ensure that the given session attribute is replicated in a cluster for session failover. This method does not need to be implemented for servers that do not support clustering and session failover.
public  PageFlowEventReportergetEventReporter()
     Get an event reporter, which will be notified of events like "page flow created", "action raised", etc.
public  FactorygetFactory(Class factoryType, String id, FactoryConfig config)
     Generic method to get a Factory class that may be container dependent.
public  StringgetFullContextPath(HttpServletRequest request)
     Return the webapp context path for the given request.
public  intgetListenPort(HttpServletRequest request)
     Get the port on which the server is listening for unsecure connections.
public  StringgetPlatformName()
     Get the name of the platform, which may be used to find platform-specific configuration files.
public  intgetSecureListenPort(HttpServletRequest request)
     Get the port on which the server is listening for secure connections.
public  SecurityProtocolgetSecurityProtocol(String path, HttpServletRequest request)
     Tell whether a web application resource requires a secure transport protocol.
protected  ServletContextgetServletContext()
     Get the current ServletContext.
public  booleanisInProductionMode()
     Tell whether the system is in production mode.
public  voidlogin(String username, String password, HttpServletRequest request, HttpServletResponse response)
     Log in the user, using "weak" username/password authentication.
public  voidlogout(boolean invalidateSessions, HttpServletRequest request, HttpServletResponse response)
     Log out the user.
public  voidsetContext(AdapterContext context)
     Set the AdapterContext.


Constructor Detail
DefaultServletContainerAdapter
protected DefaultServletContainerAdapter()(Code)




Method Detail
beginRequest
public void beginRequest(HttpServletRequest request, HttpServletResponse response)(Code)
Called at the beginning of each processed request. This default implementation does nothing.
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.



createControlBeanContext
public Object createControlBeanContext(HttpServletRequest request, HttpServletResponse response)(Code)
Get a context object to support Beehive Controls. This default implementation returns an instance of PageFlowBeanContext .
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse. a new ControlBeanContext.



createEventReporter
protected PageFlowEventReporter createEventReporter()(Code)



doSecurityRedirect
public boolean doSecurityRedirect(String path, HttpServletRequest request, HttpServletResponse response)(Code)
Cause the server to do a security check for the given path. This default implementation does nothing. false



endRequest
public void endRequest(HttpServletRequest request, HttpServletResponse response)(Code)
Called at the end of each processed request. This default implementation does nothing.
Parameters:
  request - the current HttpServletRequest.
Parameters:
  response - the current HttpServletResponse.



ensureFailover
public void ensureFailover(String attrName, Object attrVal, HttpServletRequest request)(Code)
Ensure that the given session attribute is replicated in a cluster for session failover. This method does not need to be implemented for servers that do not support clustering and session failover. The default implementation does nothing.
Parameters:
  attrName - the name of the session attribute for which failover should be ensured.
Parameters:
  attrVal - the value of the given session attribute.
Parameters:
  request - the current HttpServletRequest.



getEventReporter
public PageFlowEventReporter getEventReporter()(Code)
Get an event reporter, which will be notified of events like "page flow created", "action raised", etc. This default implementation returns an instance of DefaultPageFlowEventReporter . a PageFlowEventReporter.



getFactory
public Factory getFactory(Class factoryType, String id, FactoryConfig config)(Code)
Generic method to get a Factory class that may be container dependent.

This method is called to get the following Factory implementations:


Parameters:
  factoryType - the class type that the factory should extend or implement
Parameters:
  id - can be used for the case where there is more than one possible Factorythat extends or implaments the class type.
Parameters:
  config - a configuration object passed to a Factory a Factory class that extends or implemtents the given class type.



getFullContextPath
public String getFullContextPath(HttpServletRequest request)(Code)
Return the webapp context path for the given request. This can differ from HttpServletRequest.getContextPath() only in that it will return a valid value even if the request is for the default webapp. This default implementation always returns the value of getContextPath() on the request.
Parameters:
  request - the current HttpServletRequest. the value of getContextPath() on the current request.



getListenPort
public int getListenPort(HttpServletRequest request)(Code)
Get the port on which the server is listening for unsecure connections. This default implementation always returns -1.
Parameters:
  request - the current HttpServletRequest. -1.



getPlatformName
public String getPlatformName()(Code)
Get the name of the platform, which may be used to find platform-specific configuration files. This default implementation returns "generic". the name of the platform ("generic" in this default implementation).



getSecureListenPort
public int getSecureListenPort(HttpServletRequest request)(Code)
Get the port on which the server is listening for secure connections. This default implementation always returns -1.
Parameters:
  request - the current HttpServletRequest. -1.



getSecurityProtocol
public SecurityProtocol getSecurityProtocol(String path, HttpServletRequest request)(Code)
Tell whether a web application resource requires a secure transport protocol. This default implementation simply returns SecurityProtocol.UNSPECIFIED for all paths.
Parameters:
  path - a webapp-relative path for a resource.
Parameters:
  request - the current HttpServletRequest. SecurityProtocol.UNSPECIFIED.



getServletContext
protected ServletContext getServletContext()(Code)
Get the current ServletContext. the current ServletContext.



isInProductionMode
public boolean isInProductionMode()(Code)
Tell whether the system is in production mode. true if the system property "beehive.productionmode" is set to "true", or if asserts aredisabled for this class in the case where the system property has no value; false if thesystem property is set to "false", or if asserts are enabled for this class in the case where thesystem property has no value.



login
public void login(String username, String password, HttpServletRequest request, HttpServletResponse response) throws LoginException(Code)
Log in the user, using "weak" username/password authentication. This default implementation always throws UnsupportedOperationException .
throws:
  UnsupportedOperationException - in all cases.



logout
public void logout(boolean invalidateSessions, HttpServletRequest request, HttpServletResponse response)(Code)
Log out the user. This default implementation always throws UnsupportedOperationException .
throws:
  UnsupportedOperationException - in all cases.



setContext
public void setContext(AdapterContext context)(Code)
Set the AdapterContext.
Parameters:
  context - the AdapterContext to set.



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.