Java Doc for ServletAdapter.java in  » Workflow-Engines » bonita-v3.1 » mc » formgenerator » servlets » 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 » Workflow Engines » bonita v3.1 » mc.formgenerator.servlets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


mc.formgenerator.servlets.ServletAdapter

ServletAdapter
public class ServletAdapter extends AbstractChibaAdapter (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$


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

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

Method Summary
final public  voidbuildUI()
     generates the user interface.
public  voidbuildUI(Writer responseWriter)
     generates the user interface.
public  UIGeneratorcreateUIGenerator()
     factory method for creating UIGenerator instances.
public  voiddispatch(ChibaEvent event)
     ServletAdapter is special in its event handling - it simply ignores the concrete UIEvent and applies all request params and the triggerd action in one batch process.
public  voidforward(Map response)
     Instructs the application environment to forward the given response.
public  ChibaBeangetChibaBean()
    
public  ObjectgetContextProperty(String key)
     gets a context property from Chiba's context hashmap.
public  StringgetContextRoot()
    
public  MapgetForwardMap()
     returns a Map object containing a forward uri.
public  StringgetHostUrl()
    
protected  InteractionHandlergetNewInteractionHandler()
     return a new InteractionHandler.
protected  UIGeneratorgetNewUIGenerator(StylesheetLoader stylesLoader)
     return a new UIGenerator.
public  StringgetRedirectUri()
    
public  StringgetUploadDir()
    
public  voidinit()
    
public  voidsetActionUrl(String actionUrl)
    
public  voidsetCSS(String css)
    
public  voidsetContextProperty(String key, Object val)
     stores a context property into Chiba's context hashmap.
public  voidsetContextRoot(String contextRoot)
     sets the context root for the webapp.
public  voidsetFormDocument(Node formNode)
     sets a XForms host document for processing by directly passing a DOM Node.
public  voidsetHostUrl(String hostUrl)
     sets host URL.
public  voidsetRedirect(String uri)
     Instructs the application environment to setRedirect to the given URI.
public  voidsetStylesheet(String stylesheetFile)
    
public  voidsetStylesheetPath(String stylesPath)
    
public  voidsetUploadDir(String uploadDir)
     sets the directory where uploaded files are stored.
public  voidsetXFormsURI(String uriString)
     uses an URI in string representation to point to the XForms document to process.
public  voidshutdown()
     terminates the XForms processing.

Field Detail
HTTP_SERVLET_REQUEST
final public static String HTTP_SERVLET_REQUEST(Code)



HTTP_SESSION_OBJECT
final public static String HTTP_SESSION_OBJECT(Code)



HTTP_UPLOAD_DIR
final public static String HTTP_UPLOAD_DIR(Code)



USERAGENT
final public static String USERAGENT(Code)




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




Method Detail
buildUI
final public void buildUI() throws XFormsException(Code)
generates the user interface. This method generates the user interface.
throws:
  XFormsException -



buildUI
public void buildUI(Writer responseWriter) throws XFormsException(Code)
generates the user interface. This conveniance method generates the user interface using a java.io.Writer.
Parameters:
  responseWriter - the Writer to use for the result stream
throws:
  XFormsException -



createUIGenerator
public UIGenerator createUIGenerator() throws XFormsException(Code)
factory method for creating UIGenerator instances. the created UIGenerator instance
throws:
  XFormsException -



dispatch
public void dispatch(ChibaEvent event) throws XFormsException(Code)
ServletAdapter is special in its event handling - it simply ignores the concrete UIEvent and applies all request params and the triggerd action in one batch process.
Parameters:
  event - ignored
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.



getChibaBean
public ChibaBean getChibaBean()(Code)
returns the ChibaBean instance used with this servletAdapter the ChibaBean instance used with this servletAdapter



getContextProperty
public Object getContextProperty(String key)(Code)
gets a context property from Chiba's context hashmap.
Parameters:
  key - a context property from Chiba's context hashmap.



getContextRoot
public String getContextRoot()(Code)



getForwardMap
public Map getForwardMap()(Code)
returns a Map object containing a forward uri. this is used by the 'load' action a Map object containing a forward uri



getHostUrl
public String getHostUrl()(Code)



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



getNewUIGenerator
protected UIGenerator getNewUIGenerator(StylesheetLoader stylesLoader) throws XFormsException(Code)
return a new UIGenerator. This method returns a new XSLTGenerator.
Parameters:
  stylesLoader - returns a new UIGenerator object



getRedirectUri
public String getRedirectUri()(Code)
returns the redirect Uri the redirect Uri



getUploadDir
public String getUploadDir()(Code)



init
public void init() throws XFormsException(Code)
creates an instance of ChibaBean, configures it and creates a generator instance
throws:
  XFormsException - If an error occurs



setActionUrl
public void setActionUrl(String actionUrl)(Code)
sets the Url for the action target
Parameters:
  actionUrl - the Url for the action target



setCSS
public void setCSS(String css)(Code)
set the CSS file to use for styling the user interface
Parameters:
  css - the CSS file to use for styling the user interface



setContextProperty
public void setContextProperty(String key, Object val)(Code)
stores a context property into Chiba's context hashmap.
Parameters:
  key - the key to associate with val
Parameters:
  val - the value object to store



setContextRoot
public void setContextRoot(String contextRoot)(Code)
sets the context root for the webapp. This is used to build the correct pathes of relative path-statements
Parameters:
  contextRoot - the root of the webapp



setFormDocument
public void setFormDocument(Node formNode)(Code)
sets a XForms host document for processing by directly passing a DOM Node.
Parameters:
  formNode - the rootnode of the host document



setHostUrl
public void setHostUrl(String hostUrl)(Code)
sets host URL.
Parameters:
  hostUrl - the URL of the host



setRedirect
public void setRedirect(String uri)(Code)
Instructs the application environment to setRedirect to the given URI.
Parameters:
  uri - an absolute URI.



setStylesheet
public void setStylesheet(String stylesheetFile)(Code)
sets the name of the xslt stylesheet to use for building the UI
Parameters:
  stylesheetFile - the name of the xslt stylesheet to use for building the UI



setStylesheetPath
public void setStylesheetPath(String stylesPath)(Code)
sets the path where to find the xslt stylesheets
Parameters:
  stylesPath - the path where to find the xslt stylesheets



setUploadDir
public void setUploadDir(String uploadDir)(Code)
sets the directory where uploaded files are stored.
Parameters:
  uploadDir - the directory where uploaded files are stored



setXFormsURI
public void setXFormsURI(String uriString) throws URISyntaxException, XFormsException(Code)
uses an URI in string representation to point to the XForms document to process. This URI always comes as a http Url in the context of servlet processing.
Parameters:
  uriString - a http URI pointing to the requested XForms
throws:
  URISyntaxException - thrown in case an invalid http Url is passed in
throws:
  XFormsException - thrown in case the processor couldn't be initialized from given URI, mostly likely dueto a problem in the form.



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 -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.