| | |
| | | InetAddress addr=InetAddress.getByName(ipStr); |
| | | EnumEvalResult res=ip.evaluate(addr); |
| | | if(res != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + mixed); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + mixed); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | InetAddress addr=InetAddress.getByName(ipStr); |
| | | EnumEvalResult res=ip.evaluate(addr); |
| | | if(res != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + ip4compat); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip4compat); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | InetAddress addr=InetAddress.getByName(ipStr); |
| | | EnumEvalResult res=ip.evaluate(addr); |
| | | if(res != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + ip6ExprCidr); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6ExprCidr); |
| | | } |
| | | IP ip1=(IP) IP.decode(ip6ExprCidrB, EnumBindRuleType.EQUAL_BINDRULE_TYPE); |
| | | EnumEvalResult res1=ip1.evaluate(addr); |
| | | if(res1 != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + ip6ExprCidrB); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6ExprCidrB); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | InetAddress addr=InetAddress.getByName(ipStr); |
| | | EnumEvalResult res=ip.evaluate(addr); |
| | | if(res != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + ip6Expr); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6Expr); |
| | | } |
| | | IP ip1=(IP) IP.decode(ip6ExprC, EnumBindRuleType.EQUAL_BINDRULE_TYPE); |
| | | EnumEvalResult res1=ip1.evaluate(addr); |
| | | if(res1 != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + ip6ExprC); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + ip6ExprC); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | InetAddress addr=InetAddress.getByName(ipStr); |
| | | EnumEvalResult res=ip.evaluate(addr); |
| | | if(res != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + cidr); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + cidr); |
| | | } |
| | | |
| | | IP ip1=(IP) IP.decode(cidrWc, EnumBindRuleType.EQUAL_BINDRULE_TYPE); |
| | | EnumEvalResult res1=ip.evaluate(addr); |
| | | if(res1 != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + cidrWc); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + cidrWc); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | InetAddress addr=InetAddress.getByName(ipStr); |
| | | EnumEvalResult res=ip.evaluate(addr); |
| | | if(res != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + netmaskWc); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + netmaskWc); |
| | | } |
| | | IP ip1 = (IP) IP.decode(netmaskWcOverRide, |
| | | EnumBindRuleType.EQUAL_BINDRULE_TYPE); |
| | | EnumEvalResult res1=ip1.evaluate(addr); |
| | | if(res1 != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + netmaskWc); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + netmaskWc); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | InetAddress addr=InetAddress.getByName(ipStr); |
| | | EnumEvalResult res=ip.evaluate(addr); |
| | | if(res != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr: " + ipExpr); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr: " + ipExpr); |
| | | } |
| | | IP ipWc=(IP) IP.decode(ipExprWc, EnumBindRuleType.EQUAL_BINDRULE_TYPE); |
| | | EnumEvalResult resWc=ipWc.evaluate(addr); |
| | | if(resWc != EnumEvalResult.TRUE) |
| | | throw new RuntimeException ("Addr: " + ipStr + |
| | | "expr:" + ipExprWc); |
| | | { |
| | | throw new RuntimeException ("Addr: " + ipStr + "expr:" + ipExprWc); |
| | | } |
| | | } |
| | | |
| | | /** |