1 19 20 package com.sslexplorer.tunnels; 21 22 import java.util.Calendar ; 23 24 import com.sslexplorer.boot.HostService; 25 import com.sslexplorer.policyframework.AbstractResource; 26 27 public class DefaultTunnel extends AbstractResource implements Tunnel { 28 29 int type; 30 String username; 31 boolean autoStart; 32 String transport; 33 int sourcePort; 34 String sourceInterface; 35 HostService destination; 36 37 49 public DefaultTunnel(int realmID, String name, String description, int id, int type, boolean autoStart, String transport, String username, 50 int sourcePort, HostService destination, String sourceInterface, Calendar dateCreated, Calendar dateAmended) { 51 super(realmID, TunnelPlugin.SSL_TUNNEL_RESOURCE_TYPE, id, name, description, dateCreated, dateAmended); 52 this.type = type; 53 this.autoStart = autoStart; 54 this.transport = transport; 55 this.username = username; 56 this.sourcePort = sourcePort; 57 this.sourceInterface = sourceInterface; 58 this.destination = destination; 59 } 60 61 66 public int getType() { 67 return type; 68 } 69 70 75 public boolean isAutoStart() { 76 return autoStart; 77 } 78 79 84 public String getTransport() { 85 return transport; 86 } 87 88 93 public String getUsername() { 94 return username; 95 } 96 97 102 public int getSourcePort() { 103 return sourcePort; 104 } 105 106 public String getSourceInterface() { 107 return sourceInterface; 108 } 109 110 115 public HostService getDestination() { 116 return destination; 117 } 118 119 122 public void setAutoStart(boolean autoStart) { 123 this.autoStart = autoStart; 124 } 125 126 129 public void setDestination(HostService destination) { 130 this.destination = destination; 131 } 132 133 136 public void setSourcePort(int sourcePort) { 137 this.sourcePort = sourcePort; 138 } 139 140 public void setSourceInterface(String sourceInterface) { 141 this.sourceInterface = sourceInterface; 142 } 143 144 147 public void setTransport(String transport) { 148 this.transport = transport; 149 } 150 151 154 public void setType(int type) { 155 this.type = type; 156 } 157 158 161 public void setUsername(String username) { 162 this.username = username; 163 } 164 } 165 | Popular Tags |