Java Doc for ESBResultFormatter.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.ESBResultFormatter

ESBResultFormatter
public class ESBResultFormatter (Code)
this class creates formatted text from the esb admin result.
author:
   Sun Microsystems, Inc.


Field Summary
final public static  StringAPP_VAR_MARKER_ID
    
final public static  StringCAS_KEY
    
final public static  intCAS_MSG_FORMAT
    
final public static  intCOMP_MSG_FORMAT
    
final public static  StringERROR
    
final public static  StringEXCEPTION
    
final public static  StringFAILED
    
final public static  StringINFO
    
final public static  StringINSTANCE_MARKER_ID
    
final public static  intINST_MSG_FORMAT
    
final public static  StringOUT_DEBUG
    
final public static  StringOUT_NORMAL
    
final public static  StringOUT_VERBOSE
    
final public static  StringSUCCESS
    
final public static  intTOP_MSG_FORMAT
    
final public static  StringUNKNOWN
     unknown value for any unknonw value of any msg status or type.
final public static  StringWARNING
    

Constructor Summary
public  ESBResultFormatter()
    
public  ESBResultFormatter(String outLevel)
    

Method Summary
public  TaskResultInfocreateTaskResultInfo(TaskResultInfo taskResultInfo, List msgList, List expList)
     copy the id, resutl, msgtype from the taskresultinfo passed and create a new TaskResultInfo with them and the passed msg, exp lists.
protected  Stringget2ndExceptionMsgI18NKey(int formatType)
    
protected  Stringget2ndMessageI18NKey(int formatType)
    
protected  StringgetExceptionMsgI18NKey(int formatType)
    
public  StringgetFormattedESBResult(JBIManagementMessage jbiMsg)
     return the formatted message if you can create.
public  StringgetFormattedESBResult(String jbiMgmtMsgXml)
     return the formatted message if you can create.
public  StringgetFormattedResult(ESBTaskResult esbResult)
    
public static  I18NBundlegetI18NBundle()
    
protected  StringgetL10N2ndExptionMessageForAppVar(String appVarName)
    
protected  StringgetL10NExptionMessage(String code, String msg)
    
protected  StringgetL10NExptionMessageForAppVar(String appVarName)
    
protected  StringgetL10NMainMessage(String msgType, String code, String msg)
    
protected  StringgetL10NMainMessageForAppVar(String msgType, String appVarName)
    
protected  StringgetL10NMessage(String code, String msg)
    
protected  StringgetL10NMessageForAppVar(String appVarName)
    
protected  StringgetL10NMessageType(String msgType)
    
protected  StringgetMainMessageI18NKey(int formatType)
    
protected  voidprint2ndExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg)
    
protected  voidprint2ndMessage(PrintWriter out, int formatType, String msgCode, String msg)
    
protected  booleanprintAllFormattedMessages(PrintWriter out, int formatType, String msgType, List msgList, List expList, boolean startWithNewLine)
    
public  booleanprintComponentLevelMessages(PrintWriter out, ComponentTaskResult compTaskResult)
    
public  booleanprintESBTaskResult(PrintWriter out, ESBTaskResult esbResult)
    
protected  voidprintExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg)
    
protected  booleanprintFormattedExceptionMessages(PrintWriter out, int formatType, String msgType, List expList, boolean printMainMsg)
    
protected  booleanprintFormattedStatusMessages(PrintWriter out, int formatType, String msgType, List msgList)
    
public  booleanprintFrameworkLevelMessages(PrintWriter out, FrameworkTaskResult fwTaskResult)
    
public  booleanprintInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult, boolean printInstanceName)
    
public  booleanprintInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult)
    
public  booleanprintJbiTaskResultMessages(PrintWriter out, JBITaskResult jbiTaskResult)
    
protected  voidprintMainMessage(PrintWriter out, int formatType, String msgType, String msgCode, String msg)
    
public  booleanprintTaskResultMessages(PrintWriter out, int formatType, TaskResultInfo taskResultInfo)
    
public  booleanprintTaskResultMessages(PrintWriter out, TaskResultInfo taskResultInfo)
    
public  voidsortComponentTaskResultList(List compTaskResultList)
    
public  voidsortInstanceResultList(List instResultList)
    
public  ESBTaskResulttoESBTaskResult(JBIManagementMessage jbiMsg)
    
public  voidupdateInstanceMap(Map instMap, FrameworkTaskResult fwTaskResult, Map fwInstMsgMap, Map fwInstExpMap)
    
public  voidupdateInstanceMap(Map instMap, ComponentTaskResult compResult, Map msgMap, Map expMap)
    

Field Detail
APP_VAR_MARKER_ID
final public static String APP_VAR_MARKER_ID(Code)
application varaible name marker in the msg/exp list



