Java Doc for AbstractResponseGenerator.java in  » Workflow-Engines » wfmopen-2.1.1 » de » danet » an » workflow » clients » wfxml » 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 » wfmopen 2.1.1 » de.danet.an.workflow.clients.wfxml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.danet.an.workflow.clients.wfxml.AbstractResponseGenerator

All known Subclasses:   de.danet.an.workflow.clients.wfxml.InstanceResponseGenerator,  de.danet.an.workflow.clients.wfxml.ServiceRegistryResponseGenerator,  de.danet.an.workflow.clients.wfxml.FactoryResponseGenerator,  de.danet.an.workflow.clients.wfxml.ActivityResponseGenerator,
AbstractResponseGenerator
abstract class AbstractResponseGenerator (Code)
This class provides the basic functionality of a SOAP based interface between the workflow engine (i.e. its processes) and any SOAP based client.
author:
   Dirk Schnelle


Field Summary
final public static  StringRESOURCE_ACTIVITY
    
final public static  StringRESOURCE_FACTORY
    
final public static  StringRESOURCE_INSTANCE
    
final public static  StringRESOURCE_SERVICE_REGISTRY
    

Constructor Summary
public  AbstractResponseGenerator(ObserverRegistry observerRegistry, WorkflowService wfs, ResourceReference resRef)
     Constructs a new object.

Method Summary
protected  SOAPBodyElementcreateAsapResponseNode(SOAPMessage respMsg, String nodeName)
     Convenience method to create response node for WfXML requests.
Parameters:
  respMsg - the repsonse message.
Parameters:
  nodeName - name of the response node.
protected  SOAPBodyElementcreateWfxmlResponseNode(SOAPMessage respMsg, String nodeName)
     Convenience method to create response node for WfXML requests.
Parameters:
  respMsg - the response message.
Parameters:
  nodeName - name of the response node.
abstract public  voidevaluate(SOAPMessage reqMsg, SOAPMessage respMsg)
     Handles the given request.
 voidfillResponseHeader(SOAPMessage reqMsg, SOAPMessage respMsg)
     Fills the response header.
protected  SOAPElementfindChildNode(SOAPElement element, String key)
     Tries to find a child node with the given name.
protected  SOAPBodyElementgetActionElement(SOAPMessage request)
     Retrieves the first element of the given request body that contains the requested action to perform.
protected  StringgetChildTextContent(SOAPMessage message, SOAPElement element, String prefix, String name)
     Retrieves the text content of the child node with the specified name.
Parameters:
  message - the message to inspect.
Parameters:
  element - the parent node.
Parameters:
  prefix - prefix of the searched child node.
Parameters:
  name - name of the searched child node.
protected  StringgetChildsTextContent(SOAPElement element, String key)
     Retrieves the contents of the child node with the given name as text.
Parameters:
  element - the parent node.
protected  StringgetHeaderValue(SOAPMessage message, String key)
     Retrieves the ASAP key from the header of the message.
Parameters:
  message - the message to inspect.
Parameters:
  key - the key to find.
protected  ObserverRegistrygetObserverRegistry()
     Retrieves the observer registry.
abstract protected  StringgetResourceName()
     Retrieves the name of this resource.
public  ResourceReferencegetResourceReference()
    
public  WorkflowServicegetWorkflowService()
    
protected  SOAPElementimportAsChild(SOAPElement parent, SOAPElement imported)
     Imports a SOAP node as a child of another node in another document.

Note that this might be not namespace aware.

protected static  voidimportSAXAsChild(SOAPMessage message, SOAPElement parent, SAXEventBuffer sax)
     Append the given SAX event buffer as a child to the parent SOAP element.
Parameters:
  message - the message containing the parent
Parameters:
  parent - the parent SOAP element
Parameters:
  sax - the sax buffer to import.
protected static  SOAPElementimportW3CNodeAsChild(SOAPElement parent, org.w3c.dom.Node imported)
     Imports a SOAP node as a child of another node in another document.

Note that this might be not namespace aware.

protected  voidmaybeAddTextNode(SOAPElement element, String text)
     Adds the text as a child node, if it is neither null nor empty.
protected  byte[]nodeToBytes(SOAPElement node)
     Creates a byte array representation for the given SOAP element.

Field Detail
RESOURCE_ACTIVITY
final public static String RESOURCE_ACTIVITY(Code)



RESOURCE_FACTORY
final public static String RESOURCE_FACTORY(Code)



RESOURCE_INSTANCE
final public static String RESOURCE_INSTANCE(Code)



RESOURCE_SERVICE_REGISTRY
final public static String RESOURCE_SERVICE_REGISTRY(Code)




Constructor Detail
AbstractResponseGenerator
public AbstractResponseGenerator(ObserverRegistry observerRegistry, WorkflowService wfs, ResourceReference resRef)(Code)
Constructs a new object.
Parameters:
  observerRegistry - the observer registry
Parameters:
  wfs - Reference to the workflow engine.
Parameters:
  resRef - the resource reference.




Method Detail
createAsapResponseNode
protected SOAPBodyElement createAsapResponseNode(SOAPMessage respMsg, String nodeName) throws SOAPException(Code)
Convenience method to create response node for WfXML requests.
Parameters:
  respMsg - the repsonse message.
