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 UPnPWANConnection
CAP_ALL, CAP_UDP_TCP_SAME_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(UPnPWANConnectionListener listener) voidaddPortMapping(boolean tcp, int port, InetAddress internal_host, String description) adda new port mapping from external port X to port X on local hostvoiddeletePortMapping(boolean tcp, int port) intgetControlURLs(boolean ipv4) booleangets a specific service if such is supportedgetStateVariable(String name) String[]voidperiodicallyRecheckMappings(boolean on) voidremoveListener(UPnPWANConnectionListener listener) voidsetDirectInvocations(boolean force) void
-
Field Details
-
nat_impl
-
-
Constructor Details
-
NatPMPUPnPWANConnection
- Throws:
UPnPException
-
-
Method Details
-
getDevice
- Specified by:
getDevicein interfaceUPnPService
-
getServiceType
- Specified by:
getServiceTypein interfaceUPnPService
-
getConnectionType
- Specified by:
getConnectionTypein interfaceUPnPWANConnection
-
getControlURLs
- Specified by:
getControlURLsin interfaceUPnPService- Throws:
UPnPException
-
setPreferredControlURL
- Specified by:
setPreferredControlURLin interfaceUPnPService
-
getActions
- Specified by:
getActionsin interfaceUPnPService- Throws:
UPnPException
-
getAction
- Specified by:
getActionin interfaceUPnPService- Throws:
UPnPException
-
getStateVariables
- Specified by:
getStateVariablesin interfaceUPnPService- Throws:
UPnPException
-
getStateVariable
- Specified by:
getStateVariablein interfaceUPnPService- Throws:
UPnPException
-
getSpecificService
gets a specific service if such is supported- Specified by:
getSpecificServicein interfaceUPnPService- Returns:
-
getGenericService
- Specified by:
getGenericServicein interfaceUPnPSpecificService
-
getDirectInvocations
public boolean getDirectInvocations()- Specified by:
getDirectInvocationsin interfaceUPnPService
-
setDirectInvocations
public void setDirectInvocations(boolean force) - Specified by:
setDirectInvocationsin interfaceUPnPService
-
addPortMapping
public void addPortMapping(boolean tcp, int port, InetAddress internal_host, String description) throws UPnPException Description copied from interface:UPnPWANConnectionadda new port mapping from external port X to port X on local host- Specified by:
addPortMappingin interfaceUPnPWANConnection- Parameters:
port-description-- Throws:
UPnPException
-
getPortMappings
- Specified by:
getPortMappingsin interfaceUPnPWANConnection- Throws:
UPnPException
-
deletePortMapping
- Specified by:
deletePortMappingin interfaceUPnPWANConnection- Throws:
UPnPException
-
getStatusInfo
- Specified by:
getStatusInfoin interfaceUPnPWANConnection- Throws:
UPnPException
-
getExternalIPAddress
- Specified by:
getExternalIPAddressin interfaceUPnPWANConnection- Throws:
UPnPException
-
periodicallyRecheckMappings
public void periodicallyRecheckMappings(boolean on) - Specified by:
periodicallyRecheckMappingsin interfaceUPnPWANConnection
-
getCapabilities
public int getCapabilities()- Specified by:
getCapabilitiesin interfaceUPnPWANConnection
-
addListener
- Specified by:
addListenerin interfaceUPnPWANConnection
-
removeListener
- Specified by:
removeListenerin interfaceUPnPWANConnection
-