Class UpnpPortForwarding

java.lang.Object
org.fourthline.cling.support.model.PortMapping
org.eblocker.server.upnp.UpnpPortForwarding

public class UpnpPortForwarding extends org.fourthline.cling.support.model.PortMapping
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.fourthline.cling.support.model.PortMapping

    org.fourthline.cling.support.model.PortMapping.Protocol
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    UpnpPortForwarding(int externalPort, int internalPort, String internalHostIp, int durationSeconds, String description, org.fourthline.cling.support.model.PortMapping.Protocol protocol, boolean permanent)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    boolean
     
    void
    setPermanent(boolean permanent)
     

    Methods inherited from class org.fourthline.cling.support.model.PortMapping

    getDescription, getExternalPort, getInternalClient, getInternalPort, getLeaseDurationSeconds, getProtocol, getRemoteHost, hasDescription, hasRemoteHost, isEnabled, setDescription, setEnabled, setExternalPort, setInternalClient, setInternalPort, setLeaseDurationSeconds, setProtocol, setRemoteHost, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UpnpPortForwarding

      public UpnpPortForwarding()
    • UpnpPortForwarding

      public UpnpPortForwarding(int externalPort, int internalPort, String internalHostIp, int durationSeconds, String description, org.fourthline.cling.support.model.PortMapping.Protocol protocol, boolean permanent)
    • UpnpPortForwarding

      public UpnpPortForwarding(UpnpPortForwarding orig)
  • Method Details

    • isPermament

      public boolean isPermament()
    • setPermanent

      public void setPermanent(boolean permanent)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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