Class BaseUriDecorator

  • All Implemented Interfaces:
    Decorator

    public class BaseUriDecorator
    extends AbstractHandlerAndFilterDecorator
    The baseURI decorator can decorate both Filter and Handler instances.

    It has to be declared inside of the heap objects section:

         
         {
           "name": "myBaseUri",
           "type": "BaseUriDecorator"
         }
         
     
    To decorate a component, just add the decorator declaration next to the config element:
         
         {
           "type": "...",
           "myBaseUri": "http://www.example.com",
           "config": { ... }
         }
         
     

    The baseURI has to be a string otherwise, the decoration will be ignored.

    N.B: The Gateway Servlet creates a default BaseUriDecorator named "baseURI" at startup time.

    • Constructor Detail

      • BaseUriDecorator

        public BaseUriDecorator​(String name)
        Builds a new BaseUriDecorator.
        Parameters:
        name - The name of this decorator.