Java Doc for MessageImpl.java in  » Testing » MockEJB » org » mockejb » jms » 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 » Testing » MockEJB » org.mockejb.jms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mockejb.jms.MessageImpl

All known Subclasses:   org.mockejb.jms.BytesMessageImpl,  org.mockejb.jms.ObjectMessageImpl,  org.mockejb.jms.MapMessageImpl,  org.mockejb.jms.TextMessageImpl,  org.mockejb.jms.StreamMessageImpl,
MessageImpl
public class MessageImpl implements Message(Code)
Message implementation.
author:
   Dimitar Gospodinov
See Also:   javax.jms.Message



Constructor Summary
public  MessageImpl()
     Constructs empty message.
public  MessageImpl(Message msg)
    

Method Summary
public  voidacknowledge()
     Does nothing.
 voidcheckBodyReadable()
     Checks if this message can be read from.
 voidcheckBodyWriteable()
     Checks if this message can be written to.
public  voidclearBody()
    
public  voidclearProperties()
    
public  booleangetBooleanProperty(String name)
    
public  bytegetByteProperty(String name)
    
public  doublegetDoubleProperty(String name)
    
public  floatgetFloatProperty(String name)
    
public  intgetIntProperty(String name)
    
public  StringgetJMSCorrelationID()
    
public  byte[]getJMSCorrelationIDAsBytes()
     Not supported.
public  intgetJMSDeliveryMode()
    
public  DestinationgetJMSDestination()
    
public  longgetJMSExpiration()
    
public  StringgetJMSMessageID()
    
public  intgetJMSPriority()
    
public  booleangetJMSRedelivered()
    
public  DestinationgetJMSReplyTo()
    
public  longgetJMSTimestamp()
    
public  StringgetJMSType()
    
public  longgetLongProperty(String name)
    
public  ObjectgetObjectProperty(String name)
    
public  EnumerationgetPropertyNames()
    
public  shortgetShortProperty(String name)
    
public  StringgetStringProperty(String name)
    
public  booleanpropertyExists(String propertyName)
    
 voidresetBody()
     Sets message body in read-only mode.
 voidsetBodyReadOnly()
    
public  voidsetBooleanProperty(String name, boolean value)
    
public  voidsetByteProperty(String name, byte value)
    
public  voidsetDoubleProperty(String name, double value)
    
public  voidsetFloatProperty(String name, float value)
    
public  voidsetIntProperty(String name, int value)
    
public  voidsetJMSCorrelationID(String correlationId)
    
public  voidsetJMSCorrelationIDAsBytes(byte[] arg0)
     Not supported.
public  voidsetJMSDeliveryMode(int deliveryMode)
    
public  voidsetJMSDestination(Destination destination)
    
public  voidsetJMSExpiration(long expiration)
    
public  voidsetJMSMessageID(String messageId)
    
public  voidsetJMSPriority(int priority)
    
public  voidsetJMSRedelivered(boolean redelivered)
     Does nothing.
public  voidsetJMSReplyTo(Destination replyTo)
    
public  voidsetJMSTimestamp(long timestamp)
    
public  voidsetJMSType(String type)
    
public  voidsetLongProperty(String name, long value)
    
public  voidsetObjectProperty(String name, Object value)
    
public  voidsetPropertiesNotWriteable()
    
public  voidsetShortProperty(String name, short value)
    
public  voidsetStringProperty(String name, String value)
    


Constructor Detail
MessageImpl
public MessageImpl()(Code)
Constructs empty message.



MessageImpl
public MessageImpl(Message msg) throws JMSException(Code)
Constructs new MessageImpl by copying all header fields and properties from the specified message msg
Parameters:
  msg -




Method Detail
acknowledge
public void acknowledge() throws JMSException(Code)
Does nothing.
See Also:   javax.jms.Message.acknowledge



checkBodyReadable
void checkBodyReadable() throws JMSException(Code)
Checks if this message can be read from. If not then throws MessageNotReadableException
throws:
  MessageNotReadableException - if read operationsare not allowed.



checkBodyWriteable
void checkBodyWriteable() throws JMSException(Code)
Checks if this message can be written to. If not then throws MessageNotWriteableException
throws:
  MessageNotWriteableException - if write operationsare not allowed.



clearBody
public void clearBody() throws JMSException(Code)

See Also:   javax.jms.Message.clearBody



clearProperties
public void clearProperties() throws JMSException(Code)

See Also:   javax.jms.Message.clearProperties



getBooleanProperty
public boolean getBooleanProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getBooleanProperty(java.lang.String)



getByteProperty
public byte getByteProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getByteProperty(java.lang.String)



getDoubleProperty
public double getDoubleProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getDoubleProperty(java.lang.String)



getFloatProperty
public float getFloatProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getFloatProperty(java.lang.String)



getIntProperty
public int getIntProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getIntProperty(java.lang.String)



getJMSCorrelationID
public String getJMSCorrelationID() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSCorrelationID



