Class WildcardReadResourceDescriptionAddressHack


  • public class WildcardReadResourceDescriptionAddressHack
    extends Object
    This class is private api

    When r-r-d is called for a wildcard address, which is an alias, we want r-r-d to return the invoked address. However, AliasStepHandler replaces the operation address with the real address, which in turn means that the r-r-d handler never knows about the real address. This class contains two methods:

    1. attachAliasAddress() called by AliasStepHandler to attach the original/alias PathAddress
    2. detachAliasAddress() called by GlobalOperationHandlers.RegistrationAddressResolver (called by the r-r-d handler) to detach the original PathAddress
    This ensures that the r-r-d handler gets access to the original/alias PathAddress. The removal of the attachment ensures not that subsequent steps in the OC do not get access to it. Since the attach and detach only take effect for :read-resource-description we avoid the risk of a call to another operation at an alias address pollutes a subsequent :read-resource-description call at a 'real' address.
    Author:
    Kabir Khan
    • Constructor Detail

      • WildcardReadResourceDescriptionAddressHack

        public WildcardReadResourceDescriptionAddressHack()
    • Method Detail