se.datadosen.net
Class PortMapping

java.lang.Object
  extended by se.datadosen.net.PortMapping

public class PortMapping
extends java.lang.Object


Constructor Summary
PortMapping(java.lang.String description, int port)
           
PortMapping(java.lang.String description, int port, PortMappingListener listener)
           
 
Method Summary
 boolean deletePortMapping()
           
 java.lang.String getExternalAddress()
           
 int getPort()
           
 void setMapping(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortMapping

public PortMapping(java.lang.String description,
                   int port)
            throws java.io.IOException,
                   net.sbbi.upnp.messages.UPNPResponseException
Throws:
java.io.IOException
net.sbbi.upnp.messages.UPNPResponseException

PortMapping

public PortMapping(java.lang.String description,
                   int port,
                   PortMappingListener listener)
            throws java.io.IOException,
                   net.sbbi.upnp.messages.UPNPResponseException
Throws:
java.io.IOException
net.sbbi.upnp.messages.UPNPResponseException
Method Detail

getPort

public int getPort()

setMapping

public void setMapping(int port)
                throws net.sbbi.upnp.messages.UPNPResponseException,
                       java.io.IOException
Throws:
net.sbbi.upnp.messages.UPNPResponseException
java.io.IOException

getExternalAddress

public java.lang.String getExternalAddress()
                                    throws java.io.IOException,
                                           net.sbbi.upnp.messages.UPNPResponseException
Throws:
java.io.IOException
net.sbbi.upnp.messages.UPNPResponseException

deletePortMapping

public boolean deletePortMapping()