@Controller @RequestMapping(value="/search") public class SearchController extends Object implements org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
SearchController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
preflightCors(javax.servlet.http.HttpServletResponse response) |
org.springframework.http.ResponseEntity<SearchResult> |
search(SearchRequest request) |
void |
setSearchService(SearchService searchService) |
public static final String URI
@Autowired public void setSearchService(SearchService searchService)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException@RequestMapping(method=POST,
consumes="application/json",
produces="application/json")
@ResponseBody
public org.springframework.http.ResponseEntity<SearchResult> search(@RequestBody
SearchRequest request)
@RequestMapping(method=OPTIONS) public void preflightCors(javax.servlet.http.HttpServletResponse response)
Copyright © 2014. All Rights Reserved.