1 19 20 package com.sslexplorer.tunnels; 21 22 import java.util.List ; 23 24 import com.sslexplorer.boot.HostService; 25 import com.sslexplorer.extensions.types.PluginDatabase; 26 27 35 public interface TunnelDatabase extends PluginDatabase { 36 37 38 53 public Tunnel createTunnel(int realmID, String name, String description, int type, boolean autoStart, String transport, String username, 54 int sourcePort, HostService destination, String sourceInterface) throws Exception ; 55 56 71 public void updateTunnel(int id, String name, String description, int type, boolean autoStart, String transport, 72 String username, int sourcePort, HostService destination, String sourceInterface) throws Exception ; 73 74 80 public List <Tunnel> getTunnels() throws Exception ; 81 82 88 public List <Tunnel> getTunnels(int realmID) throws Exception ; 89 90 97 public Tunnel removeTunnel(int id) throws Exception ; 98 99 106 public Tunnel getTunnel(int id) throws Exception ; 107 108 116 public Tunnel getTunnel(String name, int realmID) throws Exception ; 117 118 } | Popular Tags |