HiRISE

HiRISE.HiReport.main
Class AdvancedSearchAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.actions.BaseAction
          extended by org.apache.struts.actions.DispatchAction
              extended by HiRISE.HiReport.DatabaseAction
                  extended by HiRISE.HiReport.main.AdvancedSearchAction
Direct Known Subclasses:
CtxSearchAction, ObservationSearchAction, PublicCtxSearchAction, PublicObservationSearchAction, PublicSuggestionSearchAction, SuggestionSearchAction

public class AdvancedSearchAction
extends DatabaseAction

Action for an observation listing.


Field Summary
static String ID
          CVS ID
protected  boolean json
          true if JSON output has been requested
 
Fields inherited from class HiRISE.HiReport.DatabaseAction
logger
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, methods, types
 
Fields inherited from class org.apache.struts.actions.BaseAction
messages
 
Fields inherited from class org.apache.struts.action.Action
servlet
 
Constructor Summary
AdvancedSearchAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward json(org.apache.struts.action.ActionMapping map, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Return response as JSON.
<F extends OrbitCycleForm>
org.apache.struts.action.ActionForward
search(AdvancedSearch<F> provider, org.apache.struts.action.ActionMapping map, F form, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handle a request
 void setJSON(boolean json)
          For JSON output, pass true
 
Methods inherited from class HiRISE.HiReport.DatabaseAction
getBasePath, getConnection
 
Methods inherited from class org.apache.struts.actions.DispatchAction
cancelled, dispatchMethod, execute, getMethod, getMethodName, getParameter, unspecified
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

json

protected boolean json
true if JSON output has been requested

Constructor Detail

AdvancedSearchAction

public AdvancedSearchAction()
Method Detail

setJSON

public void setJSON(boolean json)
For JSON output, pass true

Parameters:
json - True for JSON output

json

public org.apache.struts.action.ActionForward json(org.apache.struts.action.ActionMapping map,
                                                   org.apache.struts.action.ActionForm form,
                                                   javax.servlet.http.HttpServletRequest req,
                                                   javax.servlet.http.HttpServletResponse res)
                                            throws Exception
Return response as JSON.

Parameters:
map -
form -
req -
res -
Returns:
null (indicates output has been handled internally, nothing to forward to)
Throws:
Exception

search

public <F extends OrbitCycleForm> org.apache.struts.action.ActionForward search(AdvancedSearch<F> provider,
                                                                                org.apache.struts.action.ActionMapping map,
                                                                                F form,
                                                                                javax.servlet.http.HttpServletRequest req,
                                                                                javax.servlet.http.HttpServletResponse res)
                                              throws Exception
Handle a request

Parameters:
provider - Search class
map - Struts mapping
form - Input
req - HTTP request
res - HTTP response
Returns:
Struts forward
Throws:
Exception - search failed

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona