org.molgenis.search
Class SearchController

java.lang.Object
  extended by 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

Field Summary
static String URI
           
 
Constructor Summary
SearchController()
           
 
Method Summary
 void afterPropertiesSet()
           
 void preflightCors(javax.servlet.http.HttpServletResponse response)
           
 org.springframework.http.ResponseEntity<SearchResult> search(SearchRequest request)
           
 void setSearchService(SearchService searchService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI

public static final String URI
See Also:
Constant Field Values
Constructor Detail

SearchController

public SearchController()
Method Detail

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.