Java Doc for ServletManager.java in  » Swing-Library » Swinglets » com » javelin » swinglets » 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 » Swinglets » com.javelin.swinglets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.javelin.swinglets.SwingletManager
      com.javelin.swinglets.ServletManager

ServletManager
public class ServletManager extends SwingletManager implements HttpSessionBindingListener(Code)
Defines an object that manages the Swinglets.

This class is an implementation of the SwingletManager class that implements servlets.

This manager adds itself listens to the Session to see when it is being unbound.
author:
   Robin Sharp




Constructor Summary
protected  ServletManager(HttpSession session)
     Construct a ServletManager with a HttpSession.

Method Summary
public  ServletConfiggetConfig()
    
public  URLgetImageResource(String imageName)
    
public  EnumerationgetKeys()
     Get an Enumeration of keys.
public static synchronized  ServletManagergetManager(HttpServletRequest request)
     Initialise and return the instance of the SwingletManager for the session.
public static synchronized  ServletManagergetManager(HttpServletRequest request, ServletConfig config)
     Initialise and return the instance of the SwingletManager for the session.
public static synchronized  ObjectgetOutput(SComponent component, HttpServletResponse response)
     Get the output object for a Component.
public  HttpServletRequestgetRequest()
    
public  URLgetResource(String resourceName)
    
public  HttpServletResponsegetResponse()
    
public  HttpSessiongetSession()
    
public  ObjectgetValue(String name)
     Get a value by name.
public  EnumerationgetValues()
     Get an Enumeration of keys.
public synchronized  SComponenthandle(HttpServletRequest request, HttpServletResponse response, String defaultTargetComponent)
     Handle any events arriving from the browser for a component.
public  voidputValue(String name, Object value)
     Bind an value to the Swinglet Manager.
public  voidvalueBound(HttpSessionBindingEvent event)
     Called when this is added to the session.
public  voidvalueUnbound(HttpSessionBindingEvent event)
     Called when this is removed from the session.


Constructor Detail
ServletManager
protected ServletManager(HttpSession session)(Code)
Construct a ServletManager with a HttpSession.




Method Detail
getConfig
public ServletConfig getConfig()(Code)



getImageResource
public URL getImageResource(String imageName) throws MalformedURLException(Code)



getKeys
public Enumeration getKeys()(Code)
Get an Enumeration of keys.



getManager
public static synchronized ServletManager getManager(HttpServletRequest request)(Code)
Initialise and return the instance of the SwingletManager for the session.

If the SwingletManager does not already exist add it to the session.

This will bind the SwingletManager to the current thread on the basis of the URL file name.




getManager
public static synchronized ServletManager getManager(HttpServletRequest request, ServletConfig config)(Code)
Initialise and return the instance of the SwingletManager for the session.

If the SwingletManager does not already exist add it to the session.

This will bind the SwingletManager to the current thread on the basis of the URL file name.




getOutput
public static synchronized Object getOutput(SComponent component, HttpServletResponse response) throws IOException(Code)
Get the output object for a Component. If the LookAndFeel is a Writer get the writer other wise get the OutputStream



getRequest
public HttpServletRequest getRequest()(Code)



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



getResponse
public HttpServletResponse getResponse()(Code)



getSession
public HttpSession getSession()(Code)



getValue
public Object getValue(String name)(Code)
Get a value by name.



getValues
public Enumeration getValues()(Code)
Get an Enumeration of keys.



handle
public synchronized SComponent handle(HttpServletRequest request, HttpServletResponse response, String defaultTargetComponent) throws ServletException, IOException(Code)
Handle any events arriving from the browser for a component.

Firstly, IF the SConstants.SOURCE_CONTAINER is NOT set on the request OR the SConstants.SOURCE_CONTAINER has NOT been put as a Value in the SwingletManager then dispatch a new FormEvent to the SOURCE_COMPONENT.

Secondly, If the SConstants.SOURCE_CONTAINER is set on the request, AND the SConstants.SOURCE_CONTAINER has been put as a Value in the SwingletManager then the SConstants.SOURCE_COMPONENT is looked up below that container and a new FormEvent is dispatched to that component.

If neither of these is found continue.

After the Event has been dispatched, then the target component is found.

If the SConstants.TARGET_COMPONENT is set and put as a Value in the SwingletManager is it returned.

If the SConstants.SOURCE_CONTAINER is set then return that, otherwise return the SConstants.SOURCE_COMPONENT.

