Java Doc for SpyMessage.java in  » EJB-Server-JBoss-4.2.1 » messaging » org » jboss » mq » 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 JBoss 4.2.1 » messaging » org.jboss.mq 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.mq.SpyMessage

All known Subclasses:   org.jboss.mq.SpyBytesMessage,  org.jboss.mq.SpyTextMessage,  org.jboss.mq.SpyStreamMessage,  org.jboss.mq.SpyObjectMessage,  org.jboss.mq.SpyMapMessage,
SpyMessage
public class SpyMessage implements Serializable,Message,Comparable,Cloneable,Externalizable(Code)
This class implements javax.jms.Message
author:
   Norbert Lataille (Norbert.Lataille@m4x.org)
author:
   Hiram Chirino (Cojonudo14@hotmail.com)
author:
   David Maplesden (David.Maplesden@orion.co.nz)
author:
   Adrian Brock
version:
   $Revision: 57198 $

Inner Class :public static class Header

Field Summary
final protected static  intBOOLEAN
    
final protected static  intBYTE
    
final protected static  byteBYTES_MESS
    
final protected static  intDOUBLE
    
final protected static  byteENCAP_MESS
    
final protected static  intFLOAT
    
final protected static  intINT
    
final protected static  intLONG
    
final protected static  byteMAP_MESS
    
final protected static  intNULL
    
final protected static  intOBJECT
    
final protected static  byteOBJECT_MESS
    
final public static  StringPROPERTY_DELIVERY_COUNT
    
final public static  StringPROPERTY_ORIG_DESTINATION
     JBoss-vendor property name holding original destination.
final public static  StringPROPERTY_ORIG_EXPIRATION
     JBoss-vendor property name holding original expiration value.
final public static  StringPROPERTY_ORIG_MESSAGEID
     JBoss-vendor property name holding original message ID value.
final public static  StringPROPERTY_REDELIVERY_COUNT
     JBoss-vendor specific property for getting the count of redelivery attempts of a message.
final public static  StringPROPERTY_REDELIVERY_DELAY
     JBoss-vendor specific property specifying redelivery delay of a message.
final public static  StringPROPERTY_REDELIVERY_LIMIT
     JBoss-vendor specific property specifying the limit of redelivery attempts of a message.
final public static  StringPROPERTY_SCHEDULED_DELIVERY
     JBoss-vendor specific property for scheduling a JMS message.
final protected static  intSHORT
    
final protected static  byteSPY_MESS
    
final protected static  byteSTREAM_MESS
    
final protected static  intSTRING
    
final protected static  byteTEXT_MESS
    
public transient  AcknowledgementRequestack
    
public  Headerheader
    
public transient  SpySessionsession
    


Method Summary
public  voidacknowledge()
    
 voidcheckProperty(String name, Object value)
    
public  voidclearBody()
    
 voidclearMessage()
    
public  voidclearProperties()
    
public  intcompareTo(Object o)
    
public  voidcopyProps(SpyMessage original)
    
public  voidcreateAcknowledgementRequest(int subscriptionId)
    
public  voiddoAcknowledge()
    
public  AcknowledgementRequestgetAcknowledgementRequest(boolean isAck)
    
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()
    
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  booleanisOutdated()
    
public  SpyMessagemyClone()
    
public  booleanpropertyExists(String name)
    
public  voidreadExternal(ObjectInput in)
    
public static  SpyMessagereadMessage(ObjectInput in)
    
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[] correlationID)
    
public  voidsetJMSDeliveryMode(int deliveryMode)
    
public  voidsetJMSDestination(Destination destination)
    
public  voidsetJMSExpiration(long expiration)
    
public  voidsetJMSMessageID(String id)
    
public  voidsetJMSPriority(int priority)
    
public  voidsetJMSRedelivered(boolean redelivered)
    
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  voidsetReadOnlyMode()
    
public  voidsetShortProperty(String name, short value)
    
public  voidsetStringProperty(String name, String value)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    
public static  voidwriteMessage(SpyMessage message, ObjectOutput out)
    

Field Detail
BOOLEAN
final protected static int BOOLEAN(Code)
A boolean property



BYTE
final protected static int BYTE(Code)
A byte property



BYTES_MESS
final protected static byte BYTES_MESS(Code)
An bytes message



DOUBLE
final protected static int DOUBLE(Code)
A double property



ENCAP_MESS
final protected static byte ENCAP_MESS(Code)
An encapsulated message



FLOAT
final protected static int FLOAT(Code)
A float property



INT
final protected static int INT(Code)
An integer property



LONG
final protected static int LONG(Code)
A long property



MAP_MESS
final protected static byte MAP_MESS(Code)
A map message



NULL
final protected static int NULL(Code)
A null property



OBJECT
final protected static int OBJECT(Code)
An object property



OBJECT_MESS
final protected static byte OBJECT_MESS(Code)
An object message



PROPERTY_DELIVERY_COUNT
final public static String PROPERTY_DELIVERY_COUNT(Code)
Standard property for delivery count



PROPERTY_ORIG_DESTINATION
final public static String PROPERTY_ORIG_DESTINATION(Code)
JBoss-vendor property name holding original destination.



