Modifier and Type | Method and Description |
---|---|
static Firewall.Rule |
create(String ipProtocol,
List<String> ports) |
abstract String |
ipProtocol()
This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
|
abstract List<String> |
ports()
An optional list of ports which are allowed.
|
public abstract String ipProtocol()
@Nullable public abstract List<String> ports()
12345-12349
). If not specified, connections through any port are
allowed.public static Firewall.Rule create(String ipProtocol, List<String> ports)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.