Examples of filterXForwardedForIP()


Examples of com.dianping.cat.broker.api.page.RequestUtils.filterXForwardedForIP()

  @Test
  public void test(){
    RequestUtils utils = new RequestUtils();
   
    Assert.assertEquals(null, utils.filterXForwardedForIP("10.1.6.128,10.1.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.16.6.128,172.16.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.31.6.128,172.31.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("192.168.0.1,192.168.0.1"));
    Assert.assertEquals("172.32.6.128", utils.filterXForwardedForIP("172.32.6.128,172.32.6.128"));
  }
View Full Code Here

Examples of com.dianping.cat.broker.api.page.RequestUtils.filterXForwardedForIP()

  @Test
  public void test(){
    RequestUtils utils = new RequestUtils();
   
    Assert.assertEquals(null, utils.filterXForwardedForIP("10.1.6.128,10.1.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.16.6.128,172.16.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.31.6.128,172.31.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("192.168.0.1,192.168.0.1"));
    Assert.assertEquals("172.32.6.128", utils.filterXForwardedForIP("172.32.6.128,172.32.6.128"));
  }
View Full Code Here

Examples of com.dianping.cat.broker.api.page.RequestUtils.filterXForwardedForIP()

  public void test(){
    RequestUtils utils = new RequestUtils();
   
    Assert.assertEquals(null, utils.filterXForwardedForIP("10.1.6.128,10.1.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.16.6.128,172.16.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.31.6.128,172.31.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("192.168.0.1,192.168.0.1"));
    Assert.assertEquals("172.32.6.128", utils.filterXForwardedForIP("172.32.6.128,172.32.6.128"));
  }

}
View Full Code Here

Examples of com.dianping.cat.broker.api.page.RequestUtils.filterXForwardedForIP()

    RequestUtils utils = new RequestUtils();
   
    Assert.assertEquals(null, utils.filterXForwardedForIP("10.1.6.128,10.1.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.16.6.128,172.16.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.31.6.128,172.31.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("192.168.0.1,192.168.0.1"));
    Assert.assertEquals("172.32.6.128", utils.filterXForwardedForIP("172.32.6.128,172.32.6.128"));
  }

}
View Full Code Here

Examples of com.dianping.cat.broker.api.page.RequestUtils.filterXForwardedForIP()

   
    Assert.assertEquals(null, utils.filterXForwardedForIP("10.1.6.128,10.1.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.16.6.128,172.16.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("172.31.6.128,172.31.6.128"));
    Assert.assertEquals(null, utils.filterXForwardedForIP("192.168.0.1,192.168.0.1"));
    Assert.assertEquals("172.32.6.128", utils.filterXForwardedForIP("172.32.6.128,172.32.6.128"));
  }

}
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.