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


java.lang.Object
   com.sun.jbi.ui.common.JBIResultXmlBuilder

JBIResultXmlBuilder
public class JBIResultXmlBuilder (Code)
This class is used to create a JBI Management message that contains the messages and exception under the framework tags to help the ui messages formatted in the standard message format as the any other result messages comming from the jbi runtime in the form of jbi manamgment message xml.
author:
   Sun Microsystems, Inc.


Field Summary
final public static  StringDEFAULT_MSG_CODE
    
final public static  StringDEFAULT_TASK_ID
    
final public static  StringERROR_MSG_TYPE
    
final public static  booleanFAILED_RESULT
    
final public static  StringINFO_MSG_TYPE
    
final public static  booleanSUCCESS_RESULT
    
final public static  StringWARNING_MSG_TYPE
    

Constructor Summary
protected  JBIResultXmlBuilder()
    

Method Summary
public static  StringcreateFailedJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args)
    
public  StringcreateJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args, Throwable ex)
    
public  StringcreateJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args)
    
public  StringcreateJbiResultXml(String taskId, String msgCode, Throwable ex)
    
public static  StringcreateJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, String taskId, boolean successResult, String msgType, Throwable ex)
    
public static  StringcreateJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, Throwable ex)
    
public  StringcreateJbiResultXml(JBIManagementMessage msg)
    
protected  ListflatExceptionChain(Throwable ex)
    
protected  StringgetChainedExceptionInfoXml(String msgCode, Throwable ex)
    
protected  StringgetExceptionInfoXml(String msgCode, int nestingLevel, Throwable ex)
    
protected  StringgetExceptionInfoXml(String msgCode, String locMsg, int nestingLevel, String stackTrace)
    
protected  StringgetExceptionStackTrace(Throwable ex)
    
public static  JBIResultXmlBuildergetInstance()
    
protected  StringgetMsgLocInfoXml(String msgCode, String msg, Object[] args)
    
protected  StringgetTaskInfoXml(String taskId, boolean successResult, String msgType)
    
protected  StringgetTaskStatusMsgXml(String msgCode, String msg, Object[] args)
    

Field Detail
DEFAULT_MSG_CODE
final public static String DEFAULT_MSG_CODE(Code)
default message code



DEFAULT_TASK_ID
final public static String DEFAULT_TASK_ID(Code)
default task id



ERROR_MSG_TYPE
final public static String ERROR_MSG_TYPE(Code)
error message type



FAILED_RESULT
final public static boolean FAILED_RESULT(Code)
failed result



INFO_MSG_TYPE
final public static String INFO_MSG_TYPE(Code)
info message type



SUCCESS_RESULT
final public static boolean SUCCESS_RESULT(Code)
success result



WARNING_MSG_TYPE
final public static String WARNING_MSG_TYPE(Code)
warning message type




Constructor Detail
JBIResultXmlBuilder
protected JBIResultXmlBuilder()(Code)
Creates a new instance of EsbResultXmlBuilder




Method Detail
createFailedJbiResultXml
public static String createFailedJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args)(Code)
creates the jbi management xml
Parameters:
  i18nBundle - i18n bundle object
Parameters:
  i18nKey - i18n key in the bundle
Parameters:
  args - i18n args jbi mgmt xml



createJbiResultXml
public String createJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args, Throwable ex)(Code)
creates the jbi management xml
Parameters:
  taskId - task id
Parameters:
  successResult - true for SUCCESS, false for FAILIED message
Parameters:
  msgType - one of INFO, ERROR, WARNING
Parameters:
  msgCode - i18n message code
Parameters:
  msg - message
Parameters:
  args - i18n message arguments
Parameters:
  ex - exception jbi mgmt xml



createJbiResultXml
public String createJbiResultXml(String taskId, boolean successResult, String msgType, String msgCode, String msg, Object[] args)(Code)
creates the jbi management xml
Parameters:
  taskId - task id
Parameters:
  successResult - true for SUCCESS, false for FAILIED message
