1 19 20 package com.sslexplorer.agent.client.tunneling; 21 22 import com.sslexplorer.agent.client.util.TunnelConfiguration; 23 24 31 public class DefaultTunnel implements TunnelConfiguration { 32 33 35 private int id, type; 36 private String name; 37 private String transport; 38 private String sourceInterface; 39 private int sourcePort; 40 private int destinationPort; 41 private String destinationHost; 42 private boolean permanent; 43 private boolean temporarySingleConnect; 44 private String launchId; 45 46 60 public DefaultTunnel(int id, int type, String transport, String sourceInterface, int sourcePort, 61 int destinationPort, String destinationHost, boolean permanent, 62 boolean temporarySingleConnect, String name, 63 String launchId) { 64 this.id = id; 65 this.type = type; 66 this.transport = transport; 67 this.permanent = permanent; 68 this.sourceInterface = sourceInterface; 69 this.sourcePort = sourcePort; 70 this.destinationPort = destinationPort; 71 this.destinationHost = destinationHost; 72 this.temporarySingleConnect = temporarySingleConnect; 73 this.name = name; 74 this.launchId = launchId; 75 } 76 77 82 public int getId() { 83 return id; 84 } 85 86 public String getName() { 87 return name; 88 } 89 90 95 public int getType() { 96 return type; 97 } 98 99 104 public boolean isPermanent() { 105 return permanent; 106 } 107 108 113 public String getTransport() { 114 return transport; 115 } 116 117 122 public int getSourcePort() { 123 return sourcePort; 124 } 125 126 127 132 public String getSourceInterface() { 133 return sourceInterface; 134 } 135 136 141 public int getDestinationPort() { 142 return destinationPort; 143 } 144 145 150 public String getDestinationHost() { 151 return destinationHost; 152 } 153 154 159 public boolean isTemporarySingleConnect() { 160 return temporarySingleConnect; 161 } 162 163 168 public void setDestinationHost(String destinationHost) { 169 this.destinationHost = destinationHost; 170 } 171 172 177 public void setDestinationPort(int destinationPort) { 178 this.destinationPort = destinationPort; 179 } 180 181 186 public void setId(int id) { 187 this.id = id; 188 } 189 190 195 public void setSourcePort(int sourcePort) { 196 this.sourcePort = sourcePort; 197 } 198 199 204 public void setSourcePort(String sourceInterface) { 205 this.sourceInterface = sourceInterface; 206 } 207 208 214 public void setTransport(String transport) { 215 this.transport = transport; 216 } 217 218 224 public void setType(int type) { 225 this.type = type; 226 } 227 228 231 public String getLaunchId() { 232 return launchId; 233 } 234 } 235 | Popular Tags |