com.aelitis.net.upnp.impl.services
Class UPnPSSWANConnectionImpl

java.lang.Object
  extended by com.aelitis.net.upnp.impl.services.UPnPSSWANConnectionImpl
All Implemented Interfaces:
UPnPSpecificService, UPnPWANConnection
Direct Known Subclasses:
UPnPSSWANIPConnectionImpl, UPnPSSWANPPPConnectionImpl

public abstract class UPnPSSWANConnectionImpl
extends java.lang.Object
implements UPnPWANConnection

Author:
parg

Field Summary
 
Fields inherited from interface com.aelitis.net.upnp.services.UPnPWANConnection
CAP_ALL, CAP_UDP_TCP_SAME_PORT
 
Constructor Summary
protected UPnPSSWANConnectionImpl(UPnPServiceImpl _service)
           
 
Method Summary
 void addListener(UPnPWANConnectionListener listener)
           
 void addPortMapping(boolean tcp, int port, java.lang.String description)
          adda new port mapping from external port X to port X on local host
protected  void checkMappings()
           
 void deletePortMapping(boolean tcp, int port)
           
 int getCapabilities()
           
 java.lang.String getExternalIPAddress()
           
 UPnPService getGenericService()
           
 UPnPWANConnectionPortMapping[] getPortMappings()
           
 java.lang.String[] getStatusInfo()
           
protected  void log(java.lang.String str)
           
 void periodicallyRecheckMappings(boolean on)
           
 void removeListener(UPnPWANConnectionListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.aelitis.net.upnp.services.UPnPWANConnection
getConnectionType
 

Constructor Detail

UPnPSSWANConnectionImpl

protected UPnPSSWANConnectionImpl(UPnPServiceImpl _service)
Method Detail

getCapabilities

public int getCapabilities()
Specified by:
getCapabilities in interface UPnPWANConnection

getGenericService

public UPnPService getGenericService()
Specified by:
getGenericService in interface UPnPSpecificService

getStatusInfo

public java.lang.String[] getStatusInfo()
                                 throws UPnPException
Specified by:
getStatusInfo in interface UPnPWANConnection
Throws:
UPnPException

periodicallyRecheckMappings

public void periodicallyRecheckMappings(boolean on)
Specified by:
periodicallyRecheckMappings in interface UPnPWANConnection

checkMappings

protected void checkMappings()
                      throws UPnPException
Throws:
UPnPException

addPortMapping

public void addPortMapping(boolean tcp,
                           int port,
                           java.lang.String description)
                    throws UPnPException
Description copied from interface: UPnPWANConnection
adda new port mapping from external port X to port X on local host

Specified by:
addPortMapping in interface UPnPWANConnection
Throws:
UPnPException

deletePortMapping

public void deletePortMapping(boolean tcp,
                              int port)
                       throws UPnPException
Specified by:
deletePortMapping in interface UPnPWANConnection
Throws:
UPnPException

getPortMappings

public UPnPWANConnectionPortMapping[] getPortMappings()
                                               throws UPnPException
Specified by:
getPortMappings in interface UPnPWANConnection
Throws:
UPnPException

getExternalIPAddress

public java.lang.String getExternalIPAddress()
                                      throws UPnPException
Specified by:
getExternalIPAddress in interface UPnPWANConnection
Throws:
UPnPException

log

protected void log(java.lang.String str)

addListener

public void addListener(UPnPWANConnectionListener listener)
Specified by:
addListener in interface UPnPWANConnection

removeListener

public void removeListener(UPnPWANConnectionListener listener)
Specified by:
removeListener in interface UPnPWANConnection