Package org.intermine.web.struts
Class QueryClassSelectAction
- java.lang.Object
-
- org.apache.struts.action.Action
-
- org.intermine.web.struts.InterMineAction
-
- org.intermine.web.struts.QueryClassSelectAction
-
public class QueryClassSelectAction extends InterMineAction
Implementation of Action that processes QueryClass selection form.- Author:
- Richard Smith, Mark Woodbridge
-
-
Constructor Summary
Constructors Constructor Description QueryClassSelectAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.struts.action.ActionForward
execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Add a QueryClass of a specified type to the current query.static void
newQuery(java.lang.String className, javax.servlet.http.HttpSession session)
Add a new query, based on the specified class, to the session.-
Methods inherited from class org.intermine.web.struts.InterMineAction
getWebProperties, recordError, recordError, recordError, recordMessage
-
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
-
-
-
Method Detail
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
Add a QueryClass of a specified type to the current query. Return anActionForward
instance describing where and how control should be forwarded, ornull
if the response has already been completed.- Overrides:
execute
in classorg.apache.struts.action.Action
- Parameters:
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating- Returns:
- an ActionForward object defining where control goes next
- Throws:
java.lang.Exception
- if the application business logic throws an exception
-
newQuery
public static void newQuery(java.lang.String className, javax.servlet.http.HttpSession session)
Add a new query, based on the specified class, to the session.- Parameters:
className
- the name of the starting classsession
- the session
-
-