org.jclouds.vcloud.domain.network.nat.rules
Class PortForwardingRule

java.lang.Object
  extended by org.jclouds.vcloud.domain.network.nat.rules.PortForwardingRule
All Implemented Interfaces:
NatRule

public class PortForwardingRule
extends Object
implements NatRule

The PortForwardingRule element describes a NAT rule that maps an IP address and port in an organization network to an external IP address and port.

Since:
vcloud 0.8
Author:
Adrian Cole

Constructor Summary
PortForwardingRule(String externalIP, int externalPort, String internalIP, int internalPort, NatProtocol protocol)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getExternalIP()
          IP address to which this NAT rule maps the IP address specified in the InternalIp element.
 int getExternalPort()
          network port to which this NAT rule maps the port number specified in the InternalPort element
 String getInternalIP()
          IP address to which this NAT rule maps the IP address specified in the ExternalIp element.
 int getInternalPort()
          network port to which this NAT rule maps the port number specified in the ExternalPort element.
 NatProtocol getProtocol()
          specifies the network protocol to which this rule applies
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortForwardingRule

public PortForwardingRule(String externalIP,
                          int externalPort,
                          String internalIP,
                          int internalPort,
                          NatProtocol protocol)
Method Detail

getExternalIP

public String getExternalIP()
IP address to which this NAT rule maps the IP address specified in the InternalIp element.

Specified by:
getExternalIP in interface NatRule

getExternalPort

public int getExternalPort()
network port to which this NAT rule maps the port number specified in the InternalPort element


getInternalIP

public String getInternalIP()
IP address to which this NAT rule maps the IP address specified in the ExternalIp element.


getInternalPort

public int getInternalPort()
network port to which this NAT rule maps the port number specified in the ExternalPort element.


getProtocol

public NatProtocol getProtocol()
specifies the network protocol to which this rule applies


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.