Examples of LiteDeviceDelegatingViewResolver


Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

  @Bean
  public LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver() {
    ThymeleafViewResolver delegate = new ThymeleafViewResolver();
    delegate.setTemplateEngine(templateEngine());
    delegate.setOrder(1);
    LiteDeviceDelegatingViewResolver resolver = new LiteDeviceDelegatingViewResolver(
        delegate);
    resolver.setMobilePrefix("mobile/");
    resolver.setTabletPrefix("tablet/");
    return resolver;
  }
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

  @Bean
  public LiteDeviceDelegatingViewResolver liteDeviceAwareViewResolver() {
    InternalResourceViewResolver delegate = new InternalResourceViewResolver();
    delegate.setPrefix("/WEB-INF/views/");
    delegate.setSuffix(".jsp");
    LiteDeviceDelegatingViewResolver resolver = new LiteDeviceDelegatingViewResolver(
        delegate);
    resolver.setMobilePrefix("mobile/");
    resolver.setTabletPrefix("tablet/");
    return resolver;
  }
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    @Autowired
    private DeviceDelegatingViewResolverProperties viewResolverProperties;

    protected LiteDeviceDelegatingViewResolver getConfiguredViewResolver(
        ViewResolver delegate, int delegateOrder) {
      LiteDeviceDelegatingViewResolver resolver = new LiteDeviceDelegatingViewResolver(
          delegate);
      resolver.setNormalPrefix(this.viewResolverProperties.getNormalPrefix());
      resolver.setNormalSuffix(this.viewResolverProperties.getNormalSuffix());
      resolver.setMobilePrefix(this.viewResolverProperties.getMobilePrefix());
      resolver.setMobileSuffix(this.viewResolverProperties.getMobileSuffix());
      resolver.setTabletPrefix(this.viewResolverProperties.getTabletPrefix());
      resolver.setTabletSuffix(this.viewResolverProperties.getTabletSuffix());
      resolver.setOrder(getAdjustedOrder(delegateOrder));
      return resolver;
    }
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            LiteDeviceDelegatingViewResolver.class);

    Field normalPrefixField = ReflectionUtils.findField(
        LiteDeviceDelegatingViewResolver.class, "normalPrefix");
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            LiteDeviceDelegatingViewResolver.class);
    Field normalPrefixField = ReflectionUtils.findField(
        LiteDeviceDelegatingViewResolver.class, "normalPrefix");
    normalPrefixField.setAccessible(true);
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            LiteDeviceDelegatingViewResolver.class);
    Field mobilePrefixField = ReflectionUtils.findField(
        LiteDeviceDelegatingViewResolver.class, "mobilePrefix");
    mobilePrefixField.setAccessible(true);
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            LiteDeviceDelegatingViewResolver.class);
    Field tabletPrefixField = ReflectionUtils.findField(
        LiteDeviceDelegatingViewResolver.class, "tabletPrefix");
    tabletPrefixField.setAccessible(true);
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            LiteDeviceDelegatingViewResolver.class);
    Field normalSuffixField = ReflectionUtils.findField(
        LiteDeviceDelegatingViewResolver.class, "normalSuffix");
    normalSuffixField.setAccessible(true);
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            LiteDeviceDelegatingViewResolver.class);
    Field mobileSuffixField = ReflectionUtils.findField(
        LiteDeviceDelegatingViewResolver.class, "mobileSuffix");
    mobileSuffixField.setAccessible(true);
View Full Code Here

Examples of org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver

    this.context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        DeviceDelegatingViewResolverConfiguration.class);
    this.context.refresh();
    LiteDeviceDelegatingViewResolver liteDeviceDelegatingViewResolver = this.context
        .getBean("deviceDelegatingViewResolver",
            LiteDeviceDelegatingViewResolver.class);
    Field tabletSuffixField = ReflectionUtils.findField(
        LiteDeviceDelegatingViewResolver.class, "tabletSuffix");
    tabletSuffixField.setAccessible(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.