Class PageExtensionsInterceptor

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean, org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    public class PageExtensionsInterceptor
    extends Object
    implements org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.beans.factory.InitializingBean
    Interceptor processing page extensions
    • Constructor Detail

      • PageExtensionsInterceptor

        public PageExtensionsInterceptor()
    • Method Detail

      • setPagePlaces

        public void setPagePlaces​(PagePlacesEx pagePlaces)
      • setNonExtendablePaths

        public void setNonExtendablePaths​(Set<String> nonExtendablePaths)
      • postHandle

        public void postHandle​(@NotNull
                               javax.servlet.http.HttpServletRequest request,
                               @NotNull
                               javax.servlet.http.HttpServletResponse response,
                               Object handler,
                               @Nullable
                               org.springframework.web.servlet.ModelAndView modelAndView)
                        throws Exception
        Specified by:
        postHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Throws:
        Exception
      • addAvailableExtensionToRequest

        public static void addAvailableExtensionToRequest​(@NotNull
                                                          List<PageExtension> extensions,
                                                          @NotNull
                                                          PlaceId placeId,
                                                          @NotNull
                                                          javax.servlet.http.HttpServletRequest request)
        Controllers inherited from 'PlaceIdBaseController' add extension that were calculated as suitable for the required request To avoid re-calculation in @getAvailableExtensions it will place all extensions in the context and later @getAvailableExtensions will take them to use further
        Parameters:
        extensions - - list of available extension suitable for this request and placeId
        placeId - - required place id
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception