public class AdvancedSearchAction extends DatabaseAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
CVS ID
|
protected boolean |
json
true if JSON output has been requested
|
logger
Constructor and Description |
---|
AdvancedSearchAction() |
Modifier and Type | Method and Description |
---|---|
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> |
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
|
getBasePath, getConnection
cancelled, dispatchMethod, execute, getMethod, getMethodName, getParameter, unspecified
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
public static final java.lang.String ID
protected boolean json
public void setJSON(boolean json)
json
- True for JSON outputpublic 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 java.lang.Exception
map
- form
- req
- res
- java.lang.Exception
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 java.lang.Exception
provider
- Search classmap
- Struts mappingform
- Inputreq
- HTTP requestres
- HTTP responsejava.lang.Exception
- search failedCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona