Package jetbrains.buildServer.web.impl
Class PageExtensionsInterceptor
- java.lang.Object
-
- jetbrains.buildServer.web.impl.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
AVAILABLE_EXTENSIONS_MAP_ATTRIBUTE_NAME
static String
PAGE_EXTENSIONS_PARAM
-
Constructor Summary
Constructors Constructor Description PageExtensionsInterceptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addAvailableExtensionToRequest(List<PageExtension> extensions, PlaceId placeId, 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 furthervoid
afterPropertiesSet()
void
postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
void
setNonExtendablePaths(Set<String> nonExtendablePaths)
void
setPagePlaces(PagePlacesEx pagePlaces)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
PAGE_EXTENSIONS_PARAM
public static final String PAGE_EXTENSIONS_PARAM
- See Also:
- Constant Field Values
-
AVAILABLE_EXTENSIONS_MAP_ATTRIBUTE_NAME
public static final String AVAILABLE_EXTENSIONS_MAP_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPagePlaces
public void setPagePlaces(PagePlacesEx pagePlaces)
-
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 interfaceorg.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 placeIdplaceId
- - required place id
-
-