1 19 20 package com.sslexplorer.core.actions; 21 22 import javax.servlet.http.HttpServletRequest ; 23 import javax.servlet.http.HttpServletResponse ; 24 25 import org.apache.struts.action.ActionForm; 26 import org.apache.struts.action.ActionForward; 27 import org.apache.struts.action.ActionMapping; 28 29 import com.sslexplorer.core.PopupException; 30 import com.sslexplorer.policyframework.Permission; 31 import com.sslexplorer.policyframework.ResourceType; 32 import com.sslexplorer.vfs.webdav.DAVAuthenticationRequiredException; 33 34 35 46 public abstract class AbstractPopupAuthenticatedDispatchAction extends AuthenticatedDispatchAction { 47 48 49 53 public AbstractPopupAuthenticatedDispatchAction() { 54 super(); 55 } 56 57 58 65 public AbstractPopupAuthenticatedDispatchAction(ResourceType resourceType, Permission[] permissions) { 66 super(resourceType, permissions); 67 } 68 69 77 public AbstractPopupAuthenticatedDispatchAction(ResourceType resourceType, Permission[] permissions, 78 ResourceType requiresResources) { 79 super(resourceType, permissions, requiresResources); 80 } 81 82 83 86 public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { 87 try { 88 return super.execute(mapping, form, request, response); 89 } 90 catch(DAVAuthenticationRequiredException dare) { 91 throw dare; 93 } 94 catch(Throwable t) { 95 throw new PopupException(t); 96 } 97 } 98 99 } 100 | Popular Tags |