Package com.sun.ts.tests.jms.common
Class MessageTestImpl
java.lang.Object
com.sun.ts.tests.jms.common.MessageTestImpl
- All Implemented Interfaces:
- jakarta.jms.Message
- Direct Known Subclasses:
- BytesMessageTestImpl,- InvalidTextMessageTestImpl,- MapMessageTestImpl,- ObjectMessageTestImpl,- StreamMessageTestImpl,- TextMessageTestImpl
Class Declaration.
- Version:
- 1.2, 09/26/00
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanbooleanprotected booleanFields inherited from interface jakarta.jms.MessageDEFAULT_DELIVERY_DELAY, DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidDummy method for acknowledgeprotected voidvoidDummy method for clearvoidMethod Declaration.<T> TReturns the message body as an object of the specified type.booleangetBooleanProperty(String name) Method Declaration.bytegetByteProperty(String name) Method Declaration.doublegetDoubleProperty(String name) Method Declaration.floatgetFloatProperty(String name) Method Declaration.intgetIntProperty(String name) Method Declaration.Method Declaration.byte[]Method Declaration.intMethod Declaration.longMethod Declaration.jakarta.jms.DestinationMethod Declaration.longMethod Declaration.Method Declaration.intMethod Declaration.booleanMethod Declaration.jakarta.jms.DestinationMethod Declaration.longMethod Declaration.Method Declaration.longgetLongProperty(String name) Method Declaration.getObjectProperty(String name) Method Declaration.Method Declaration.shortgetShortProperty(String name) Method Declaration.getStringProperty(String name) Method Declaration.booleanReturns whether the message body is capable of being assigned to the specified type.booleanpropertyExists(String name) Method Declaration.voidsetBooleanProperty(String name, boolean value) Method Declaration.protected voidsetBufferIsDirty(boolean state) voidsetByteProperty(String name, byte value) Method Declaration.voidsetDoubleProperty(String name, double value) Method Declaration.voidsetFloatProperty(String name, float value) Method Declaration.voidsetIntProperty(String name, int value) Method Declaration.voidsetJMSCorrelationID(String correlationID) Method Declaration.voidsetJMSCorrelationIDAsBytes(byte[] correlationID) Method Declaration.voidsetJMSDeliveryMode(int deliveryMode) Method Declaration.voidsetJMSDeliveryTime(long deliveryTime) Method Declaration.voidsetJMSDestination(jakarta.jms.Destination destination) Method Declaration.voidsetJMSExpiration(long expiration) Method Declaration.voidMethod Declaration.voidsetJMSPriority(int priority) Method Declaration.voidsetJMSRedelivered(boolean redelivered) Method Declaration.voidsetJMSReplyTo(jakarta.jms.Destination replyTo) Method Declaration.voidsetJMSTimestamp(long timestamp) Method Declaration.voidsetJMSType(String type) Method Declaration.voidsetLongProperty(String name, long value) Method Declaration.voidsetObjectProperty(String name, Object value) Method Declaration.voidsetShortProperty(String name, short value) Method Declaration.voidsetStringProperty(String name, String value) Method Declaration.
- 
Field Details- 
dummypublic boolean dummy
- 
bufferIsDirtyprotected boolean bufferIsDirty
- 
readModeprotected boolean readMode
 
- 
- 
Constructor Details- 
MessageTestImplpublic MessageTestImpl()Constructor
 
- 
- 
Method Details- 
getJMSMessageIDMethod Declaration.- Specified by:
- getJMSMessageIDin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSMessageIDMethod Declaration.- Specified by:
- setJMSMessageIDin interface- jakarta.jms.Message
- Parameters:
- id-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSTimestamppublic long getJMSTimestamp() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSTimestampin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSTimestamppublic void setJMSTimestamp(long timestamp) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSTimestampin interface- jakarta.jms.Message
- Parameters:
- timestamp-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSCorrelationIDAsBytespublic byte[] getJMSCorrelationIDAsBytes() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSCorrelationIDAsBytesin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSCorrelationIDAsBytespublic void setJMSCorrelationIDAsBytes(byte[] correlationID) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSCorrelationIDAsBytesin interface- jakarta.jms.Message
- Parameters:
- correlationID-
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSCorrelationIDMethod Declaration.- Specified by:
- setJMSCorrelationIDin interface- jakarta.jms.Message
- Parameters:
- correlationID-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSCorrelationIDMethod Declaration.- Specified by:
- getJMSCorrelationIDin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSReplyTopublic jakarta.jms.Destination getJMSReplyTo() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSReplyToin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSReplyTopublic void setJMSReplyTo(jakarta.jms.Destination replyTo) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSReplyToin interface- jakarta.jms.Message
- Parameters:
- replyTo-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSDestinationpublic jakarta.jms.Destination getJMSDestination() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSDestinationin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSDestinationpublic void setJMSDestination(jakarta.jms.Destination destination) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSDestinationin interface- jakarta.jms.Message
- Parameters:
- destination-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSDeliveryModepublic int getJMSDeliveryMode() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSDeliveryModein interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSDeliveryTimepublic void setJMSDeliveryTime(long deliveryTime) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSDeliveryTimein interface- jakarta.jms.Message
- Parameters:
- deliveryTime-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSDeliveryTimepublic long getJMSDeliveryTime() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSDeliveryTimein interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSDeliveryModepublic void setJMSDeliveryMode(int deliveryMode) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSDeliveryModein interface- jakarta.jms.Message
- Parameters:
- deliveryMode-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSRedeliveredpublic boolean getJMSRedelivered() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSRedeliveredin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSRedeliveredpublic void setJMSRedelivered(boolean redelivered) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSRedeliveredin interface- jakarta.jms.Message
- Parameters:
- redelivered-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSTypeMethod Declaration.- Specified by:
- getJMSTypein interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSTypeMethod Declaration.- Specified by:
- setJMSTypein interface- jakarta.jms.Message
- Parameters:
- type-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSExpirationpublic long getJMSExpiration() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSExpirationin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSExpirationpublic void setJMSExpiration(long expiration) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSExpirationin interface- jakarta.jms.Message
- Parameters:
- expiration-
- Throws:
- jakarta.jms.JMSException
 
