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()
internalPort
public void setInternalPort(int internalPort)
internalPort
internalPort
- the port to usepublic int getExternalPort()
externalPort
public void setExternalPort(int externalPort)
externalPort
externalPort
- the port to usepublic String getRemoteHost()
remoteHost
public void setRemoteHost(String remoteHost)
remoteHost
remoteHost
- the host to setpublic String getInternalClient()
internalClient
public void setInternalClient(String internalClient)
internalClient
internalClient
- the client to setpublic String getProtocol()
protocol
public void setProtocol(String protocol)
protocol
associated with this mappingprotocol
- one of TCP or UDPpublic String getEnabled()
enabled
public void setEnabled(String enabled)
enabled
flagenabled
- "1" for enabled, "0" for disabledpublic String getPortMappingDescription()
portMappingDescription
public void setPortMappingDescription(String portMappingDescription)
portMappingDescription
portMappingDescription
- the description to setCopyright © 2016. All rights reserved.