1 18 package org.apache.beehive.netui.pageflow; 19 20 import javax.servlet.http.HttpServletResponse ; 21 import java.io.IOException ; 22 23 28 public class DoubleSubmitException 29 extends PageFlowException 30 implements ResponseErrorCodeSender 31 { 32 DoubleSubmitException( String actionName, FlowController fc ) 33 { 34 super( actionName, fc ); 35 } 36 37 protected Object [] getMessageArgs() 38 { 39 return new Object []{ getActionName(), getFlowControllerURI() }; 40 } 41 42 protected String [] getMessageParts() 43 { 44 return new String []{ "A double-submit occurred for action ", " in page flow ", "." }; 45 } 46 47 public void sendResponseErrorCode( HttpServletResponse response ) throws IOException 48 { 49 response.sendError( HttpServletResponse.SC_BAD_REQUEST, getLocalizedMessage() ); 50 } 51 52 56 public boolean causeMayBeSessionExpiration() 57 { 58 return true; 59 } 60 } 61 | Popular Tags |