public class PortMappingEntry extends Object
org.wetorrent.upnp.GatewayDevice,
org.wetorrent.upnp.GatewayDevice#getExternalIPAddress()| Constructor and Description |
|---|
PortMappingEntry()
Creates a new PortMappingEntry
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEnabled()
Gets the enabled flag ("1" if enabled, "0" otherwise)
|
int |
getExternalPort()
Gets the external (remote) port for this mapping
|
String |
getInternalClient()
Gets the internal host this mapping is associated with
|
int |
getInternalPort()
Gets the internal port for this mapping
|
String |
getPortMappingDescription()
Gets the port mapping description
|
String |
getProtocol()
Gets the protocol associated with this mapping
|
String |
getRemoteHost()
Gets the remote host this mapping is associated with
|
void |
setEnabled(String enabled)
Sets the
enabled flag |
void |
setExternalPort(int externalPort)
Sets the
externalPort |
void |
setInternalClient(String internalClient)
Sets the
internalClient |
void |
setInternalPort(int internalPort)
Sets the
internalPort |
void |
setPortMappingDescription(String portMappingDescription)
Sets the
portMappingDescription |
void |
setProtocol(String protocol)
Sets the
protocol associated with this mapping |
void |
setRemoteHost(String remoteHost)
Sets the
remoteHost |
public int getInternalPort()
internalPortpublic void setInternalPort(int internalPort)
internalPortinternalPort - the port to usepublic int getExternalPort()
externalPortpublic void setExternalPort(int externalPort)
externalPortexternalPort - the port to usepublic String getRemoteHost()
remoteHostpublic void setRemoteHost(String remoteHost)
remoteHostremoteHost - the host to setpublic String getInternalClient()
internalClientpublic void setInternalClient(String internalClient)
internalClientinternalClient - the client to setpublic String getProtocol()
protocolpublic void setProtocol(String protocol)
protocol associated with this mappingprotocol - one of TCP or UDPpublic String getEnabled()
enabledpublic void setEnabled(String enabled)
enabled flagenabled - "1" for enabled, "0" for disabledpublic String getPortMappingDescription()
portMappingDescriptionpublic void setPortMappingDescription(String portMappingDescription)
portMappingDescriptionportMappingDescription - the description to setCopyright © 2016. All rights reserved.