@Controller @EnableAspectJAutoProxy public class SearchRequestController extends Object
| Constructor and Description |
|---|
SearchRequestController() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkMultipleLowerCaseValues(String parameterName,
String[] parameterValues,
HashSet<String> allowedValues) |
static void |
checkMultipleValues(String parameterName,
String[] parameterValues,
HashSet<String> allowedValues) |
static void |
checkResultsSortParameter(javax.servlet.http.HttpServletRequest request,
boolean isResult) |
void |
init() |
org.springframework.http.ResponseEntity<Error> |
invalidInput(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse httpServletResponse,
Exception ex) |
String |
printOpenSearchDescriptor(org.springframework.ui.ModelMap model) |
int |
readParameter(javax.servlet.http.HttpServletRequest request,
String parameterName,
int defaultValue) |
void |
search(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
searchData(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
searchOther(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
searchProjects(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
searchPublications(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
searchResults(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
searchSoftware(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
@PostConstruct public void init()
@RequestMapping(value="/search",
method=GET)
public void search(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
@RequestMapping(value="/search/openSearchDescriptor",
method=GET)
public String printOpenSearchDescriptor(org.springframework.ui.ModelMap model)
@RequestMapping(value="/api/researchProducts",
method=GET,
produces={"application/xml","application/json"})
public void searchResults(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="/api/publications",
method=GET,
produces={"application/xml","application/json"})
public void searchPublications(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="/api/datasets",
method=GET,
produces={"application/xml","application/json"})
public void searchData(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="/api/software",
method=GET,
produces={"application/xml","application/json"})
public void searchSoftware(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="/api/other",
method=GET,
produces={"application/xml","application/json"})
public void searchOther(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="/api/projects",
method=GET,
produces={"application/xml","application/json"})
public void searchProjects(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@ExceptionHandler(value=java.lang.IllegalArgumentException.class) @ResponseBody public org.springframework.http.ResponseEntity<Error> invalidInput(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse httpServletResponse, Exception ex)
public int readParameter(javax.servlet.http.HttpServletRequest request,
String parameterName,
int defaultValue)
public static void checkMultipleValues(String parameterName, String[] parameterValues, HashSet<String> allowedValues)
public static void checkMultipleLowerCaseValues(String parameterName, String[] parameterValues, HashSet<String> allowedValues)
public static void checkResultsSortParameter(javax.servlet.http.HttpServletRequest request,
boolean isResult)
Copyright © 2025. All rights reserved.