Class PortMapping


  • public class PortMapping
    extends java.lang.Object
    Keeps track of the external to internal port mapping for a container
    • Constructor Summary

      Constructors 
      Constructor Description
      PortMapping​(java.lang.String ip, java.lang.String externalPort, java.lang.String internalPort)  
    • Method Summary

      Modifier and Type Method Description
      int getExternalPort()  
      int getInternalPort()  
      java.lang.String getIp()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PortMapping

        public PortMapping​(java.lang.String ip,
                           java.lang.String externalPort,
                           java.lang.String internalPort)
    • Method Detail

      • getIp

        public java.lang.String getIp()
      • getExternalPort

        public int getExternalPort()
      • getInternalPort

        public int getInternalPort()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object