PROPERTY_ORIG_EXPIRATION
final public static String PROPERTY_ORIG_EXPIRATION(Code)
JBoss-vendor property name holding original expiration value.



PROPERTY_ORIG_MESSAGEID
final public static String PROPERTY_ORIG_MESSAGEID(Code)
JBoss-vendor property name holding original message ID value.



PROPERTY_REDELIVERY_COUNT
final public static String PROPERTY_REDELIVERY_COUNT(Code)
JBoss-vendor specific property for getting the count of redelivery attempts of a message.



PROPERTY_REDELIVERY_DELAY
final public static String PROPERTY_REDELIVERY_DELAY(Code)
JBoss-vendor specific property specifying redelivery delay of a message. The message will be rescheduled for delivery from the time at which it was unacknowledged, plus the given period.



PROPERTY_REDELIVERY_LIMIT
final public static String PROPERTY_REDELIVERY_LIMIT(Code)
JBoss-vendor specific property specifying the limit of redelivery attempts of a message. The message will be redelivered a given number of times. If not set, the container default is used.



PROPERTY_SCHEDULED_DELIVERY
final public static String PROPERTY_SCHEDULED_DELIVERY(Code)
JBoss-vendor specific property for scheduling a JMS message. In milliseconds since January 1, 1970.



SHORT
final protected static int SHORT(Code)
A short property



SPY_MESS
final protected static byte SPY_MESS(Code)
A plain message



STREAM_MESS
final protected static byte STREAM_MESS(Code)
A stream message



STRING
final protected static int STRING(Code)
A string property



TEXT_MESS
final protected static byte TEXT_MESS(Code)
A text message



ack
public transient AcknowledgementRequest ack(Code)
The acknowledgement request for this message



header
public Header header(Code)
The message header



session
public transient SpySession session(Code)
The session for this message





Method Detail
acknowledge
public void acknowledge() throws JMSException(Code)
Acknowledge a message
throws:
  JMSException - for any error



checkProperty
void checkProperty(String name, Object value) throws JMSException(Code)
Check a property is valid
Parameters:
  name - the name
Parameters:
  value - the value
throws:
  JMSException - for any error



clearBody
public void clearBody() throws JMSException(Code)
Clear the message body
throws:
  JMSException - for any error



clearMessage
void clearMessage() throws JMSException(Code)
Clear a message
throws:
  JMSException - for any error



clearProperties
public void clearProperties() throws JMSException(Code)



compareTo
public int compareTo(Object o)(Code)



copyProps
public void copyProps(SpyMessage original) throws JMSException(Code)
Copy the properties
Parameters:
  original - the message with original properties
throws:
  JMSException - for any error



createAcknowledgementRequest
public void createAcknowledgementRequest(int subscriptionId)(Code)
Create an acknowledgement request for the message



doAcknowledge
public void doAcknowledge() throws JMSException(Code)
Actually acknowledge a message
throws:
  JMSException - for any error



getAcknowledgementRequest
public AcknowledgementRequest getAcknowledgementRequest(boolean isAck) throws JMSException(Code)
Get an acknowledgement request for the message
Parameters:
  isAck - true for an ack, false for a nack
throws:
  JMSException - for any error



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



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



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



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



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



getJMSCorrelationID
public String getJMSCorrelationID() throws JMSException(Code)



getJMSCorrelationIDAsBytes
public byte[] getJMSCorrelationIDAsBytes() throws JMSException(Code)



getJMSDeliveryMode
public int getJMSDeliveryMode()(Code)



getJMSDestination
public Destination getJMSDestination()(Code)



getJMSExpiration
public long getJMSExpiration()(Code)



getJMSMessageID
public String getJMSMessageID()(Code)



getJMSPriority
public int getJMSPriority()(Code)



getJMSRedelivered
public boolean getJMSRedelivered()(Code)



getJMSReplyTo
public Destination getJMSReplyTo()(Code)



getJMSTimestamp
public long getJMSTimestamp()(Code)



getJMSType
public String getJMSType()(Code)



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



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



getPropertyNames
public Enumeration getPropertyNames() throws JMSException(Code)



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



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



isOutdated
public boolean isOutdated()(Code)
Test whether a message has expired true when expired false otherwise



myClone
public SpyMessage myClone() throws JMSException(Code)
Clone the message the cloned message
throws:
  JMSException - for any error



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



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



readMessage
public static SpyMessage readMessage(ObjectInput in) throws IOException(Code)
Read a message
Parameters:
  in - the input the message
throws:
  IOException - for any error



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



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



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



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



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



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



setJMSCorrelationIDAsBytes
public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException(Code)



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



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



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



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



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



setJMSRedelivered
public void setJMSRedelivered(boolean redelivered) throws JMSException(Code)



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



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



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



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



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



setReadOnlyMode
public void setReadOnlyMode()(Code)
Set the message to read only



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



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



toString
public String toString()(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



writeMessage
public static void writeMessage(SpyMessage message, ObjectOutput out) throws IOException(Code)
Write a message
Parameters:
  message - the message
Parameters:
  out - the output
throws:
  IOException - for any error



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.