Java Doc for MessageImpl.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » jms » message » 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 » EJB Server resin 3.1.5 » resin » com.caucho.jms.message 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.jms.message.MessageImpl

All known Subclasses:   com.caucho.jms.message.MapMessageImpl,  com.caucho.jms.message.TextMessageImpl,  com.caucho.jms.message.StreamMessageImpl,  com.caucho.jms.message.ObjectMessageImpl,  com.caucho.jms.message.BytesMessageImpl,
MessageImpl
public class MessageImpl implements Message(Code)
A basic message.


Field Summary
final protected static  L10NL
    
final protected static  Loggerlog
    

Constructor Summary
public  MessageImpl()
    
public  MessageImpl(Message msg)
    
public  MessageImpl(MessageImpl msg)
    

Method Summary
public  voidacknowledge()
     Acknowledge receipt of this message.
public  InputStreambodyToInputStream()
     Serialize the body to an input stream.
protected  voidcheckBodyReadable()
    
protected  voidcheckBodyWriteable()
    
protected  voidcheckHeaderWriteable()
    
protected  voidcheckPropertyWriteable()
    
public  voidclearBody()
     Clears the body, setting write mode.
public  voidclearProperties()
     Clears the message properties, making them writeable.
public  MessageImplcopy()
    
protected  voidcopy(MessageImpl newMsg)
    
public  booleangetBooleanProperty(String name)
     Returns a boolean property with the given name.
public  bytegetByteProperty(String name)
    
public  doublegetDoubleProperty(String name)
    
public  floatgetFloatProperty(String name)
    
public  intgetIntProperty(String name)
    
public  StringgetJMSCorrelationID()
     Returns the correlation id.
public  byte[]getJMSCorrelationIDAsBytes()
     Returns the correlation id.
public  intgetJMSDeliveryMode()
    
public  DestinationgetJMSDestination()
    
public  longgetJMSExpiration()
     Returns the message expiration time.
public  StringgetJMSMessageID()
     Returns the message id.
public  intgetJMSPriority()
     Returns the message priority.
public  booleangetJMSRedelivered()
     Returns if the message is being redelivered.
public  DestinationgetJMSReplyTo()
    
public  longgetJMSTimestamp()
     Returns the time the message was sent.
public  StringgetJMSType()
    
public  longgetLongProperty(String name)
    
public  ObjectgetObjectProperty(String name)
     Returns a string property.
public  HashMap<String, Object>getProperties()
     Returns the properties.
public  EnumerationgetPropertyNames()
     Returns an enumeration of the message's properties.
public  shortgetShortProperty(String name)
    
public  StringgetStringProperty(String name)
     Returns a string property.
public  MessageTypegetType()
     Returns the type enumeration.
public static  booleanisReserved(String name)
    
public  InputStreampropertiesToInputStream()
     Serialize the properties to an input stream.
public  booleanpropertyExists(String name)
     Returns true if the property exists.
public  voidreadBody(InputStream is)
     Read the body from an input stream.
public  voidreadProperties(InputStream is)
     Read the properties from an input stream.
protected  voidsetBodyReadOnly()
     Sets the body for reading.
public  voidsetBooleanProperty(String name, boolean value)
     Sets a boolean property.
public  voidsetByteProperty(String name, byte value)
     Sets a byte property.
public  voidsetDoubleProperty(String name, double value)
     Sets a double property.
public  voidsetFloatProperty(String name, float value)
     Sets a float property.
public  voidsetIntProperty(String name, int value)
     Sets an integer property.
public  voidsetJMSCorrelationID(String id)
     Sets the correlation id.
public  voidsetJMSCorrelationIDAsBytes(byte[] id)
     Sets the correlation id.
public  voidsetJMSDeliveryMode(int deliveryMode)
    
public  voidsetJMSDestination(Destination destination)
    
public  voidsetJMSExpiration(long time)
     Sets the message expiration type.
public  voidsetJMSMessageID(String id)
     Sets the message id.
public  voidsetJMSPriority(int priority)
     Sets the message priority.
public  voidsetJMSRedelivered(boolean isRedelivered)
     Sets if the message is being redelivered.
