pl.agh.iosr.ballamigos.webapp.actions
Class BallAmigosAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by pl.agh.iosr.ballamigos.webapp.actions.BallAmigosAction
Direct Known Subclasses:
ChooseMatchName, ChooseRoomAction, JoinAction, JoinGameAction, LogoutAction, NewGameAction, PlayAction, StatsAction, SubmitPlayerInfoAction

public class BallAmigosAction
extends org.apache.struts.action.Action


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
BallAmigosAction()
           
 
Method Summary
 void dealWithException(javax.servlet.http.HttpServletRequest request, java.lang.String str1, java.lang.String str2)
          Adds an action message named by str2.
 boolean playerLoggedIn(javax.servlet.http.HttpServletRequest request)
          Checks whether the user is logged in and sets a notLoggedInError if he/she isn't.
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BallAmigosAction

public BallAmigosAction()
Method Detail

playerLoggedIn

public boolean playerLoggedIn(javax.servlet.http.HttpServletRequest request)
Checks whether the user is logged in and sets a notLoggedInError if he/she isn't. This should result in redirecting to an error page asking the user to log into the system first.

Parameters:
request -
Returns:
answer to the question: is the player looged in?

dealWithException

public void dealWithException(javax.servlet.http.HttpServletRequest request,
                              java.lang.String str1,
                              java.lang.String str2)
Adds an action message named by str2.

Parameters:
request -
str1 -
str2 -


Copyright © 2006 . All Rights Reserved.