Package com.adaptris.core.msmq.javonet
Class MessageProperty
- java.lang.Object
-
- com.adaptris.core.msmq.javonet.MessageProperty
-
- Direct Known Subclasses:
ConfiguredProperty
,MessageIdProperty
,MetadataProperty
,XpathProperty
public abstract class MessageProperty extends java.lang.Object
Abstract base class for mappingMessage
fields toAdaptrisMessage
objects and vice versa.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageProperty.Property
Enumeration of the supported properties fromSystem.Messaging.Message
.
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logR
-
Constructor Summary
Constructors Constructor Description MessageProperty()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description NullConverter
getNullConverter()
MessageProperty.Property
getPropertyName()
abstract void
mapProperty(AdaptrisMessage src, Message dest)
Copy information from the AdaptrisMessage object into the MQMessage object.abstract void
mapProperty(Message src, AdaptrisMessage dest)
Copy information from the MSMQ Message object into the AdaptrisMessage object.protected NullConverter
nullConverter()
void
setNullConverter(NullConverter nc)
Specify how to handle null objects.void
setPropertyName(MessageProperty.Property s)
The field name that will be mapped.
-
-
-
Method Detail
-
getPropertyName
public MessageProperty.Property getPropertyName()
- Returns:
- the mqFieldName
-
setPropertyName
public void setPropertyName(MessageProperty.Property s)
The field name that will be mapped.- Parameters:
s
- the mqFieldName to set
-
mapProperty
public abstract void mapProperty(AdaptrisMessage src, Message dest) throws MSMQException, CoreException
Copy information from the AdaptrisMessage object into the MQMessage object.- Parameters:
src
- the AdaptrisMessage Objectdest
- theMessage
object- Throws:
MSMQException
- for any MSMQ related ExceptionsCoreException
- for any framework related exceptions
-
mapProperty
public abstract void mapProperty(Message src, AdaptrisMessage dest) throws MSMQException, CoreException
Copy information from the MSMQ Message object into the AdaptrisMessage object.- Parameters:
src
- theMessage
objectdest
- the AdaptrisMessage Object- Throws:
MSMQException
- for any MSMQ related Exceptions.CoreException
- for any framework related exceptions
-
getNullConverter
public NullConverter getNullConverter()
-
setNullConverter
public void setNullConverter(NullConverter nc)
Specify how to handle null objects.- Parameters:
nc
- how to handle null objects; if not specified thenNullPassThroughConverter
-
nullConverter
protected NullConverter nullConverter()
-
-