Java Doc for ServletAdapter.java in  » J2EE » Enhydra-Application-Framework » org » enhydra » util » chiba » 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 » J2EE » Enhydra Application Framework » org.enhydra.util.chiba 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.enhydra.util.chiba.BaseAdapter
   org.enhydra.util.chiba.ServletAdapter

ServletAdapter
public class ServletAdapter extends BaseAdapter implements EventListener(Code)
integrates XForms Processor into Web-applications and handles request processing. This is the default implementation of ChibaAdapter and besides handling the interaction it also manages a UIGenerator to build the rendered output for the browser.
author:
   joern turner
version:
   $Id: ServletAdapter.java,v 1.2 2007-05-17 12:52:55 sinisa Exp $


Field Summary
final public static  StringHTTP_SERVLET_REQUEST
    
final public static  StringHTTP_UPLOAD_DIR
    
final public static  StringUSERAGENT
    
final public static  ObjectXSLT_PATH
    

Constructor Summary
public  ServletAdapter()
     Creates a new ServletAdapter object.

Method Summary
public  voiddispatch(ChibaEvent event)
     ServletAdapter knows and executes only one ChibaEvent: 'http-request' which will contain the HttpServletRequest as contextInfo.
public  voidforward(Map response)
     Instructs the application environment to forward the given response.
protected  HttpRequestHandlergetNewInteractionHandler()
     return a new InteractionHandler.
public  voidhandleEvent(Event event)
     This method is called whenever an event occurs of the type for which the EventListener interface was registered.
Parameters:
  event - The Event contains contextual information aboutthe event.
public  voidhandleLoadURI(String targetId, String uri, String show)
    
public  voidhandleMessage(String targetId, String message, String level)
    
public  voidhandleReplaceAll(String targetId, Map header, Object body)
    
public  voidinit()
     place to put application-specific params or configurations before actually starting off the XFormsProcessor.
public  voidsetBaseURI(String aURI)
    
public  voidsetContext(Map contextParams)
     passes Map containing arbitrary context parameters to the Adapter.
public  voidsetUploadDestination(String uploadDir)
    
public  voidshutdown()
     terminates the XForms processing.

Field Detail
HTTP_SERVLET_REQUEST
final public static String HTTP_SERVLET_REQUEST(Code)



HTTP_UPLOAD_DIR
final public static String HTTP_UPLOAD_DIR(Code)



USERAGENT
final public static String USERAGENT(Code)



XSLT_PATH
final public static Object XSLT_PATH(Code)




Constructor Detail
ServletAdapter
public ServletAdapter()(Code)
Creates a new ServletAdapter object.




Method Detail
dispatch
public void dispatch(ChibaEvent event) throws XFormsException(Code)
ServletAdapter knows and executes only one ChibaEvent: 'http-request' which will contain the HttpServletRequest as contextInfo.
Parameters:
  event - only events of type 'http-request' will be handled
throws:
  XFormsException -



forward
public void forward(Map response)(Code)
Instructs the application environment to forward the given response.
Parameters:
  response - a map containing at least a response stream and optionalheader information.



getNewInteractionHandler
protected HttpRequestHandler getNewInteractionHandler() throws XFormsException(Code)
return a new InteractionHandler.

This method returns a new HttpRequestHandler. returns a new




handleEvent
public void handleEvent(Event event)(Code)
This method is called whenever an event occurs of the type for which the EventListener interface was registered.
Parameters:
  event - The Event contains contextual information aboutthe event. It also contains the stopPropagation andpreventDefault methods which are used in determining theevent's flow and default action.



handleLoadURI
public void handleLoadURI(String targetId, String uri, String show)(Code)



handleMessage
public void handleMessage(String targetId, String message, String level)(Code)



handleReplaceAll
public void handleReplaceAll(String targetId, Map header, Object body)(Code)



init
public void init() throws XFormsException(Code)
place to put application-specific params or configurations before actually starting off the XFormsProcessor. It's the responsibility of this method to call chibaBean.init() to finish up the processor setup.
throws:
  XFormsException - If an error occurs



setBaseURI
public void setBaseURI(String aURI)(Code)



setContext
public void setContext(Map contextParams)(Code)
passes Map containing arbitrary context parameters to the Adapter.
Parameters:
  contextParams - Map of arbitrary params passed to the processor



setUploadDestination
public void setUploadDestination(String uploadDir)(Code)



shutdown
public void shutdown() throws XFormsException(Code)
terminates the XForms processing. right place to do cleanup of resources.
throws:
  org.chiba.xml.xforms.exception.XFormsException -



Fields inherited from org.enhydra.util.chiba.BaseAdapter
public boolean clean(Code)(Java Doc)

Methods inherited from org.enhydra.util.chiba.BaseAdapter
public boolean isClean()(Code)(Java Doc)
public void setClean(boolean clean)(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.