org.molgenis.search
Class SearchController
java.lang.Object
org.molgenis.search.SearchController
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
@Controller
@RequestMapping(value="/search")
public class SearchController
- extends Object
- implements org.springframework.beans.factory.InitializingBean
Controller wrapper for the SearchService.
- Author:
- erwin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URI
public static final String URI
- See Also:
- Constant Field Values
SearchController
public SearchController()
setSearchService
@Autowired
public void setSearchService(SearchService searchService)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
search
@RequestMapping(method=POST,
consumes="application/json",
produces="application/json")
@ResponseBody
public org.springframework.http.ResponseEntity<SearchResult> search(@RequestBody
SearchRequest request)
preflightCors
@RequestMapping(method=OPTIONS)
public void preflightCors(javax.servlet.http.HttpServletResponse response)
Copyright © 2013. All Rights Reserved.