Package org.hdiv.web.servlet.support

Examples of org.hdiv.web.servlet.support.HdivRequestDataValueProcessor


  }

  public void testRequestDataValueProcessor() {

    HdivRequestDataValueProcessor processor = this.context.getBean(HdivRequestDataValueProcessor.class);
    assertNotNull(processor);

    // Spring security 'CsrfRequestDataValueProcessor' as inner processor.
    RequestDataValueProcessor inner = processor.getInnerRequestDataValueProcessor();
    assertNotNull(inner);

    assertEquals(CsrfRequestDataValueProcessor.class, inner.getClass());
  }
View Full Code Here


  protected LinkUrlProcessor linkUrlProcessor;

  @Bean(name = ConfigBeanDefinitionParser.REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME)
  public RequestDataValueProcessor requestDataValueProcessor() {

    HdivRequestDataValueProcessor dataValueProcessor = new ThymeleafHdivRequestDataValueProcessor();
    dataValueProcessor.setFormUrlProcessor(this.formUrlProcessor);
    dataValueProcessor.setLinkUrlProcessor(this.linkUrlProcessor);

    if (springSecurityPresent) {
      dataValueProcessor.setInnerRequestDataValueProcessor(new CsrfRequestDataValueProcessor());
    }
    return dataValueProcessor;
  }
View Full Code Here

  protected LinkUrlProcessor linkUrlProcessor;

  @Bean(name = ConfigBeanDefinitionParser.REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME)
  public RequestDataValueProcessor requestDataValueProcessor() {

    HdivRequestDataValueProcessor dataValueProcessor = new HdivRequestDataValueProcessor();
    dataValueProcessor.setFormUrlProcessor(this.formUrlProcessor);
    dataValueProcessor.setLinkUrlProcessor(this.linkUrlProcessor);

    if (springSecurityPresent) {
      dataValueProcessor.setInnerRequestDataValueProcessor(new CsrfRequestDataValueProcessor());
    }
    return dataValueProcessor;
  }
View Full Code Here

  protected LinkUrlProcessor linkUrlProcessor;

  @Bean(name = ConfigBeanDefinitionParser.REQUEST_DATA_VALUE_PROCESSOR_BEAN_NAME)
  public RequestDataValueProcessor requestDataValueProcessor() {

    HdivRequestDataValueProcessor dataValueProcessor = new GrailsHdivRequestDataValueProcessor();
    dataValueProcessor.setFormUrlProcessor(this.formUrlProcessor);
    dataValueProcessor.setLinkUrlProcessor(this.linkUrlProcessor);
    return dataValueProcessor;
  }
View Full Code Here

TOP

Related Classes of org.hdiv.web.servlet.support.HdivRequestDataValueProcessor

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.