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