public  voidsetJMSReplyTo(Destination replyTo)
    
public  voidsetJMSTimestamp(long time)
     Sets the time the message was sent.
public  voidsetJMSType(String type)
     Sets the message type.
public  voidsetLongProperty(String name, long value)
     Sets a long property.
public  voidsetObjectProperty(String name, Object value)
     Sets an object property.
public  voidsetReceive()
     Sets the body for reading.
public  voidsetSession(JmsSession session)
     Sets the session.
public  voidsetShortProperty(String name, short value)
     Sets a short property.
public  voidsetStringProperty(String name, String value)
     Sets a string property.
public  StringtoString()
    
public  voidwriteBody(OutputStream os)
     Serialize the body to an output stream.
public  voidwriteProperties(OutputStream os)
     Serialize the properties to an input stream.

Field Detail
L
final protected static L10N L(Code)



log
final protected static Logger log(Code)




Constructor Detail
MessageImpl
public MessageImpl()(Code)



MessageImpl
public MessageImpl(Message msg) throws JMSException(Code)
Create a message, copying the properties



MessageImpl
public MessageImpl(MessageImpl msg)(Code)




Method Detail
acknowledge
public void acknowledge() throws JMSException(Code)
Acknowledge receipt of this message.



bodyToInputStream
public InputStream bodyToInputStream() throws IOException(Code)
Serialize the body to an input stream.



checkBodyReadable
protected void checkBodyReadable() throws JMSException(Code)



checkBodyWriteable
protected void checkBodyWriteable() throws JMSException(Code)



checkHeaderWriteable
protected void checkHeaderWriteable() throws JMSException(Code)



checkPropertyWriteable
protected void checkPropertyWriteable() throws JMSException(Code)



clearBody
public void clearBody() throws JMSException(Code)
Clears the body, setting write mode.



clearProperties
public void clearProperties() throws JMSException(Code)
Clears the message properties, making them writeable.



copy
public MessageImpl copy()(Code)



copy
protected void copy(MessageImpl newMsg)(Code)



getBooleanProperty
public boolean getBooleanProperty(String name) throws JMSException(Code)
Returns a boolean property with the given name.



getByteProperty
public byte getByteProperty(String name) throws JMSException(Code)
Returns a property as a byte



getDoubleProperty
public double getDoubleProperty(String name) throws JMSException(Code)
Returns a property as a double



getFloatProperty
public float getFloatProperty(String name) throws JMSException(Code)
Returns a property as a float



getIntProperty
public int getIntProperty(String name) throws JMSException(Code)
Returns a property as an integer



getJMSCorrelationID
public String getJMSCorrelationID() throws JMSException(Code)
Returns the correlation id.



getJMSCorrelationIDAsBytes
public byte[] getJMSCorrelationIDAsBytes() throws JMSException(Code)
Returns the correlation id.



getJMSDeliveryMode
public int getJMSDeliveryMode() throws JMSException(Code)
Gets the delivery model



getJMSDestination
public Destination getJMSDestination() throws JMSException(Code)
Gets the destination



getJMSExpiration
public long getJMSExpiration() throws JMSException(Code)
Returns the message expiration time.



getJMSMessageID
public String getJMSMessageID()(Code)
Returns the message id.



getJMSPriority
public int getJMSPriority() throws JMSException(Code)
Returns the message priority.



getJMSRedelivered
public boolean getJMSRedelivered()(Code)
Returns if the message is being redelivered.



getJMSReplyTo
public Destination getJMSReplyTo() throws JMSException(Code)
Gets the reply-to destination



getJMSTimestamp
public long getJMSTimestamp() throws JMSException(Code)
Returns the time the message was sent.



getJMSType
public String getJMSType() throws JMSException(Code)
Returns the message type



getLongProperty
public long getLongProperty(String name) throws JMSException(Code)
Returns a property as a long



getObjectProperty
public Object getObjectProperty(String name) throws JMSException(Code)
Returns a string property.



getProperties
public HashMap<String, Object> getProperties()(Code)
Returns the properties.



getPropertyNames
public Enumeration getPropertyNames() throws JMSException(Code)
Returns an enumeration of the message's properties.



