Interface RequestInitializer

  • @Role
    public interface RequestInitializer
    Let any component that need to perform further initializations involving the Request do so. For example the Velocity component creates a brand new Velocity Context which it puts in the Request.
    $Id: 526166275b454494b1e126be8a2054da22519625 $
    • Method Detail

      • initialize

        void initialize​(Request request)
                 throws RequestInitializerException
        Perform initializations here, such as storing objects in the Request.
        request - the XWiki Request object
        RequestInitializerException - if the initialization fails. It's expected that the application should stop if this happens.