org.teleal.cling.support.igd
Class PortMapping

java.lang.Object
  extended by org.teleal.cling.support.igd.PortMapping

public class PortMapping
extends java.lang.Object

Author:
Christian Bauer

Nested Class Summary
static class PortMapping.Protocol
           
 
Constructor Summary
PortMapping()
           
PortMapping(boolean enabled, org.teleal.cling.model.types.UnsignedIntegerFourBytes leaseDurationSeconds, java.lang.String remoteHost, org.teleal.cling.model.types.UnsignedIntegerTwoBytes externalPort, org.teleal.cling.model.types.UnsignedIntegerTwoBytes internalPort, java.lang.String internalClient, PortMapping.Protocol protocol, java.lang.String description)
           
PortMapping(int port, java.lang.String internalClient, PortMapping.Protocol protocol)
           
PortMapping(int port, java.lang.String internalClient, PortMapping.Protocol protocol, java.lang.String description)
           
PortMapping(java.util.Map<java.lang.String,org.teleal.cling.model.action.ActionArgumentValue<org.teleal.cling.model.meta.Service>> map)
           
PortMapping(java.lang.String remoteHost, org.teleal.cling.model.types.UnsignedIntegerTwoBytes externalPort, PortMapping.Protocol protocol)
           
 
Method Summary
 java.lang.String getDescription()
           
 org.teleal.cling.model.types.UnsignedIntegerTwoBytes getExternalPort()
           
 java.lang.String getInternalClient()
           
 org.teleal.cling.model.types.UnsignedIntegerTwoBytes getInternalPort()
           
 org.teleal.cling.model.types.UnsignedIntegerFourBytes getLeaseDurationSeconds()
           
 PortMapping.Protocol getProtocol()
           
 java.lang.String getRemoteHost()
           
 boolean hasDescription()
           
 boolean hasRemoteHost()
           
 boolean isEnabled()
           
 void setDescription(java.lang.String description)
           
 void setEnabled(boolean enabled)
           
 void setExternalPort(org.teleal.cling.model.types.UnsignedIntegerTwoBytes externalPort)
           
 void setInternalClient(java.lang.String internalClient)
           
 void setInternalPort(org.teleal.cling.model.types.UnsignedIntegerTwoBytes internalPort)
           
 void setLeaseDurationSeconds(org.teleal.cling.model.types.UnsignedIntegerFourBytes leaseDurationSeconds)
           
 void setProtocol(PortMapping.Protocol protocol)
           
 void setRemoteHost(java.lang.String remoteHost)
           
 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()

PortMapping

public PortMapping(java.util.Map<java.lang.String,org.teleal.cling.model.action.ActionArgumentValue<org.teleal.cling.model.meta.Service>> map)

PortMapping

public PortMapping(int port,
                   java.lang.String internalClient,
                   PortMapping.Protocol protocol)

PortMapping

public PortMapping(int port,
                   java.lang.String internalClient,
                   PortMapping.Protocol protocol,
                   java.lang.String description)

PortMapping

public PortMapping(java.lang.String remoteHost,
                   org.teleal.cling.model.types.UnsignedIntegerTwoBytes externalPort,
                   PortMapping.Protocol protocol)

PortMapping

public PortMapping(boolean enabled,
                   org.teleal.cling.model.types.UnsignedIntegerFourBytes leaseDurationSeconds,
                   java.lang.String remoteHost,
                   org.teleal.cling.model.types.UnsignedIntegerTwoBytes externalPort,
                   org.teleal.cling.model.types.UnsignedIntegerTwoBytes internalPort,
                   java.lang.String internalClient,
                   PortMapping.Protocol protocol,
                   java.lang.String description)
Method Detail

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getLeaseDurationSeconds

public org.teleal.cling.model.types.UnsignedIntegerFourBytes getLeaseDurationSeconds()

setLeaseDurationSeconds

public void setLeaseDurationSeconds(org.teleal.cling.model.types.UnsignedIntegerFourBytes leaseDurationSeconds)

hasRemoteHost

public boolean hasRemoteHost()

getRemoteHost

public java.lang.String getRemoteHost()

setRemoteHost

public void setRemoteHost(java.lang.String remoteHost)

getExternalPort

public org.teleal.cling.model.types.UnsignedIntegerTwoBytes getExternalPort()

setExternalPort

public void setExternalPort(org.teleal.cling.model.types.UnsignedIntegerTwoBytes externalPort)

getInternalPort

public org.teleal.cling.model.types.UnsignedIntegerTwoBytes getInternalPort()

setInternalPort

public void setInternalPort(org.teleal.cling.model.types.UnsignedIntegerTwoBytes internalPort)

getInternalClient

public java.lang.String getInternalClient()

setInternalClient

public void setInternalClient(java.lang.String internalClient)

getProtocol

public PortMapping.Protocol getProtocol()

setProtocol

public void setProtocol(PortMapping.Protocol protocol)

hasDescription

public boolean hasDescription()

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

toString

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


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.