Java Doc for MessageDenormalizerImpl.java in  » ESB » open-esb » com » sun » jbi » common » soap » 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 » ESB » open esb » com.sun.jbi.common.soap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.common.soap.MessageDenormalizerImpl

MessageDenormalizerImpl
public class MessageDenormalizerImpl implements MessageDenormalizer(Code)
This Basic Profile 1.0 aware implementation is used to denormalize a JBI Normalized Message and convert it into a SOAP message format.
author:
   Sun Microsystems, Inc.



Constructor Summary
public  MessageDenormalizerImpl()
     Creates a new instance of MessageDenormalizerImpl.

Method Summary
protected  voidcloseWriter(Writer writer)
     Closes the writer instance.
protected  SOAPMessagecreateSOAPMessage(ByteArrayOutputStream byteStream)
     Uses the provided input data to create a javax.xml.soap.SOAPMessage instance.
Parameters:
  byteStream - Stream which contains the soap messages information as bytes.
public  SOAPWrapperdenormalizeFaultMessage(Fault faultMessage)
     Converts a JBI Fault mesage to a standard javax.xml.soap.SOAPMessage message instance.
public  SOAPWrapperdenormalizeFaultMessage(Fault faultMessage, String faultCode)
     Converts a JBI Fault mesage to a SOAP Message using the specified fault code.
public  SOAPWrapperdenormalizeMessage(NormalizedMessage normalizedMessage, Operation operation, boolean isResponse)
     Converts a JBI normalized message to a javax.jbi.soap.SOAPMessage instance.
public  SOAPWrapperdenormalizeMessage(Exception exception)
     Converts an exception to a SOAP Message.
public  SOAPWrapperdenormalizeMessage(Exception exception, String faultCode)
     Converts an exception to a SOAP Message using the provided faultCode.
protected  StringsanitizeMessage(String errorMessage)
     Sanitizes the messages so that it can be properly read by an XML parser.
Parameters:
  errorMessage - error message to be sanitized.
protected  voidwriteBody(NormalizedMessage normalizedMessage, Operation operation, boolean isResponse, Writer writer)
     This method extracts the payload from the Normalized Message and writes it using the writer stream.
protected  voidwriteBodyFooter(Operation operation, Writer writer, boolean isEmptyResponse)
     Uses writer object to write the SOAP:Body footer information.
protected  voidwriteBodyHeader(Operation operation, Writer writer, boolean isEmptyResponse)
     Uses the writer object to write the SOAP:Body header information.
protected  voidwriteEnvelopeFooter(Writer writer)
     Uses writer object to write the SOAP:Envelope footer information.
protected  voidwriteEnvelopeHeader(Writer writer)
     Uses writer object to write the SOAP:Envelope header information.
protected  voidwriteFault(Exception exception, String faultCode, Writer writer)
     Create the SOAP:Fault message based on the provided exception details and writes it using the writer instance.
protected  voidwriteHeader(NormalizedMessage normalizedMessage, Writer writer)
     The method extracts the header information from the Normalized Message property "SoapHeader" and writes it using the writer instance.


Constructor Detail
MessageDenormalizerImpl
public MessageDenormalizerImpl()(Code)
Creates a new instance of MessageDenormalizerImpl.




Method Detail
closeWriter
protected void closeWriter(Writer writer)(Code)
Closes the writer instance. This method handles any exceptions thrown while handling this request.
Parameters:
  writer - writer instance.



createSOAPMessage
protected SOAPMessage createSOAPMessage(ByteArrayOutputStream byteStream) throws SOAPException, IOException(Code)
Uses the provided input data to create a javax.xml.soap.SOAPMessage instance.
Parameters:
  byteStream - Stream which contains the soap messages information as bytes. SOAP Message object
throws:
  SOAPException - if soap message object cannot be created.
throws:
  IOException - if soap message object cannot be created.



denormalizeFaultMessage
public SOAPWrapper denormalizeFaultMessage(Fault faultMessage)(Code)
Converts a JBI Fault mesage to a standard javax.xml.soap.SOAPMessage message instance. It uses the default Server fault code for denormalization.
Parameters:
  faultMessage - JBI fault message. a new SOAPWrapper instance which contains the SOAP fault Message.



denormalizeFaultMessage
public SOAPWrapper denormalizeFaultMessage(Fault faultMessage, String faultCode)(Code)
Converts a JBI Fault mesage to a SOAP Message using the specified fault code.
Parameters:
  faultMessage - JBI fault message.
