|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dasein.cloud.services.firewall.FirewallRule
public class FirewallRule
Describes a specific firewall rule allowing access through the target firewall.
| Constructor Summary | |
|---|---|
FirewallRule()
Constructs an empty firewall rule for marshalling purposes. |
|
FirewallRule(String firewallId,
String cidr,
Protocol protocol,
int startPort,
int endPort)
Constructs a firewall rule with the specified rule state. |
|
| Method Summary | |
|---|---|
String |
getCidr()
The source IP address or range of addresses in CIDR format. |
Direction |
getDirection()
|
int |
getEndPort()
|
String |
getFirewallId()
|
Permission |
getPermission()
|
Protocol |
getProtocol()
|
String |
getProviderRuleId()
|
static String |
getRuleId(String providerFirewallId,
String cidr,
Direction direction,
Protocol protocol,
int startPort,
int endPort)
|
int |
getStartPort()
|
void |
setCidr(String cidr)
Used only for marshalling and not to be used programatically. |
void |
setDirection(Direction direction)
|
void |
setEndPort(int endPort)
Used only for marshalling and not to be used programatically. |
void |
setFirewallId(String firewallId)
Used only for marshalling and not to be used programatically. |
void |
setPermission(Permission permission)
|
void |
setProtocol(Protocol protocol)
Used only for marshalling and not to be used programatically. |
void |
setProviderRuleId(String providerRuleId)
|
void |
setStartPort(int startPort)
Used only for marshalling and not to be used programatically. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FirewallRule()
public FirewallRule(String firewallId,
String cidr,
Protocol protocol,
int startPort,
int endPort)
firewallId - the unique ID of the firewall to which this rule belongscidr - the CIDR naming the source for this ruleprotocol - the protocol supporting this rulestartPort - the start port for the access behind this ruleendPort - the end port for the access behind this rule| Method Detail |
|---|
public static String getRuleId(String providerFirewallId,
String cidr,
Direction direction,
Protocol protocol,
int startPort,
int endPort)
public String getCidr()
public int getEndPort()
public String getFirewallId()
public Protocol getProtocol()
public int getStartPort()
public void setCidr(String cidr)
cidr - the source CIDR for the rule being marshalledpublic void setEndPort(int endPort)
endPort - the end port for the rule being marshalledpublic void setFirewallId(String firewallId)
firewallId - the unique provider ID for the firewall for the rule being marshalledpublic void setProtocol(Protocol protocol)
protocol - the protocol for the rule being marshalledpublic void setStartPort(int startPort)
startPort - the start port for the rule being marshalledpublic void setDirection(Direction direction)
public Direction getDirection()
public void setPermission(Permission permission)
public Permission getPermission()
public void setProviderRuleId(String providerRuleId)
public String getProviderRuleId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.