1 18 package org.apache.beehive.netui.pageflow; 19 20 import javax.servlet.http.HttpServletResponse ; 21 import java.io.IOException ; 22 23 24 40 public class NotLoggedInException 41 extends PageFlowException 42 implements ResponseErrorCodeSender 43 { 44 public NotLoggedInException( String actionName, FlowController fc ) 45 { 46 super( actionName, fc ); 47 } 48 49 protected Object [] getMessageArgs() 50 { 51 return new Object []{ getActionName(), getFlowControllerURI() }; 52 } 53 54 public String [] getMessageParts() 55 { 56 return new String [] 57 { 58 "Action ", " on page flow ", " requires a current user, but there is no logged-in user." 59 }; 60 } 61 62 public void sendResponseErrorCode( HttpServletResponse response ) throws IOException 63 { 64 response.sendError( HttpServletResponse.SC_BAD_REQUEST, getLocalizedMessage() ); 65 } 66 67 71 public boolean causeMayBeSessionExpiration() 72 { 73 return true; 74 } 75 } 76 | Popular Tags |