com.aelitis.net.upnp.impl.services
Class UPnPSSWANConnectionImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPnPSSWANConnectionImpl
protected UPnPSSWANConnectionImpl(UPnPServiceImpl _service)
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