uk.ac.ebi.intact.application.predict.struts.framework
Class AbstractPredictAction

java.lang.Object
  |
  +--org.apache.struts.action.Action
        |
        +--uk.ac.ebi.intact.application.predict.struts.framework.AbstractPredictAction
Direct Known Subclasses:
PredictionAction, WelcomeAction

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

Super class for all the Predict action classes.

Version:
$Id: AbstractPredictAction.java,v 1.2 2003/12/10 14:29:39 smudali Exp $
Author:
Sugath Mudali (smudali@ebi.ac.uk)

Field Summary
protected static java.lang.String FAILURE
          The key to failure action.
protected static java.lang.String SUCCESS
          The key to success action.
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
AbstractPredictAction()
           
 
Method Summary
protected  PredictUser getPredictUser(javax.servlet.http.HttpServletRequest request)
          Returns the Intact User instance saved in a session for given Http request.
 
Methods inherited from class org.apache.struts.action.Action
execute, execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

protected static final java.lang.String SUCCESS
The key to success action.

See Also:
Constant Field Values

FAILURE

protected static final java.lang.String FAILURE
The key to failure action.

See Also:
Constant Field Values
Constructor Detail

AbstractPredictAction

public AbstractPredictAction()
Method Detail

getPredictUser

protected PredictUser getPredictUser(javax.servlet.http.HttpServletRequest request)
                              throws SessionExpiredException
Returns the Intact User instance saved in a session for given Http request.

Parameters:
request - the Http request to access the Predict user object.
Returns:
an instance of PredictUser stored in a session. No new session is created.
Throws:
SessionExpiredException - for an expired session.
 post: return <> Undefined
 


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk