public class PortMapping extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PortMapping.Protocol |
Constructor and Description |
---|
PortMapping() |
PortMapping(boolean enabled,
UnsignedIntegerFourBytes leaseDurationSeconds,
String remoteHost,
UnsignedIntegerTwoBytes externalPort,
UnsignedIntegerTwoBytes internalPort,
String internalClient,
PortMapping.Protocol protocol,
String description) |
PortMapping(int port,
String internalClient,
PortMapping.Protocol protocol) |
PortMapping(int port,
String internalClient,
PortMapping.Protocol protocol,
String description) |
PortMapping(Map<String,ActionArgumentValue<Service>> map) |
PortMapping(String remoteHost,
UnsignedIntegerTwoBytes externalPort,
PortMapping.Protocol protocol) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
UnsignedIntegerTwoBytes |
getExternalPort() |
String |
getInternalClient() |
UnsignedIntegerTwoBytes |
getInternalPort() |
UnsignedIntegerFourBytes |
getLeaseDurationSeconds() |
PortMapping.Protocol |
getProtocol() |
String |
getRemoteHost() |
boolean |
hasDescription() |
boolean |
hasRemoteHost() |
boolean |
isEnabled() |
void |
setDescription(String description) |
void |
setEnabled(boolean enabled) |
void |
setExternalPort(UnsignedIntegerTwoBytes externalPort) |
void |
setInternalClient(String internalClient) |
void |
setInternalPort(UnsignedIntegerTwoBytes internalPort) |
void |
setLeaseDurationSeconds(UnsignedIntegerFourBytes leaseDurationSeconds) |
void |
setProtocol(PortMapping.Protocol protocol) |
void |
setRemoteHost(String remoteHost) |
String |
toString() |
public PortMapping()
public PortMapping(Map<String,ActionArgumentValue<Service>> map)
public PortMapping(int port, String internalClient, PortMapping.Protocol protocol)
public PortMapping(int port, String internalClient, PortMapping.Protocol protocol, String description)
public PortMapping(String remoteHost, UnsignedIntegerTwoBytes externalPort, PortMapping.Protocol protocol)
public PortMapping(boolean enabled, UnsignedIntegerFourBytes leaseDurationSeconds, String remoteHost, UnsignedIntegerTwoBytes externalPort, UnsignedIntegerTwoBytes internalPort, String internalClient, PortMapping.Protocol protocol, String description)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public UnsignedIntegerFourBytes getLeaseDurationSeconds()
public void setLeaseDurationSeconds(UnsignedIntegerFourBytes leaseDurationSeconds)
public boolean hasRemoteHost()
public String getRemoteHost()
public void setRemoteHost(String remoteHost)
public UnsignedIntegerTwoBytes getExternalPort()
public void setExternalPort(UnsignedIntegerTwoBytes externalPort)
public UnsignedIntegerTwoBytes getInternalPort()
public void setInternalPort(UnsignedIntegerTwoBytes internalPort)
public String getInternalClient()
public void setInternalClient(String internalClient)
public PortMapping.Protocol getProtocol()
public void setProtocol(PortMapping.Protocol protocol)
public boolean hasDescription()
public String getDescription()
public void setDescription(String description)
Copyright © 2015 4th Line GmbH, Switzerland. All rights reserved.