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

JBIManagementMessage
public class JBIManagementMessage (Code)
This class represents the management message object that will be constructed from the xml string returned by the management apis to access various parts of the message. The factory method create is used to construct the dom for the xml text and parse the dom to construct this object.
author:
   Sun Microsystems, Inc.

Inner Class :public static class MessageInfo
Inner Class :public static class ExceptionInfo
Inner Class :public static class TaskResultInfo
Inner Class :abstract public static class AbstractTaskResult
Inner Class :public static class FrameworkTaskResult extends AbstractTaskResult
Inner Class :public static class ComponentTaskResult extends AbstractTaskResult
Inner Class :public static class JBITaskResult
Inner Class :public static class InstanceTaskResult
Inner Class :public static class ESBTaskResult
Inner Class :public static class JBIManagementMessageUnmarshaller
Inner Class :public static class JBIManagementMessageException extends Exception

Field Summary
final public static  StringERROR
    
final public static  StringEXCEPTION
    
final public static  StringFAILED
    
final public static  StringINFO
    
final public static  StringSUCCESS
    
final public static  StringUNKNOWN
     unknown value for any unknonw value of any msg status or type.
final public static  StringWARNING
    

Constructor Summary
protected  JBIManagementMessage()
    

Method Summary
protected  voidcloseWriter(Writer writer)
    
public static  JBIManagementMessagecreateJBIManagementMessage(String xmlText)
    
public static  JBIManagementMessagecreateJBIManagementMessage(String taskId, Map<String, String> responseMap, boolean requireAllSuccess)
     Build a single management message from the entries in the map.
protected  ListgetAllMessagesForComponent(ComponentTaskResult compTaskResult)
    
protected  ListgetComponentTaskResultList()
     returns result list.
public  StringgetDebugMessage()
     Returns a verbose output.
protected  FrameworkTaskResultgetFrameworkTaskResult()
     get fw result object.
protected static  StringgetL10NMessageType(String msgType)
    
public  StringgetMessage(String level)
    
public  StringgetMessage()
    
public  StringgetMessageDeprecated(String level)
    
public  StringgetMessageType()
    
protected  ListgetSortedComponentTaskResultList()
     returns result list.
public  StringgetStackTrace()
    
public  booleanisErrorMsgType()
    
public  booleanisExceptionMsgType()
    
public  booleanisFailedMsg()
    
public  booleanisInfoMsgType()
    
public  booleanisSuccessMsg()
    
public  booleanisWarningMsg()
    
public  booleanisWarningMsgType()
    
public  voidprintDebugMessage(PrintWriter writer)
    
public  voidprintMessage(PrintStream s)
    
public  voidprintMessage(PrintWriter writer)
    
protected  voidprintMessageList(PrintWriter out, List msgList)
    
public  voidprintStackTrace(PrintStream s)
    
public  voidprintStackTrace(PrintWriter writer)
    
public static  voidprintWithIndentation(String prefix, String msg, PrintWriter writer)
    
protected  voidsetFrameworkTaskResult(FrameworkTaskResult frameworkTaskResult)
     sets fw result.

Field Detail
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



SUCCESS
final public static String SUCCESS(Code)
success status



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
JBIManagementMessage
protected JBIManagementMessage()(Code)
Creates a new instance of JBIManagementMessage




Method Detail
closeWriter
protected void closeWriter(Writer writer)(Code)
closes the wirter without generationg the ioexception
Parameters:
  writer - Writer object



createJBIManagementMessage
public static JBIManagementMessage createJBIManagementMessage(String xmlText)(Code)
factory method to create the message object
Parameters:
  xmlText - xml text Message Object



createJBIManagementMessage
public static JBIManagementMessage createJBIManagementMessage(String taskId, Map<String, String> responseMap, boolean requireAllSuccess)(Code)
Build a single management message from the entries in the map. Each entry in the map corresponds to a application variable name and the value is the JBI Management message ( or exception message ) response on the target.
Parameters:
  taskId - - task id
Parameters:
  responseMap - - a map of | application variable name | JBI Mgmt OR Exceptionmessage |
Parameters:
  requireAllSuccess - boolean flag indicating that all responses need to be SUCCESS for the eventual task result to be SUCCESS. a single management message based on the entries in the map.



getAllMessagesForComponent
protected List getAllMessagesForComponent(ComponentTaskResult compTaskResult)(Code)

Parameters:
  compTaskResult -



getComponentTaskResultList
protected List getComponentTaskResultList()(Code)
returns result list. result list.



getDebugMessage
public String getDebugMessage()(Code)
Returns a verbose output. debug message.



getFrameworkTaskResult
protected FrameworkTaskResult getFrameworkTaskResult()(Code)
get fw result object. fw result object.



getL10NMessageType
protected static String getL10NMessageType(String msgType)(Code)
returns the l10n msgtyep string for msgType
Parameters:
  msgType - is one of the INFO, ERROR, WARNING



getMessage
public String getMessage(String level)(Code)
returns the formatted message as a string
Parameters:
  level - Specifies the level of output ("verbose","normal","terse") message.



getMessage
public String getMessage()(Code)
returns the formatted message as a string text



getMessageDeprecated
public String getMessageDeprecated(String level)(Code)
returns the formatted message as a string
Parameters:
  level - Specifies the level of output ("verbose","normal","terse") message.



getMessageType
public String getMessageType()(Code)
check message type msg type or null if no message type present



getSortedComponentTaskResultList
protected List getSortedComponentTaskResultList()(Code)
returns result list. result list.



getStackTrace
public String getStackTrace()(Code)
stacktrace text



isErrorMsgType
public boolean isErrorMsgType()(Code)
check message type true if it is error message type else fasle



isExceptionMsgType
public boolean isExceptionMsgType()(Code)
check message type true if it is error message type else fasle



isFailedMsg
public boolean isFailedMsg()(Code)
check message status true if status is FAILED else fasle



isInfoMsgType
public boolean isInfoMsgType()(Code)
check message type true if it is info message type else fasle



isSuccessMsg
public boolean isSuccessMsg()(Code)
check message status true if status is SUCCESS else fasle



isWarningMsg
public boolean isWarningMsg()(Code)
check message status true if it is warning message else fasle



isWarningMsgType
public boolean isWarningMsgType()(Code)
check message type true if it is warning message type else fasle



printDebugMessage
public void printDebugMessage(PrintWriter writer)(Code)
prints message
Parameters:
  writer - writer



printMessage
public void printMessage(PrintStream s)(Code)
override method
Parameters:
  s - stream



printMessage
public void printMessage(PrintWriter writer)(Code)
prints message
Parameters:
  writer - writer



printMessageList
protected void printMessageList(PrintWriter out, List msgList)(Code)

Parameters:
  out -
Parameters:
  msgList -



printStackTrace
public void printStackTrace(PrintStream s)(Code)
override method
Parameters:
  s - stream



printStackTrace
public void printStackTrace(PrintWriter writer)(Code)
prints stacktrace
Parameters:
  writer - writer



printWithIndentation
public static void printWithIndentation(String prefix, String msg, PrintWriter writer)(Code)
write string to the writer
Parameters:
  prefix - string
Parameters:
  msg - string
Parameters:
  writer - Print Writer



setFrameworkTaskResult
protected void setFrameworkTaskResult(FrameworkTaskResult frameworkTaskResult)(Code)
sets fw result.
Parameters:
  frameworkTaskResult - fw result object.



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.