CAS_KEY
final public static String CAS_KEY(Code)
CAS msg/exp list key in the instance Maps



CAS_MSG_FORMAT
final public static int CAS_MSG_FORMAT(Code)
cas msg format



COMP_MSG_FORMAT
final public static int COMP_MSG_FORMAT(Code)
component msg format



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



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



FAILED
final public static String FAILED(Code)
failed status



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



INSTANCE_MARKER_ID
final public static String INSTANCE_MARKER_ID(Code)
instance name marker in the msg/exp list



INST_MSG_FORMAT
final public static int INST_MSG_FORMAT(Code)
instance msg format



OUT_DEBUG
final public static String OUT_DEBUG(Code)



OUT_NORMAL
final public static String OUT_NORMAL(Code)



OUT_VERBOSE
final public static String OUT_VERBOSE(Code)



SUCCESS
final public static String SUCCESS(Code)
success status



TOP_MSG_FORMAT
final public static int TOP_MSG_FORMAT(Code)
same as cas msg format



UNKNOWN
final public static String UNKNOWN(Code)
unknown value for any unknonw value of any msg status or type.



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




Constructor Detail
ESBResultFormatter
public ESBResultFormatter()(Code)



ESBResultFormatter
public ESBResultFormatter(String outLevel)(Code)
Creates a new instance of AdminResultFormatter




Method Detail
createTaskResultInfo
public TaskResultInfo createTaskResultInfo(TaskResultInfo taskResultInfo, List msgList, List expList)(Code)
copy the id, resutl, msgtype from the taskresultinfo passed and create a new TaskResultInfo with them and the passed msg, exp lists. This will be used in re-creating the taskresultinfo per instance from the main jbi mgmt msg task result info at framework level and component level



get2ndExceptionMsgI18NKey
protected String get2ndExceptionMsgI18NKey(int formatType)(Code)
message format type i18n key
Parameters:
  formatType - format type i18n key



get2ndMessageI18NKey
protected String get2ndMessageI18NKey(int formatType)(Code)
message format type i18n key
Parameters:
  formatType - format type i18n key



getExceptionMsgI18NKey
protected String getExceptionMsgI18NKey(int formatType)(Code)
message format type i18n key
Parameters:
  formatType - format type i18n key



getFormattedESBResult
public String getFormattedESBResult(JBIManagementMessage jbiMsg)(Code)
return the formatted message if you can create. else return null
Parameters:
  jbiMgmtMsgXml - string contains the xml confirms to the JbiManagementMessage schema the formatted message if you can create. else return null



getFormattedESBResult
public String getFormattedESBResult(String jbiMgmtMsgXml)(Code)
return the formatted message if you can create. else return null
Parameters:
  jbiMgmtMsgXml - string contains the xml confirms to the JbiManagementMessage schema the formatted message if you can create. else return null



getFormattedResult
public String getFormattedResult(ESBTaskResult esbResult)(Code)
creates formatted esb results
Parameters:
  esbResult - esb results object formatted text



getI18NBundle
public static I18NBundle getI18NBundle()(Code)
gives the I18N bundle I18NBundle object



getL10N2ndExptionMessageForAppVar
protected String getL10N2ndExptionMessageForAppVar(String appVarName)(Code)
creates l10n message in exceptin format
Parameters:
  appVarName - formatted message



getL10NExptionMessage
protected String getL10NExptionMessage(String code, String msg)(Code)
creates l10n message in exceptin format
Parameters:
  code - message code
Parameters:
  msg - message formatted message



getL10NExptionMessageForAppVar
protected String getL10NExptionMessageForAppVar(String appVarName)(Code)
creates l10n message in exceptin format
Parameters:
  appVarName - formatted message



getL10NMainMessage
protected String getL10NMainMessage(String msgType, String code, String msg)(Code)
formats the message
Parameters:
  msgType - message type
Parameters:
  code - message code
Parameters:
  msg - message formatted message



getL10NMainMessageForAppVar
protected String getL10NMainMessageForAppVar(String msgType, String appVarName)(Code)
formats the message
Parameters:
  msgType - message type
Parameters:
  appVarName - message formatted message



getL10NMessage
protected String getL10NMessage(String code, String msg)(Code)
creates l10n message
Parameters:
  code - message code
Parameters:
  msg - message formatted message



getL10NMessageForAppVar
protected String getL10NMessageForAppVar(String appVarName)(Code)
creates l10n message
Parameters:
  appVarName - formatted message



getL10NMessageType
protected String getL10NMessageType(String msgType)(Code)
message type from i18n bundle
Parameters:
  msgType - message type message type



