Package org.beangle.security.web

Examples of org.beangle.security.web.FilterChainProxy


@Test
@ContextConfiguration("classpath:org/beangle/security/web/filters-test.xml")
public class FilterChainProxyTest extends AbstractTestNGSpringContextTests {

  public void normalOperation() throws Exception {
    FilterChainProxy filterChainProxy = (FilterChainProxy) applicationContext.getBean(
        "filterChain", FilterChainProxy.class);
    checkPathAndFilterOrder(filterChainProxy);
    doNormalOperation(filterChainProxy);
  }
View Full Code Here


    checkPathAndFilterOrder(filterChainProxy);
    doNormalOperation(filterChainProxy);
  }

  public void noMatchFilters() throws Exception {
    FilterChainProxy filterChainProxy = (FilterChainProxy) applicationContext.getBean(
        "newFilterChainProxyNoDefaultPath", FilterChainProxy.class);
    MockHttpServletRequest request = new MockHttpServletRequest();
    request.setServletPath("/nomatch");
    assertEquals(null, filterChainProxy.getFilters(request));
  }
View Full Code Here

    request.setServletPath("/nomatch");
    assertEquals(null, filterChainProxy.getFilters(request));
  }

  public void urlStrippingPropertyIsRespected() throws Exception {
    FilterChainProxy filterChainProxy = (FilterChainProxy) applicationContext.getBean(
        "newFilterChainProxyNoDefaultPath", FilterChainProxy.class);
    String url = "/blah.bar";
    MockHttpServletRequest request = new MockHttpServletRequest();
    request.setServletPath(url);
    request.setQueryString("x=something");
    assertNotNull(filterChainProxy.getFilters(request));
    assertEquals(2, filterChainProxy.getFilters(request).size());
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.web.FilterChainProxy

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.