1 19 20 package com.sslexplorer.tunnels.actions; 21 22 import com.sslexplorer.boot.Util; 23 import com.sslexplorer.policyframework.LaunchSession; 24 import com.sslexplorer.policyframework.Resource; 25 import com.sslexplorer.policyframework.actions.AbstractRedirectLaunchAction; 26 import com.sslexplorer.security.SessionInfo; 27 import com.sslexplorer.tunnels.TunnelPlugin; 28 29 37 public class LaunchTunnelAction extends AbstractRedirectLaunchAction { 38 39 42 public LaunchTunnelAction() { 43 super(TunnelPlugin.SSL_TUNNEL_RESOURCE_TYPE, SessionInfo.MANAGEMENT_CONSOLE_CONTEXT | SessionInfo.USER_CONSOLE_CONTEXT); 44 } 45 46 52 protected String doPrepareLink(LaunchSession launchSession, String returnTo) { 53 return "startTunnel.do?launchId=" + launchSession.getId() + "&returnTo=" + Util.urlEncode(returnTo); 54 } 55 56 61 protected boolean isAgentRequired(Resource resource) { 62 return true; 63 } 64 65 70 protected boolean isDirectLink(LaunchSession launchSession) { 71 return true; 72 } 73 } 74 | Popular Tags |