Parameters:
  msgType - one of INFO, ERROR, WARNING
Parameters:
  msgCode - i18n message code
Parameters:
  msg - message
Parameters:
  args - i18n message arguments jbi mgmt xml



createJbiResultXml
public String createJbiResultXml(String taskId, String msgCode, Throwable ex)(Code)
creates the jbi management xml
Parameters:
  taskId - task id
Parameters:
  msgCode - i18n message code
Parameters:
  ex - exception jbi mgmt xml



createJbiResultXml
public static String createJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, String taskId, boolean successResult, String msgType, Throwable ex)(Code)
creates the jbi management xml
Parameters:
  i18nBundle - i18n bundle object
Parameters:
  i18nKey - key to look for i18n msg
Parameters:
  args - i18n args
Parameters:
  taskId - task id
Parameters:
  successResult - true or false
Parameters:
  msgType - message type
Parameters:
  ex - exception the jbi management xml



createJbiResultXml
public static String createJbiResultXml(I18NBundle i18nBundle, String i18nKey, Object[] args, Throwable ex)(Code)
creates the jbi management xml
Parameters:
  i18nBundle - i18n bundle object
Parameters:
  i18nKey - i18n key in the bundle
Parameters:
  args - i18n args
Parameters:
  ex - exception jbi mgmt xml



createJbiResultXml
public String createJbiResultXml(JBIManagementMessage msg)(Code)
Creates a XML JBI Management message from the JBI Management Message the jbi management xml
Parameters:
  msg - - JBIManagementMessage instance to create the xml message from



flatExceptionChain
protected List flatExceptionChain(Throwable ex)(Code)
returns the exception cause chain in a list including this exception
Parameters:
  ex - exception list contain the exception chain



getChainedExceptionInfoXml
protected String getChainedExceptionInfoXml(String msgCode, Throwable ex)(Code)
returns the xml chunk contains exception message info for the exception chain
Parameters:
  msgCode - i18n code
Parameters:
  ex - exception xml chunk



getExceptionInfoXml
protected String getExceptionInfoXml(String msgCode, int nestingLevel, Throwable ex)(Code)
returns exceptin info xml chunk
Parameters:
  msgCode - i18n message code
Parameters:
  nestingLevel - level in the exception chain
Parameters:
  ex - exception for stacktrace xml chunk



getExceptionInfoXml
protected String getExceptionInfoXml(String msgCode, String locMsg, int nestingLevel, String stackTrace)(Code)
returns exceptin info xml chunk
Parameters:
  msgCode - i18n message code
Parameters:
  locMsg - localized message
Parameters:
  nestingLevel - level in the exception chain
Parameters:
  stackTrace - stacktrace string xml chunk



getExceptionStackTrace
protected String getExceptionStackTrace(Throwable ex)(Code)
return the excpetion stacktrace as a string
Parameters:
  ex - exception string contains the exception stacktrace



getInstance
public static JBIResultXmlBuilder getInstance()(Code)
returns the instance of this class instance of this class



getMsgLocInfoXml
protected String getMsgLocInfoXml(String msgCode, String msg, Object[] args)(Code)
return the xml chunk contains the message info elements
Parameters:
  msgCode - i18n message code
Parameters:
  msg - l10n message
Parameters:
  args - arguments for i18n message the xml chunk



getTaskInfoXml
protected String getTaskInfoXml(String taskId, boolean successResult, String msgType)(Code)
return the xml chunk that has task info elements
Parameters:
  taskId - task id
Parameters:
  successResult - true for SUCCESS, false for FAILED
Parameters:
  msgType - one of INFO, ERROR, WARNING strings the xml chunk



getTaskStatusMsgXml
protected String getTaskStatusMsgXml(String msgCode, String msg, Object[] args)(Code)
return the xml chuck for status message elements
Parameters:
  msgCode - i18n message code
Parameters:
  msg - l10n message
Parameters:
  args - arguments for i18n message the xml chunk



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.