private void initAggregatedFolderPath(final HttpServletRequest request, final ResourceType type) {
    if (ResourceType.CSS == type && context.getAggregatedFolderPath() == null) {
      final String requestUri = request.getRequestURI();
      final String cssFolder = StringUtils.removeEnd(requestUri, FilenameUtils.getName(requestUri));
      final String aggregatedFolder = StringUtils.removeStart(cssFolder, request.getContextPath());
      LOG.debug("set aggregatedFolderPath: {}", aggregatedFolder);
      Context.get().setAggregatedFolderPath(aggregatedFolder);
    }
  }
private void initAggregatedFolderPath(final HttpServletRequest request, final ResourceType type) {
    if (ResourceType.CSS == type && context.getAggregatedFolderPath() == null) {
      final String requestUri = request.getRequestURI();
      final String cssFolder = StringUtils.removeEnd(requestUri, FilenameUtils.getName(requestUri));
      final String aggregatedFolder = StringUtils.removeStart(cssFolder, request.getContextPath());
      LOG.debug("set aggregatedFolderPath: {}", aggregatedFolder);
      Context.get().setAggregatedFolderPath(aggregatedFolder);
    }
  }
private void initAggregatedFolderPath ( final HttpServletRequest request , final ResourceType type ) { if ( ResourceType . CSS == type && context . getAggregatedFolderPath ( ) == null ) { final String requestUri = request . getRequestURI ( ) ; final String cssFolder = StringUtils . removeEnd ( requestUri , FilenameUtils . getName ( requestUri ) ) ; final String aggregatedFolder = StringUtils . removeStart ( cssFolder , request . getContextPath ( ) ) ; LOG . debug ( "set aggregatedFolderPath: {}" , aggregatedFolder ) ; Context . get ( ) . setAggregatedFolderPath ( aggregatedFolder ) ; } }
Set the aggregatedFolderPath if required.
Set the aggregatedFolderPath if required .