Java Doc for SessionServlet.java in  » Swing-Library » wings3 » org » wings » session » 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 » Swing Library » wings3 » org.wings.session 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServlet
   org.wings.session.SessionServlet

SessionServlet
final class SessionServlet extends HttpServlet implements HttpSessionBindingListener(Code)
The servlet engine creates for each user a new HttpSession. This HttpSession can be accessed by all Serlvets running in the engine. A WingServlet creates one wings SessionServlet per HTTPSession and stores it in its context.

As the SessionServlets acts as Wrapper for the WingsServlet, you can access from there as used the ServletContext and the HttpSession. Additionally the SessionServlet containts also the wingS-Session with all important services and the superordinated SFrame. To this SFrame all wings-Components and hence the complete application state is attached. The developer can access from any place via the SessionManager a reference to the wingS-Session. Additionally the SessionServlet provides access to the all containing HttpSession.
author:
   Armin Haaf



Field Summary
protected transient  HttpServletparent
    

Constructor Summary
protected  SessionServlet()
     Default constructor.

Method Summary
public  voiddestroy()
     Destroy and cleanup the session servlet.
final public synchronized  voiddoGet(HttpServletRequest req, HttpServletResponse response)
     Verarbeitet Informationen vom Browser:
  • setzt Locale
  • Dispatch Get Parameter
  • feuert Form Events
Ist synchronized, damit nur ein Frame gleichzeitig bearbeitet werden kann.
final public  voiddoPost(HttpServletRequest req, HttpServletResponse res)
    
public  StringgetInitParameter(String name)
    
public  EnumerationgetInitParameterNames()
    
public  ServletConfiggetServletConfig()
    
public  ServletContextgetServletContext()
    
public  StringgetServletInfo()
    
final public  SessiongetSession()
    
public static  StringgetSessionEncoding(HttpServletResponse response)
     get the Session Encoding, that is appended to each URL.
protected  voidhandleException(HttpServletResponse response, Throwable thrown)
     In case of an error, display an error page to the user.
final protected  voidhandleLocale(HttpServletRequest req)
     The Locale of the current wings session servlet is determined by the locale transmitted by the browser.
protected  voidhandleUnknownResourceRequested(HttpServletRequest req, HttpServletResponse res)
     This method is called, whenever a Resource is requested whose name is not known within this session.
final public  voidinit(ServletConfig config, HttpServletRequest request, HttpServletResponse response)
    
public  booleanisValid()
     A check if this session servlet seems to be alive or is i.e.
public  voidlog(String msg)
     Delegates log messages to the according WingsServlet or alternativly to the HttpServlet logger.
final public  voidsetLocaleFromHeader(String[] args)
     Overrides the session set for setLocaleFromHeader by a request parameter.
final protected  voidsetParent(HttpServlet p)
     Sets the parent servlet contianint this wings session servlet (WingsServlet, delegating its requests to the SessionServlet).
public  voidvalueBound(HttpSessionBindingEvent event)
    
public  voidvalueUnbound(HttpSessionBindingEvent event)
    

Field Detail
parent
protected transient HttpServlet parent(Code)
The parent WingServlet




Constructor Detail
SessionServlet
protected SessionServlet()(Code)
Default constructor.




Method Detail
destroy
public void destroy()(Code)
Destroy and cleanup the session servlet.



doGet
final public synchronized void doGet(HttpServletRequest req, HttpServletResponse response)(Code)
Verarbeitet Informationen vom Browser:
  • setzt Locale
  • Dispatch Get Parameter
  • feuert Form Events
Ist synchronized, damit nur ein Frame gleichzeitig bearbeitet werden kann.



doPost
final public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException(Code)
this method references to SessionServlet.doGet(HttpServletRequest,HttpServletResponse)



getInitParameter
public String getInitParameter(String name)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getServletConfig
public ServletConfig getServletConfig()(Code)



getServletContext
public ServletContext getServletContext()(Code)



getServletInfo
public String getServletInfo()(Code)



getSession
final public Session getSession()(Code)



getSessionEncoding
public static String getSessionEncoding(HttpServletResponse response)(Code)
get the Session Encoding, that is appended to each URL. Basically, this is response.encodeURL(""), but unfortuntatly, this empty encoding isn't supported by Tomcat 4.x anymore.



handleException
protected void handleException(HttpServletResponse response, Throwable thrown)(Code)
In case of an error, display an error page to the user. This is only done if there is a properties wings.error.handler defined in the web.xml file. If the property is present, the following steps are performed:
  • Load the class named by the value of that property, using the current thread's context class loader,
  • Instantiate that class using its zero-argument constructor,
  • Cast the instance to ExceptionHandler,
  • Invoke the handler's handle method, passing it the thrown argument that was passed to this method.
    See Also:   DefaultExceptionHandler
    Parameters:
      response - the HTTP Response to use
    Parameters:
      thrown - the Exception to report



  • handleLocale
    final protected void handleLocale(HttpServletRequest req)(Code)
    The Locale of the current wings session servlet is determined by the locale transmitted by the browser. The request parameter
    LocaleFromHeader
    can override the behaviour of a wings session servlet to adopt the clients browsers Locale.
    Parameters:
      req - The request to determine the local from.



    handleUnknownResourceRequested
    protected void handleUnknownResourceRequested(HttpServletRequest req, HttpServletResponse res) throws IOException(Code)
    This method is called, whenever a Resource is requested whose name is not known within this session.
    Parameters:
      req - the causing HttpServletRequest
    Parameters:
      res - the HttpServletResponse of this request



    init
    final public void init(ServletConfig config, HttpServletRequest request, HttpServletResponse response) throws ServletException(Code)
    init



    isValid
    public boolean isValid()(Code)
    A check if this session servlet seems to be alive or is i.e. invalid because it was deserialized. true, if this session servlet seems to be valid and alive.



    log
    public void log(String msg)(Code)
    Delegates log messages to the according WingsServlet or alternativly to the HttpServlet logger.
    Parameters:
      msg - The logmessage



    setLocaleFromHeader
    final public void setLocaleFromHeader(String[] args)(Code)
    Overrides the session set for setLocaleFromHeader by a request parameter. Hence you can force the wings session to adopt the clients Locale.



    setParent
    final protected void setParent(HttpServlet p)(Code)
    Sets the parent servlet contianint this wings session servlet (WingsServlet, delegating its requests to the SessionServlet).



    valueBound
    public void valueBound(HttpSessionBindingEvent event)(Code)



    valueUnbound
    public void valueUnbound(HttpSessionBindingEvent event)(Code)



    Methods inherited from javax.servlet.http.HttpServlet
    protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    protected long getLastModified(HttpServletRequest req)(Code)(Java Doc)
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(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.