getShortProperty
public short getShortProperty(String name) throws JMSException(Code)
Returns a property as a short



getStringProperty
public String getStringProperty(String name) throws JMSException(Code)
Returns a string property.



getType
public MessageType getType()(Code)
Returns the type enumeration.



isReserved
public static boolean isReserved(String name)(Code)



propertiesToInputStream
public InputStream propertiesToInputStream() throws IOException(Code)
Serialize the properties to an input stream.



propertyExists
public boolean propertyExists(String name) throws JMSException(Code)
Returns true if the property exists.



readBody
public void readBody(InputStream is) throws IOException, JMSException(Code)
Read the body from an input stream.



readProperties
public void readProperties(InputStream is) throws IOException, JMSException(Code)
Read the properties from an input stream.



setBodyReadOnly
protected void setBodyReadOnly()(Code)
Sets the body for reading.



setBooleanProperty
public void setBooleanProperty(String name, boolean value) throws JMSException(Code)
Sets a boolean property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setByteProperty
public void setByteProperty(String name, byte value) throws JMSException(Code)
Sets a byte property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setDoubleProperty
public void setDoubleProperty(String name, double value) throws JMSException(Code)
Sets a double property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setFloatProperty
public void setFloatProperty(String name, float value) throws JMSException(Code)
Sets a float property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setIntProperty
public void setIntProperty(String name, int value) throws JMSException(Code)
Sets an integer property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setJMSCorrelationID
public void setJMSCorrelationID(String id) throws JMSException(Code)
Sets the correlation id.
Parameters:
  id - the correlation id



setJMSCorrelationIDAsBytes
public void setJMSCorrelationIDAsBytes(byte[] id) throws JMSException(Code)
Sets the correlation id.
Parameters:
  id - the correlation id



setJMSDeliveryMode
public void setJMSDeliveryMode(int deliveryMode) throws JMSException(Code)
Sets the delivery mode
Parameters:
  deliveryMode - the delivery mode



setJMSDestination
public void setJMSDestination(Destination destination) throws JMSException(Code)
Sets the reply-to destination
Parameters:
  destination - the destination



setJMSExpiration
public void setJMSExpiration(long time) throws JMSException(Code)
Sets the message expiration type.
Parameters:
  time - the expiration time



setJMSMessageID
public void setJMSMessageID(String id)(Code)
Sets the message id.
Parameters:
  id - the new message id



setJMSPriority
public void setJMSPriority(int priority) throws JMSException(Code)
Sets the message priority.
Parameters:
  priority - the priority



setJMSRedelivered
public void setJMSRedelivered(boolean isRedelivered)(Code)
Sets if the message is being redelivered.
Parameters:
  deliveryMode - the delivery mode



setJMSReplyTo
public void setJMSReplyTo(Destination replyTo) throws JMSException(Code)
Sets the reply-to destination
Parameters:
  replyTo - the destination



setJMSTimestamp
public void setJMSTimestamp(long time) throws JMSException(Code)
Sets the time the message was sent.
Parameters:
  time - the message timestamp



setJMSType
public void setJMSType(String type) throws JMSException(Code)
Sets the message type.
Parameters:
  type - the delivery mode



setLongProperty
public void setLongProperty(String name, long value) throws JMSException(Code)
Sets a long property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setObjectProperty
public void setObjectProperty(String name, Object value) throws JMSException(Code)
Sets an object property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setReceive
public void setReceive() throws JMSException(Code)
Sets the body for reading.



setSession
public void setSession(JmsSession session)(Code)
Sets the session.



setShortProperty
public void setShortProperty(String name, short value) throws JMSException(Code)
Sets a short property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



setStringProperty
public void setStringProperty(String name, String value) throws JMSException(Code)
Sets a string property.
Parameters:
  name - the property name
Parameters:
  value - the property's value



toString
public String toString()(Code)



writeBody
public void writeBody(OutputStream os) throws IOException(Code)
Serialize the body to an output stream.



writeProperties
public void writeProperties(OutputStream os) throws IOException(Code)
Serialize the properties to an input stream.



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.