Package com.adaptris.core.msmq.javonet
Enum MessageProperty.Property
- java.lang.Object
-
- java.lang.Enum<MessageProperty.Property>
-
- com.adaptris.core.msmq.javonet.MessageProperty.Property
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessageProperty.Property>
- Enclosing class:
- MessageProperty
public static enum MessageProperty.Property extends java.lang.Enum<MessageProperty.Property>
Enumeration of the supported properties fromSystem.Messaging.Message
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AcknowledgeType
Maps toSystem.Messaging.Message.AcknowledgeType
.Acknowledgment
Maps toSystem.Messaging.Message.Acknowledgment
.AdministrationQueue
Maps toSystem.Messaging.Message.AdministrationQueue
.ArrivedTime
Maps toSystem.Messaging.Message.ArrivedTime
.CorrelationId
Maps toSystem.Messaging.Message.CorrelationId
.Id
Maps toSystem.Messaging.Message.Id
.Label
Maps toSystem.Messaging.Message.Label
.LookupId
Maps toSystem.Messaging.Message.LookupId
.MessageType
Maps toSystem.Messaging.Message.MessageType
.ResponseQueue
Maps toSystem.Messaging.Message.ResponseQueue
.SentTime
Maps toSystem.Messaging.Message.SentTime
.SourceMachine
Maps toSystem.Messaging.Message.SourceMachine
.TimeToBeReceived
Maps toSystem.Messaging.Message.TimeToBeReceived
.TimeToReachQueue
Maps toSystem.Messaging.Message.TimeToReachQueue
.TransactionId
Maps toSystem.Messaging.Message.TransactionId
.UseTracing
Maps toSystem.Messaging.Message.UseTracing
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getField(Message msg)
void
setField(java.lang.String s, Message msg)
static MessageProperty.Property
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessageProperty.Property[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AcknowledgeType
public static final MessageProperty.Property AcknowledgeType
Maps toSystem.Messaging.Message.AcknowledgeType
.- See Also:
AcknowledgeTypes
-
Acknowledgment
public static final MessageProperty.Property Acknowledgment
Maps toSystem.Messaging.Message.Acknowledgment
.- See Also:
Acknowledgment
-
AdministrationQueue
public static final MessageProperty.Property AdministrationQueue
Maps toSystem.Messaging.Message.AdministrationQueue
.If you are attempting to retrieve the property; then only the QueueName is returned.
-
ArrivedTime
public static final MessageProperty.Property ArrivedTime
Maps toSystem.Messaging.Message.ArrivedTime
.Attempting to set the ArrivedTime property on a message will cause an
UnsupportedOperationException
-
CorrelationId
public static final MessageProperty.Property CorrelationId
Maps toSystem.Messaging.Message.CorrelationId
.
-
Id
public static final MessageProperty.Property Id
Maps toSystem.Messaging.Message.Id
.Attempting to set the Id property on a message will cause an
UnsupportedOperationException
-
Label
public static final MessageProperty.Property Label
Maps toSystem.Messaging.Message.Label
.
-
LookupId
public static final MessageProperty.Property LookupId
Maps toSystem.Messaging.Message.LookupId
.
-
MessageType
public static final MessageProperty.Property MessageType
Maps toSystem.Messaging.Message.MessageType
.- See Also:
MessageType
-
ResponseQueue
public static final MessageProperty.Property ResponseQueue
Maps toSystem.Messaging.Message.ResponseQueue
.If you are attempting to retrieve the property; then only the QueueName is returned.
-
SentTime
public static final MessageProperty.Property SentTime
Maps toSystem.Messaging.Message.SentTime
.Attempting to set the SentTime property on a message will cause an
UnsupportedOperationException
-
SourceMachine
public static final MessageProperty.Property SourceMachine
Maps toSystem.Messaging.Message.SourceMachine
.Attempting to set the SourceMachine property on a message will cause an
UnsupportedOperationException
-
TimeToBeReceived
public static final MessageProperty.Property TimeToBeReceived
Maps toSystem.Messaging.Message.TimeToBeReceived
.
-
TimeToReachQueue
public static final MessageProperty.Property TimeToReachQueue
Maps toSystem.Messaging.Message.TimeToReachQueue
.
-
TransactionId
public static final MessageProperty.Property TransactionId
Maps toSystem.Messaging.Message.TransactionId
.Attempting to set the TransactionId property on a message will cause an
UnsupportedOperationException
-
UseTracing
public static final MessageProperty.Property UseTracing
Maps toSystem.Messaging.Message.UseTracing
.
-
-
Method Detail
-
values
public static MessageProperty.Property[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageProperty.Property c : MessageProperty.Property.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageProperty.Property valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
setField
public void setField(java.lang.String s, Message msg) throws MSMQException
- Throws:
MSMQException
-
getField
public java.lang.String getField(Message msg) throws MSMQException
- Throws:
MSMQException
-
-