Show / Hide Table of Contents

    Class MessagePropertyIntercepter

    Utility class used to set NMS properties via introspection for IMessage derived instances. This class allows IMessage classes to define Message specific properties that can be accessed using the standard property get / set semantics.

    This is especially useful for NMSX type properties which can vary by provider and are obtianed via a call to IConnectionMetaData.NMSXPropertyNames. The client can set the properties on an IMessage instance without a direct cast to the providers specific Message types.

    Properties accessed in this way are treated as NMS Message headers which are never read-only therefore there is no exception thrown if the message itself is in the read-only property mode.

    Inheritance
    System.Object
    PrimitiveMapInterceptor
    MessagePropertyIntercepter
    Implements
    IPrimitiveMap
    Inherited Members
    PrimitiveMapInterceptor.message
    PrimitiveMapInterceptor.properties
    PrimitiveMapInterceptor.Clear()
    PrimitiveMapInterceptor.Contains(Object)
    PrimitiveMapInterceptor.Remove(Object)
    PrimitiveMapInterceptor.Count
    PrimitiveMapInterceptor.Keys
    PrimitiveMapInterceptor.Values
    PrimitiveMapInterceptor.Item[String]
    PrimitiveMapInterceptor.GetString(String)
    PrimitiveMapInterceptor.SetString(String, String)
    PrimitiveMapInterceptor.GetBool(String)
    PrimitiveMapInterceptor.SetBool(String, Boolean)
    PrimitiveMapInterceptor.GetByte(String)
    PrimitiveMapInterceptor.SetByte(String, Byte)
    PrimitiveMapInterceptor.GetChar(String)
    PrimitiveMapInterceptor.SetChar(String, Char)
    PrimitiveMapInterceptor.GetShort(String)
    PrimitiveMapInterceptor.SetShort(String, Int16)
    PrimitiveMapInterceptor.GetInt(String)
    PrimitiveMapInterceptor.SetInt(String, Int32)
    PrimitiveMapInterceptor.GetLong(String)
    PrimitiveMapInterceptor.SetLong(String, Int64)
    PrimitiveMapInterceptor.GetFloat(String)
    PrimitiveMapInterceptor.SetFloat(String, Single)
    PrimitiveMapInterceptor.GetDouble(String)
    PrimitiveMapInterceptor.SetDouble(String, Double)
    PrimitiveMapInterceptor.SetBytes(String, Byte[])
    PrimitiveMapInterceptor.SetBytes(String, Byte[], Int32, Int32)
    PrimitiveMapInterceptor.GetBytes(String)
    PrimitiveMapInterceptor.GetList(String)
    PrimitiveMapInterceptor.SetList(String, IList)
    PrimitiveMapInterceptor.GetDictionary(String)
    PrimitiveMapInterceptor.SetDictionary(String, IDictionary)
    PrimitiveMapInterceptor.ReadOnly
    PrimitiveMapInterceptor.AllowByteArrays
    PrimitiveMapInterceptor.FailIfReadOnly()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Apache.NMS.Util
    Assembly: Apache.NMS.dll
    Syntax
    public class MessagePropertyIntercepter : PrimitiveMapInterceptor, IPrimitiveMap

    Constructors

    | Improve this Doc View Source

    MessagePropertyIntercepter(IMessage, IPrimitiveMap)

    Declaration
    public MessagePropertyIntercepter(IMessage message, IPrimitiveMap properties)
    Parameters
    Type Name Description
    IMessage message
    IPrimitiveMap properties
    | Improve this Doc View Source

    MessagePropertyIntercepter(IMessage, IPrimitiveMap, Boolean)

    Declaration
    public MessagePropertyIntercepter(IMessage message, IPrimitiveMap properties, bool readOnly)
    Parameters
    Type Name Description
    IMessage message
    IPrimitiveMap properties
    System.Boolean readOnly

    Methods

    | Improve this Doc View Source

    GetObjectProperty(String)

    Declaration
    protected override object GetObjectProperty(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    System.Object
    Overrides
    PrimitiveMapInterceptor.GetObjectProperty(String)
    | Improve this Doc View Source

    SetObjectProperty(String, Object)

    Declaration
    protected override void SetObjectProperty(string name, object value)
    Parameters
    Type Name Description
    System.String name
    System.Object value
    Overrides
    PrimitiveMapInterceptor.SetObjectProperty(String, Object)

    Implements

    IPrimitiveMap
    • Improve this Doc
    • View Source
    Back to top Copyright © 2005-2022 Apache Software Foundation project
    Generated by DocFX