- 
getJMSPrioritypublic int getJMSPriority() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- getJMSPriorityin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setJMSPrioritypublic void setJMSPriority(int priority) throws jakarta.jms.JMSException Method Declaration.- Specified by:
- setJMSPriorityin interface- jakarta.jms.Message
- Parameters:
- priority-
- Throws:
- jakarta.jms.JMSException
 
- 
clearPropertiespublic void clearProperties() throws jakarta.jms.JMSExceptionMethod Declaration.- Specified by:
- clearPropertiesin interface- jakarta.jms.Message
- Throws:
- jakarta.jms.JMSException
 
- 
propertyExistsMethod Declaration.- Specified by:
- propertyExistsin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getBooleanPropertyMethod Declaration.- Specified by:
- getBooleanPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getBytePropertyMethod Declaration.- Specified by:
- getBytePropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getShortPropertyMethod Declaration.- Specified by:
- getShortPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getIntPropertyMethod Declaration.- Specified by:
- getIntPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getLongPropertyMethod Declaration.- Specified by:
- getLongPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getFloatPropertyMethod Declaration.- Specified by:
- getFloatPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getDoublePropertyMethod Declaration.- Specified by:
- getDoublePropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getStringPropertyMethod Declaration.- Specified by:
- getStringPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getObjectPropertyMethod Declaration.- Specified by:
- getObjectPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
getPropertyNamesMethod Declaration.- Specified by:
- getPropertyNamesin interface- jakarta.jms.Message
- Returns:
- Throws:
- jakarta.jms.JMSException
 
- 
setBooleanPropertyMethod Declaration.- Specified by:
- setBooleanPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setBytePropertyMethod Declaration.- Specified by:
- setBytePropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setShortPropertyMethod Declaration.- Specified by:
- setShortPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setIntPropertyMethod Declaration.- Specified by:
- setIntPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setLongPropertyMethod Declaration.- Specified by:
- setLongPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setFloatPropertyMethod Declaration.- Specified by:
- setFloatPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setDoublePropertyMethod Declaration.- Specified by:
- setDoublePropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setStringPropertyMethod Declaration.- Specified by:
- setStringPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
setObjectPropertyMethod Declaration.- Specified by:
- setObjectPropertyin interface- jakarta.jms.Message
- Parameters:
- name-
- value-
- Throws:
- jakarta.jms.JMSException
 
- 
acknowledgepublic void acknowledge() throws jakarta.jms.JMSExceptionDummy method for acknowledge- Specified by:
- acknowledgein interface- jakarta.jms.Message
- Throws:
- jakarta.jms.JMSException
 
- 
clearBodypublic void clearBody() throws jakarta.jms.JMSExceptionDummy method for clear- Specified by:
- clearBodyin interface- jakarta.jms.Message
- Throws:
- jakarta.jms.JMSException
 
- 
setBufferIsDirtyprotected void setBufferIsDirty(boolean state) 
- 
checkReadAccessprotected void checkReadAccess() throws jakarta.jms.JMSException- Throws:
- jakarta.jms.JMSException
 
- 
getBodyReturns the message body as an object of the specified type.- Specified by:
- getBodyin interface- jakarta.jms.Message
- Parameters:
- c- - The type to which the message body will be assigned.
- Returns:
- the message body
- Throws:
- jakarta.jms.JMSException- if JMS fails to read message due to some internal JMS error.
- jakarta.jms.MessageFormatException- if this type conversion is invalid.
 
- 
isBodyAssignableToReturns whether the message body is capable of being assigned to the specified type.- Specified by:
- isBodyAssignableToin interface- jakarta.jms.Message
- Parameters:
- c- - The specified type.
- Returns:
- whether the message body is capable of being assigned to the specified type
- Throws:
- jakarta.jms.JMSException- if a JMS error occurs.
 
 
-