Java Doc for MuleEvent.java in  » ESB » mule » org » mule » api » 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 » mule » org.mule.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mule.api.MuleEvent

All known Subclasses:   org.mule.DefaultMuleEvent,
MuleEvent
public interface MuleEvent (Code)
MuleEvent represents any data event occuring in the Mule environment. All data sent or received within the mule environment will be passed between components as an MuleEvent.

The MuleEvent holds a MuleMessage payload and provides helper methods for obtaining the data in a format that the receiving Mule UMO understands. The event can also maintain any number of properties that can be set and retrieved by Mule UMO components.
See Also:   MuleMessage



Field Summary
 intTIMEOUT_DO_NOT_WAIT
    
 intTIMEOUT_NOT_SET_VALUE
    
 intTIMEOUT_WAIT_FOREVER
    


Method Summary
 CredentialsgetCredentials()
    
 StringgetEncoding()
     Gets the encoding for this message. the encoding for the event.
 ImmutableEndpointgetEndpoint()
    
 StringgetId()
     Every event in the system is assigned a universally unique id (UUID).
 MuleMessagegetMessage()
    
 byte[]getMessageAsBytes()
     Reterns the conents of the message as a byte array.
 StringgetMessageAsString()
    
 StringgetMessageAsString(String encoding)
    
 MuleContextgetMuleContext()
    
 OutputStreamgetOutputStream()
     An outputstream the can optionally be used write response data to an incoming message.
 ObjectgetProperty(String name, boolean exhaustiveSearch)
     Gets a property associated with the current event.
 ObjectgetProperty(String name, Object defaultValue, boolean exhaustiveSearch)
     Gets a property associated with the current event.
 ServicegetService()
    
 MuleSessiongetSession()
    
 intgetTimeout()
     The number of milliseconds to wait for a return event when running synchronously.
 booleanisStopFurtherProcessing()
     Determines whether the default processing for this event will be executed.
 booleanisSynchronous()
    
 voidsetStopFurtherProcessing(boolean stopFurtherProcessing)
     Determines whether the default processing for this event will be executed.
 voidsetSynchronous(boolean value)
    
 voidsetTimeout(int timeout)
     The number of milliseconds to wait for a return event when running synchronously.
 ObjecttransformMessage()
     Transforms the message into it's recognised or expected format.
 ObjecttransformMessage(Class outputType)
     Transforms the message into the requested format.
 byte[]transformMessageToBytes()
     Transforms the message into it's recognised or expected format and then into an array of bytes.
 StringtransformMessageToString()
     Returns the message transformed into it's recognised or expected format and then into a String.

Field Detail
TIMEOUT_DO_NOT_WAIT
int TIMEOUT_DO_NOT_WAIT(Code)



TIMEOUT_NOT_SET_VALUE
int TIMEOUT_NOT_SET_VALUE(Code)



TIMEOUT_WAIT_FOREVER
int TIMEOUT_WAIT_FOREVER(Code)





Method Detail
getCredentials
Credentials getCredentials()(Code)



getEncoding
String getEncoding()(Code)
Gets the encoding for this message. the encoding for the event. This must never return null.



getEndpoint
ImmutableEndpoint getEndpoint()(Code)
Gets the endpoint associated with this event the endpoint associated with this event



getId
String getId()(Code)
Every event in the system is assigned a universally unique id (UUID). the unique identifier for the event



getMessage
MuleMessage getMessage()(Code)
Returns the message payload for this event the message payload for this event



getMessageAsBytes
byte[] getMessageAsBytes() throws MuleException(Code)
Reterns the conents of the message as a byte array. the conents of the message as a byte array
throws:
  MuleException - if the message cannot be converted into an array of bytes



getMessageAsString
String getMessageAsString() throws MuleException(Code)
Returns the message contents as a string If necessary this will use the encoding set on the event the message contents as a string
throws:
  MuleException - if the message cannot be converted into a string



getMessageAsString
String getMessageAsString(String encoding) throws MuleException(Code)
Returns the message contents as a string
Parameters:
  encoding - the encoding to use when converting the message to string the message contents as a string
throws:
  MuleException - if the message cannot be converted into a string



getMuleContext
MuleContext getMuleContext()(Code)
Returns the muleContext for the Mule node that this event was received in the muleContext for the Mule node that this event was received in