Parameters:
  faultCode - fault code to be used in the fault message a new SOAPWrapper instance which contains the SOAP fault Message.



denormalizeMessage
public SOAPWrapper denormalizeMessage(NormalizedMessage normalizedMessage, Operation operation, boolean isResponse)(Code)
Converts a JBI normalized message to a javax.jbi.soap.SOAPMessage instance. The SOAP Header information is extracted from the NormalizedMessage property "SoapHeader" and the SOAP Body content is extracted from the Normalized Message content. Any attachments present in the NormalizedMessage are also denormalized and added to the created javax.jbi.soap.SOAPMessage instance.
Parameters:
  normalizedMessage - message to be denormalized.
Parameters:
  operation - operation invoked
Parameters:
  isResponse - indicates if a response messages needs to be generated the SOAP Message.



denormalizeMessage
public SOAPWrapper denormalizeMessage(Exception exception)(Code)
Converts an exception to a SOAP Message. It uses the default Server fault code for denormalization.
Parameters:
  exception - exception instance denormalized exception object



denormalizeMessage
public SOAPWrapper denormalizeMessage(Exception exception, String faultCode)(Code)
Converts an exception to a SOAP Message using the provided faultCode. The code expects the faultcode passed to be part of the soap namespace.
Parameters:
  exception - exception instance
Parameters:
  faultCode - fault code denormalized exception object



sanitizeMessage
protected String sanitizeMessage(String errorMessage)(Code)
Sanitizes the messages so that it can be properly read by an XML parser.
Parameters:
  errorMessage - error message to be sanitized. sanitized error message.



writeBody
protected void writeBody(NormalizedMessage normalizedMessage, Operation operation, boolean isResponse, Writer writer) throws Exception(Code)
This method extracts the payload from the Normalized Message and writes it using the writer stream. The payload content is enclosed between the SOAP:Body header and SOAP:Body footer information.
Parameters:
  normalizedMessage - normalized message
Parameters:
  operation - operation invoked
Parameters:
  isResponse - indicates if a response messages needs to be generated
Parameters:
  writer - writer object to be used
throws:
  Exception - if the body cannot be written



writeBodyFooter
protected void writeBodyFooter(Operation operation, Writer writer, boolean isEmptyResponse) throws Exception(Code)
Uses writer object to write the SOAP:Body footer information. This method is invoked after the body payload has been written.
Parameters:
  operation - operation invoked
Parameters:
  writer - writer object.
Parameters:
  isEmptyResponse - indicates if a response messages needs to be generated
throws:
  Exception - if body footer cannot be written



writeBodyHeader
protected void writeBodyHeader(Operation operation, Writer writer, boolean isEmptyResponse) throws Exception(Code)
Uses the writer object to write the SOAP:Body header information. This method is invoked before the body payload is written.
Parameters:
  operation - operation invoked
Parameters:
  writer - writer object to be used
Parameters:
  isEmptyResponse - indicates if an empty response message needs to be generated
throws:
  Exception - if body header cannot be written.



writeEnvelopeFooter
protected void writeEnvelopeFooter(Writer writer) throws IOException(Code)
Uses writer object to write the SOAP:Envelope footer information. This method is invoked after writing the envelope content ( header and body content).
Parameters:
  writer - writer object
throws:
  IOException - if envelope footer information cannot be written.



writeEnvelopeHeader
protected void writeEnvelopeHeader(Writer writer) throws IOException(Code)
Uses writer object to write the SOAP:Envelope header information. This method is invoked before writing the envelope content ( header and body content).
Parameters:
  writer - writer object.
throws:
  IOException - if envelope header information cannot be written.



writeFault
protected void writeFault(Exception exception, String faultCode, Writer writer) throws IOException(Code)
Create the SOAP:Fault message based on the provided exception details and writes it using the writer instance.
Parameters:
  exception - exception thrown
Parameters:
  faultCode - fault code
Parameters:
  writer - writer object
throws:
  IOException - if fault message cannot be generated.



writeHeader
protected void writeHeader(NormalizedMessage normalizedMessage, Writer writer) throws Exception(Code)
The method extracts the header information from the Normalized Message property "SoapHeader" and writes it using the writer instance. The header information is expected to be propagated as a javax.xml.soap.SOAPHeader implementation instance.
Parameters:
  normalizedMessage - normalizedMessage
Parameters:
  writer - writer object to be used
throws:
  Exception - if header cannot be used to write to the writer instance



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.