@Test public void testToAclLineMatchExpr() { FwFromProtocol from = new FwFromProtocol(IpProtocol.TCP); assertEquals( from.toAclLineMatchExpr(null, null, null), new MatchHeaderSpace( HeaderSpace.builder().setIpProtocols(IpProtocol.TCP).build(), TraceElement.of("Matched protocol tcp"))); }
@Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); }
FwFromProtocol implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } }
FwFromProtocol implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromProtocol(IpProtocol protocol); }
FwFromProtocol implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromProtocol(IpProtocol protocol); IpProtocol getProtocol(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w); }
FwFromProtocol implements FwFrom { @Override public AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w) { return new MatchHeaderSpace(toHeaderspace(), getTraceElement()); } FwFromProtocol(IpProtocol protocol); IpProtocol getProtocol(); @Override Field getField(); @Override AclLineMatchExpr toAclLineMatchExpr(JuniperConfiguration jc, Configuration c, Warnings w);  }