Finally, If the SConstants.TARGET_COMPONENT is NOT set and the defaultTargetComponent has been put as a Value in the SwingletManager is it returned.

defaultTargetComponent. The default target component if one is not set.This is usually a Frame, but may be a component, for JSP/ASP the SComponent that is a reposnse to the event. This Componentshould be painted.




putValue
public void putValue(String name, Object value)(Code)
Bind an value to the Swinglet Manager.
Parameters:
  name - the key of the value.
Parameters:
  value - the value. If this is null it is removed.



valueBound
public void valueBound(HttpSessionBindingEvent event)(Code)
Called when this is added to the session.



valueUnbound
public void valueUnbound(HttpSessionBindingEvent event)(Code)
Called when this is removed from the session. By default unbinding will clear all the hashmap and the local variables.



Fields inherited from com.javelin.swinglets.SwingletManager
protected BrowserLookAndFeel browserLookAndFeel(Code)(Java Doc)
protected BrowserProfile browserProfile(Code)(Java Doc)
protected boolean cached(Code)(Java Doc)
protected static String defaultImagePath(Code)(Java Doc)
protected static String defaultRealPath(Code)(Java Doc)
protected static STheme defaultTheme(Code)(Java Doc)
protected static String defaultUrl(Code)(Java Doc)
protected String imagePath(Code)(Java Doc)
protected static ThreadLocal localSwingletManager(Code)(Java Doc)
protected String realPath(Code)(Java Doc)
protected String remoteUser(Code)(Java Doc)
protected static String servletRunner(Code)(Java Doc)
protected STheme theme(Code)(Java Doc)
protected String url(Code)(Java Doc)

Methods inherited from com.javelin.swinglets.SwingletManager
public void applyDetectedLookAndFeel(String agent)(Code)(Java Doc)
public BrowserLookAndFeel getBrowserLookAndFeel()(Code)(Java Doc)
public BrowserProfile getBrowserProfile()(Code)(Java Doc)
public static synchronized String getDefaultImagePath()(Code)(Java Doc)
public static synchronized String getDefaultRealPath()(Code)(Java Doc)
public static STheme getDefaultTheme()(Code)(Java Doc)
public static synchronized String getDefaultUrl()(Code)(Java Doc)
public SLookAndFeel getDetectedLookAndFeel(String agent)(Code)(Java Doc)
public SLookAndFeel getDetectedLookAndFeel(String agent, String mimeType)(Code)(Java Doc)
public String getImagePath()(Code)(Java Doc)
abstract public URL getImageResource(String imageName) throws MalformedURLException(Code)(Java Doc)
abstract public Enumeration getKeys()(Code)(Java Doc)
public String getRealPath()(Code)(Java Doc)
public String getRemoteUser()(Code)(Java Doc)
abstract public URL getResource(String resourceName) throws MalformedURLException(Code)(Java Doc)
public static String getServletRunner()(Code)(Java Doc)
public static synchronized SwingletManager getSwingletManager()(Code)(Java Doc)
public STheme getTheme()(Code)(Java Doc)
public String getUrl()(Code)(Java Doc)
abstract public Object getValue(String name)(Code)(Java Doc)
abstract public Enumeration getValues()(Code)(Java Doc)
public boolean isCached()(Code)(Java Doc)
abstract public void putValue(String name, Object value)(Code)(Java Doc)
public void setBrowserLookAndFeel(BrowserLookAndFeel blf)(Code)(Java Doc)
public void setBrowserProfile(BrowserProfile browserProfile)(Code)(Java Doc)
public void setCached(boolean cached)(Code)(Java Doc)
public static synchronized void setDefaultImagePath(String rp)(Code)(Java Doc)
public static synchronized void setDefaultRealPath(String rp)(Code)(Java Doc)
public static void setDefaultTheme(STheme dt)(Code)(Java Doc)
public static synchronized void setDefaultUrl(String url)(Code)(Java Doc)
public void setImagePath(String rp)(Code)(Java Doc)
public void setRealPath(String rp)(Code)(Java Doc)
public void setRemoteUser(String remoteUser)(Code)(Java Doc)
public static void setServletRunner(String sr)(Code)(Java Doc)
public static synchronized void setSwingletManager(SwingletManager swingletManager)(Code)(Java Doc)
public void setTheme(STheme theme)(Code)(Java Doc)
public void setUrl(String url)(Code)(Java Doc)
public void setUrl(URL url)(Code)(Java Doc)

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.