Parameters:
  nodeName - name of the response node. created response node.
throws:
  SOAPException - error creating the SOAP nodes.



createWfxmlResponseNode
protected SOAPBodyElement createWfxmlResponseNode(SOAPMessage respMsg, String nodeName) throws SOAPException(Code)
Convenience method to create response node for WfXML requests.
Parameters:
  respMsg - the response message.
Parameters:
  nodeName - name of the response node. created response node.
throws:
  SOAPException - error creating the SOAP nodes.



evaluate
abstract public void evaluate(SOAPMessage reqMsg, SOAPMessage respMsg) throws SOAPException, RemoteException(Code)
Handles the given request.
Parameters:
  reqMsg - the request message.
Parameters:
  respMsg - the response message.
throws:
  SOAPException - Error in the underlying SOAP protocol.
throws:
  RemoteException - Error accessing the workflow engine.



fillResponseHeader
void fillResponseHeader(SOAPMessage reqMsg, SOAPMessage respMsg) throws SOAPException(Code)
Fills the response header.
Parameters:
  reqMsg - the request message.
Parameters:
  respMsg - the response message.
exception:
  SOAPException - Error in the SOAP message.



findChildNode
protected SOAPElement findChildNode(SOAPElement element, String key)(Code)
Tries to find a child node with the given name. If there is such a child node, the first child is returned.
Parameters:
  element - the parent element
Parameters:
  key - the name of the tag to find first child, if the tag could be found, null else.



getActionElement
protected SOAPBodyElement getActionElement(SOAPMessage request) throws SOAPException(Code)
Retrieves the first element of the given request body that contains the requested action to perform. It is guaranteed that the element has the correct namespace.
Parameters:
  request - the current request. action element
throws:
  SOAPException - error evaluating the request.



getChildTextContent
protected String getChildTextContent(SOAPMessage message, SOAPElement element, String prefix, String name) throws SOAPException(Code)
Retrieves the text content of the child node with the specified name.
Parameters:
  message - the message to inspect.
Parameters:
  element - the parent node.
Parameters:
  prefix - prefix of the searched child node.
Parameters:
  name - name of the searched child node. text content, or null if there is no such child node.
throws:
  SOAPException - error inspecting the SOAP message.



getChildsTextContent
protected String getChildsTextContent(SOAPElement element, String key)(Code)
Retrieves the contents of the child node with the given name as text.
Parameters:
  element - the parent node.
Parameters:
  key - name of the child node. Contents of the child node, or null, if thekey is no child of element.



getHeaderValue
protected String getHeaderValue(SOAPMessage message, String key) throws SOAPException(Code)
Retrieves the ASAP key from the header of the message.
Parameters:
  message - the message to inspect.
Parameters:
  key - the key to find. value for the key, null if the keycould not be found.
throws:
  SOAPException - error inspecting the SOAP message.



getObserverRegistry
protected ObserverRegistry getObserverRegistry()(Code)
Retrieves the observer registry. the observer registry.



getResourceName
abstract protected String getResourceName()(Code)
Retrieves the name of this resource. Name of the sender instance.



getResourceReference
public ResourceReference getResourceReference()(Code)
Returns the resourceReference.



getWorkflowService
public WorkflowService getWorkflowService()(Code)
Returns the workflow service.



importAsChild
protected SOAPElement importAsChild(SOAPElement parent, SOAPElement imported) throws SOAPException(Code)
Imports a SOAP node as a child of another node in another document.

Note that this might be not namespace aware. make sure to have all namespaces resolved before calling this method.


Parameters:
  parent - the parent node
Parameters:
  imported - the node to import the imported node
throws:
  SOAPException - error navigating through the SOAP stack.



importSAXAsChild
protected static void importSAXAsChild(SOAPMessage message, SOAPElement parent, SAXEventBuffer sax) throws SOAPException(Code)
Append the given SAX event buffer as a child to the parent SOAP element.
Parameters:
  message - the message containing the parent
Parameters:
  parent - the parent SOAP element
Parameters:
  sax - the sax buffer to import.
throws:
  TransformerException -
throws:
  SOAPException - Error in the SOAP message.



importW3CNodeAsChild
protected static SOAPElement importW3CNodeAsChild(SOAPElement parent, org.w3c.dom.Node imported) throws SOAPException(Code)
Imports a SOAP node as a child of another node in another document.

Note that this might be not namespace aware. make sure to have all namespaces resolved before calling this method.


Parameters:
  parent - the parent node
Parameters:
  imported - the node to import the imported node
throws:
  SOAPException - error navigating through the SOAP stack.



maybeAddTextNode
protected void maybeAddTextNode(SOAPElement element, String text) throws SOAPException(Code)
Adds the text as a child node, if it is neither null nor empty.
Parameters:
  element - the parent node.
Parameters:
  text - the text to add.
throws:
  SOAPException - error appending the text node.



nodeToBytes
protected byte[] nodeToBytes(SOAPElement node) throws TransformerException(Code)
Creates a byte array representation for the given SOAP element.
Parameters:
  node - the node to transform bytes for the given SOAP element.
throws:
  TransformerException - error transforming the node into a string.



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.