getMainMessageI18NKey
protected String getMainMessageI18NKey(int formatType)(Code)
message format type i18n key
Parameters:
  formatType - format type i18n key



print2ndExceptionMessage
protected void print2ndExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg)(Code)
prints message to the output
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  msgCode - message code
Parameters:
  msg - message



print2ndMessage
protected void print2ndMessage(PrintWriter out, int formatType, String msgCode, String msg)(Code)
prints message to the output
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  msgCode - message code
Parameters:
  msg - message



printAllFormattedMessages
protected boolean printAllFormattedMessages(PrintWriter out, int formatType, String msgType, List msgList, List expList, boolean startWithNewLine)(Code)
prints the messages from message list true if any message is printed, false if no msg is printed.
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  msgType - message type
Parameters:
  msgList - list of TaskStatusMsgType objects
Parameters:
  expList - list of ExceptionInfoType objects
Parameters:
  startWithNewLine - true prints the first message in new line



printComponentLevelMessages
public boolean printComponentLevelMessages(PrintWriter out, ComponentTaskResult compTaskResult)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  compTaskResultType - ComponentTaskResultType object
Parameters:
  out - print writer to print the message



printESBTaskResult
public boolean printESBTaskResult(PrintWriter out, ESBTaskResult esbResult)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  esbResultType - EsbTaskResultType object
Parameters:
  out - print writer to print the message



printExceptionMessage
protected void printExceptionMessage(PrintWriter out, int formatType, String msgCode, String msg)(Code)
prints message to the output
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  msgCode - message code
Parameters:
  msg - message



printFormattedExceptionMessages
protected boolean printFormattedExceptionMessages(PrintWriter out, int formatType, String msgType, List expList, boolean printMainMsg)(Code)
prints the messages from message list true if any message is printed, false if no msg is printed.
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  msgType - message type
Parameters:
  expList - list of ExceptionInfoType objects
Parameters:
  printMainMsg - true prints the first message as main message format



printFormattedStatusMessages
protected boolean printFormattedStatusMessages(PrintWriter out, int formatType, String msgType, List msgList)(Code)
prints the messages from message list true if any message is printed, false if no msg is printed.
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  msgType - message type
Parameters:
  msgList - list of TaskStatusMsgType objects



printFrameworkLevelMessages
public boolean printFrameworkLevelMessages(PrintWriter out, FrameworkTaskResult fwTaskResult)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  fwTaskResultType - frmwkTaskResultType object
Parameters:
  out - print writer to print the message



printInstanceLevelMessages
public boolean printInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult, boolean printInstanceName)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  instResultDetailType - InstanceResultDetailType object
Parameters:
  printInstanceName - true prints the instance name, false prints no instance name.
Parameters:
  out - print writer to print the message



printInstanceLevelMessages
public boolean printInstanceLevelMessages(PrintWriter out, InstanceTaskResult instResult)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  instResultDetailType - InstanceResultDetailType object
Parameters:
  out - print writer to print the message



printJbiTaskResultMessages
public boolean printJbiTaskResultMessages(PrintWriter out, JBITaskResult jbiTaskResult)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  jbiTaskResultType - JbiTaskResultType object
Parameters:
  out - print writer to print the message



printMainMessage
protected void printMainMessage(PrintWriter out, int formatType, String msgType, String msgCode, String msg)(Code)
prints message to the output
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  msgType - message type
Parameters:
  msgCode - message code
Parameters:
  msg - message



printTaskResultMessages
public boolean printTaskResultMessages(PrintWriter out, int formatType, TaskResultInfo taskResultInfo)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  out - print writer to print the message
Parameters:
  formatType - format type
Parameters:
  taskResultDetailsType - TaskResultDetailsType object



printTaskResultMessages
public boolean printTaskResultMessages(PrintWriter out, TaskResultInfo taskResultInfo)(Code)
prints the messages true if any message is printed, false if no msg is printed.
Parameters:
  taskResultDetailsType - TaskResultDetailsType object
Parameters:
  out - print writer to print the message



sortComponentTaskResultList
public void sortComponentTaskResultList(List compTaskResultList)(Code)
sort the list
Parameters:
  compTaskResultList - list.



sortInstanceResultList
public void sortInstanceResultList(List instResultList)(Code)
sort the list
Parameters:
  instResultList - list.



toESBTaskResult
public ESBTaskResult toESBTaskResult(JBIManagementMessage jbiMsg)(Code)



updateInstanceMap
public void updateInstanceMap(Map instMap, FrameworkTaskResult fwTaskResult, Map fwInstMsgMap, Map fwInstExpMap)(Code)



updateInstanceMap
public void updateInstanceMap(Map instMap, ComponentTaskResult compResult, Map msgMap, Map expMap)(Code)



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.