Package org.springframework.web.servlet.resource

Examples of org.springframework.web.servlet.resource.ResourceUrlProviderExposingInterceptor


  protected final Object[] getInterceptors() {
    if (this.interceptors == null) {
      InterceptorRegistry registry = new InterceptorRegistry();
      addInterceptors(registry);
      registry.addInterceptor(new ConversionServiceExposingInterceptor(mvcConversionService()));
      registry.addInterceptor(new ResourceUrlProviderExposingInterceptor(mvcResourceUrlProvider()));
      this.interceptors = registry.getInterceptors();
    }
    return this.interceptors.toArray();
  }
View Full Code Here


    AbstractHandlerMapping handlerMapping = registry.getHandlerMapping();
    if (handlerMapping != null) {
      handlerMapping.setPathMatcher(mvcPathMatcher());
      handlerMapping.setUrlPathHelper(mvcUrlPathHelper());
      handlerMapping.setInterceptors(new HandlerInterceptor[] {
          new ResourceUrlProviderExposingInterceptor(mvcResourceUrlProvider())});
    }
    else {
      handlerMapping = new EmptyHandlerMapping();
    }
    return handlerMapping;
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.resource.ResourceUrlProviderExposingInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.