1 18 package org.apache.beehive.netui.pageflow.internal; 19 20 import org.apache.beehive.netui.pageflow.PageFlowException; 21 import org.apache.beehive.netui.pageflow.Forward; 22 import org.apache.beehive.netui.pageflow.FlowController; 23 24 public abstract class ReturnToException extends PageFlowException 25 { 26 private String _returnToType; 27 28 29 public ReturnToException( String actionName, Forward fwd, FlowController fc ) 30 { 31 super( actionName, fc ); 32 _returnToType = fwd.getReturnToTypeAsString(); 33 } 34 35 public String getReturnToType() 36 { 37 return _returnToType; 38 } 39 40 protected Object [] getMessageArgs() 41 { 42 return new Object []{ _returnToType, getActionName(), getFlowControllerURI() }; 43 } 44 45 protected abstract String [] getMessageParts(); 46 47 51 public boolean causeMayBeSessionExpiration() 52 { 53 return true; 54 } 55 } 56 | Popular Tags |