getJMSCorrelationIDAsBytes
public byte[] getJMSCorrelationIDAsBytes() throws JMSException(Code)
Not supported.
See Also:   javax.jms.Message.getJMSCorrelationIDAsBytes



getJMSDeliveryMode
public int getJMSDeliveryMode() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSDeliveryMode



getJMSDestination
public Destination getJMSDestination() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSDestination



getJMSExpiration
public long getJMSExpiration() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSExpiration



getJMSMessageID
public String getJMSMessageID() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSMessageID



getJMSPriority
public int getJMSPriority() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSPriority



getJMSRedelivered
public boolean getJMSRedelivered() throws JMSException(Code)
Always returns false
See Also:   javax.jms.Message.getJMSRedelivered



getJMSReplyTo
public Destination getJMSReplyTo() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSReplyTo



getJMSTimestamp
public long getJMSTimestamp() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSTimestamp



getJMSType
public String getJMSType() throws JMSException(Code)

See Also:   javax.jms.Message.getJMSType



getLongProperty
public long getLongProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getLongProperty(java.lang.String)



getObjectProperty
public Object getObjectProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getObjectProperty(java.lang.String)



getPropertyNames
public Enumeration getPropertyNames() throws JMSException(Code)

See Also:   javax.jms.Message.getPropertyNames



getShortProperty
public short getShortProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getShortProperty(java.lang.String)



getStringProperty
public String getStringProperty(String name) throws JMSException(Code)

See Also:   javax.jms.Message.getStringProperty(java.lang.String)



propertyExists
public boolean propertyExists(String propertyName) throws JMSException(Code)

See Also:   javax.jms.Message.propertyExists(java.lang.String)



resetBody
void resetBody() throws JMSException(Code)
Sets message body in read-only mode.
throws:
  JMSException -



setBodyReadOnly
void setBodyReadOnly()(Code)



setBooleanProperty
public void setBooleanProperty(String name, boolean value) throws JMSException(Code)

See Also:   javax.jms.Message.setBooleanProperty(java.lang.Stringboolean)



setByteProperty
public void setByteProperty(String name, byte value) throws JMSException(Code)

See Also:   javax.jms.Message.setByteProperty(java.lang.Stringbyte)



setDoubleProperty
public void setDoubleProperty(String name, double value) throws JMSException(Code)

See Also:   javax.jms.Message.setDoubleProperty(java.lang.Stringdouble)



setFloatProperty
public void setFloatProperty(String name, float value) throws JMSException(Code)

See Also:   javax.jms.Message.setFloatProperty(java.lang.Stringfloat)



setIntProperty
public void setIntProperty(String name, int value) throws JMSException(Code)

See Also:   javax.jms.Message.setIntProperty(java.lang.Stringint)



setJMSCorrelationID
public void setJMSCorrelationID(String correlationId) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSCorrelationID(java.lang.String)



setJMSCorrelationIDAsBytes
public void setJMSCorrelationIDAsBytes(byte[] arg0) throws JMSException(Code)
Not supported.
See Also:   javax.jms.Message.setJMSCorrelationIDAsBytes(byte[])



setJMSDeliveryMode
public void setJMSDeliveryMode(int deliveryMode) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSDeliveryMode(int)



setJMSDestination
public void setJMSDestination(Destination destination) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSDestination(javax.jms.Destination)



setJMSExpiration
public void setJMSExpiration(long expiration) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSExpiration(long)



setJMSMessageID
public void setJMSMessageID(String messageId) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSMessageID(java.lang.String)



setJMSPriority
public void setJMSPriority(int priority) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSPriority(int)



setJMSRedelivered
public void setJMSRedelivered(boolean redelivered) throws JMSException(Code)
Does nothing.
See Also:   javax.jms.Message.setJMSRedelivered(boolean)



setJMSReplyTo
public void setJMSReplyTo(Destination replyTo) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSReplyTo(javax.jms.Destination)



setJMSTimestamp
public void setJMSTimestamp(long timestamp) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSTimestamp(long)



setJMSType
public void setJMSType(String type) throws JMSException(Code)

See Also:   javax.jms.Message.setJMSType(java.lang.String)



setLongProperty
public void setLongProperty(String name, long value) throws JMSException(Code)

See Also:   javax.jms.Message.setLongProperty(java.lang.Stringlong)



setObjectProperty
public void setObjectProperty(String name, Object value) throws JMSException(Code)

See Also:   javax.jms.Message.setObjectProperty(java.lang.Stringjava.lang.Object)



setPropertiesNotWriteable
public void setPropertiesNotWriteable()(Code)



setShortProperty
public void setShortProperty(String name, short value) throws JMSException(Code)

See Also:   javax.jms.Message.setShortProperty(java.lang.Stringshort)



setStringProperty
public void setStringProperty(String name, String value) throws JMSException(Code)

See Also:   javax.jms.Message.setStringProperty(java.lang.Stringjava.lang.String)



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.