getOutputStream
OutputStream getOutputStream()(Code)
An outputstream the can optionally be used write response data to an incoming message. an output strem if one has been made available by the message receiverthat received the message



getProperty
Object getProperty(String name, boolean exhaustiveSearch)(Code)
Gets a property associated with the current event. If exhaustiveSearch is true, the endpoint and connector associated with the event will also be searched for the property.
Parameters:
  name - the property name
Parameters:
  exhaustiveSearch - also search the endpoint and connector for theproperty the property value or null if the property does not exist



getProperty
Object getProperty(String name, Object defaultValue, boolean exhaustiveSearch)(Code)
Gets a property associated with the current event. If exhaustiveSearch is true, the endpoint and connector associated with the event will also be searched for the property.
Parameters:
  name - the property name
Parameters:
  defaultValue - a default value if the property doesn't exist in the event
Parameters:
  exhaustiveSearch - also search the endpoint and connector for theproperty the property value or the defaultValue if the property does not exist



getService
Service getService()(Code)
Retrieves the service for the current event the service for the event



getSession
MuleSession getSession()(Code)
Retrieves the service session for the current event the service session for the event



getTimeout
int getTimeout()(Code)
The number of milliseconds to wait for a return event when running synchronously. 0 wait forever -1 try and receive, but do not wait or a positive millisecond value the event timeout in milliseconds



isStopFurtherProcessing
boolean isStopFurtherProcessing()(Code)
Determines whether the default processing for this event will be executed. By default, the Mule server will route events according to a components configuration. The user can override this behaviour by obtaining a reference to the MuleEvent context, either by implementing org.mule.api.lifecycle.Callable or calling UMOManager.getEventContext to obtain the MuleEventContext for the current thread. The user can programmatically control how events are dispached. Returns true is the user has set stopFurtherProcessing.
See Also:   org.mule.api.context.UMOManager
See Also:   MuleEventContext
See Also:   org.mule.api.lifecycle.Callable



isSynchronous
boolean isSynchronous()(Code)
Determines whether the was sent synchrounously or not true if the event is synchronous



setStopFurtherProcessing
void setStopFurtherProcessing(boolean stopFurtherProcessing)(Code)
Determines whether the default processing for this event will be executed. By default, the Mule server will route events according to a components configuration. The user can override this behaviour by obtaining a reference to the MuleEvent context, either by implementing org.mule.api.lifecycle.Callable or calling UMOManager.getEventContext to obtain the MuleEventContext for the current thread. The user can programmatically control how events are dispached.
Parameters:
  stopFurtherProcessing - the value to set.



setSynchronous
void setSynchronous(boolean value)(Code)
Determines whether the was sent synchrounously or not
Parameters:
  value - true if the event is synchronous



setTimeout
void setTimeout(int timeout)(Code)
The number of milliseconds to wait for a return event when running synchronously. 0 wait forever -1 try and receive, but do not wait or a positive millisecod value
Parameters:
  timeout - the event timeout in milliseconds



transformMessage
Object transformMessage() throws TransformerException(Code)
Transforms the message into it's recognised or expected format. The transformer used is the one configured on the endpoint through which this event was received. the message transformed into it's recognised or expected format.
throws:
  TransformerException - if a failure occurs in the transformer
See Also:   org.mule.api.transformer.Transformer



transformMessage
Object transformMessage(Class outputType) throws TransformerException(Code)
Transforms the message into the requested format. The transformer used is the one configured on the endpoint through which this event was received.
Parameters:
  outputType - The requested output type. the message transformed into it's recognised or expected format.
throws:
  TransformerException - if a failure occurs in the transformer
See Also:   org.mule.api.transformer.Transformer



transformMessageToBytes
byte[] transformMessageToBytes() throws TransformerException(Code)
Transforms the message into it's recognised or expected format and then into an array of bytes. The transformer used is the one configured on the endpoint through which this event was received. the message transformed into it's recognised or expected format as anarray of bytes.
throws:
  TransformerException - if a failure occurs in the transformer
See Also:   org.mule.api.transformer.Transformer



transformMessageToString
String transformMessageToString() throws TransformerException(Code)
Returns the message transformed into it's recognised or expected format and then into a String. The transformer used is the one configured on the endpoint through which this event was received. If necessary this will use the encoding set on the event the message transformed into it's recognised or expected format as aStrings.
throws:
  TransformerException - if a failure occurs in the transformer
See Also:   org.mule.api.transformer.Transformer



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.