Package com.biglybt.net.natpmp.upnp.impl
Class NatPMPUPnPRootDeviceImpl.NatPMPUPnPWANConnection
java.lang.Object
com.biglybt.net.natpmp.upnp.impl.NatPMPUPnPRootDeviceImpl.NatPMPUPnPWANConnection
- All Implemented Interfaces:
UPnPSpecificService
,UPnPWANConnection
,UPnPService
- Enclosing class:
NatPMPUPnPRootDeviceImpl
protected class NatPMPUPnPRootDeviceImpl.NatPMPUPnPWANConnection
extends Object
implements UPnPWANConnection, UPnPService
-
Field Summary
FieldsFields inherited from interface com.biglybt.net.upnp.services.UPnPWANConnection
CAP_ALL, CAP_UDP_TCP_SAME_PORT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(UPnPWANConnectionListener listener) void
addPortMapping
(boolean tcp, int port, String description) adda new port mapping from external port X to port X on local hostvoid
deletePortMapping
(boolean tcp, int port) int
boolean
gets a specific service if such is supportedgetStateVariable
(String name) String[]
boolean
void
periodicallyRecheckMappings
(boolean on) void
removeListener
(UPnPWANConnectionListener listener) void
setDirectInvocations
(boolean force) void
-
Field Details
-
nat_impl
-
-
Constructor Details
-
NatPMPUPnPWANConnection
- Throws:
UPnPException
-
-
Method Details
-
getDevice
- Specified by:
getDevice
in interfaceUPnPService
-
getServiceType
- Specified by:
getServiceType
in interfaceUPnPService
-
getConnectionType
- Specified by:
getConnectionType
in interfaceUPnPWANConnection
-
getControlURLs
- Specified by:
getControlURLs
in interfaceUPnPService
- Throws:
UPnPException
-
setPreferredControlURL
- Specified by:
setPreferredControlURL
in interfaceUPnPService
-
isConnectable
public boolean isConnectable()- Specified by:
isConnectable
in interfaceUPnPService
-
getActions
- Specified by:
getActions
in interfaceUPnPService
- Throws:
UPnPException
-
getAction
- Specified by:
getAction
in interfaceUPnPService
- Throws:
UPnPException
-
getStateVariables
- Specified by:
getStateVariables
in interfaceUPnPService
- Throws:
UPnPException
-
getStateVariable
- Specified by:
getStateVariable
in interfaceUPnPService
- Throws:
UPnPException
-
getSpecificService
gets a specific service if such is supported- Specified by:
getSpecificService
in interfaceUPnPService
- Returns:
-
getGenericService
- Specified by:
getGenericService
in interfaceUPnPSpecificService
-
getDirectInvocations
public boolean getDirectInvocations()- Specified by:
getDirectInvocations
in interfaceUPnPService
-
setDirectInvocations
public void setDirectInvocations(boolean force) - Specified by:
setDirectInvocations
in interfaceUPnPService
-
addPortMapping
Description copied from interface:UPnPWANConnection
adda new port mapping from external port X to port X on local host- Specified by:
addPortMapping
in interfaceUPnPWANConnection
- Parameters:
tcp
-port
-description
-- Throws:
UPnPException
-
getPortMappings
- Specified by:
getPortMappings
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
deletePortMapping
- Specified by:
deletePortMapping
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
getStatusInfo
- Specified by:
getStatusInfo
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
getExternalIPAddress
- Specified by:
getExternalIPAddress
in interfaceUPnPWANConnection
- Throws:
UPnPException
-
periodicallyRecheckMappings
public void periodicallyRecheckMappings(boolean on) - Specified by:
periodicallyRecheckMappings
in interfaceUPnPWANConnection
-
getCapabilities
public int getCapabilities()- Specified by:
getCapabilities
in interfaceUPnPWANConnection
-
addListener
- Specified by:
addListener
in interfaceUPnPWANConnection
-
removeListener
- Specified by:
removeListener
in interfaceUPnPWANConnection
-