|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.solrgeonames.server.JsonDetailResponse
public class JsonDetailResponse
A Response wrapper to rendering output for the 'detail' function.
| Constructor Summary | |
|---|---|
JsonDetailResponse()
|
|
| Method Summary | |
|---|---|
String |
contentType()
Get the content type to return to users for this response |
void |
init(javax.servlet.http.HttpServletRequest request)
An initialisation function giving access to the HTTP input. |
String |
renderEmptyResponse()
Render a response indicated no results were returned |
String |
renderError(String message)
Render an error message response |
String |
renderResponse(org.apache.solr.client.solrj.response.QueryResponse results)
Render a valid response to a search result list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonDetailResponse()
| Method Detail |
|---|
public void init(javax.servlet.http.HttpServletRequest request)
init in interface OpenSearchResponserequest: - The incoming HTTP requestpublic String renderResponse(org.apache.solr.client.solrj.response.QueryResponse results)
renderResponse in interface OpenSearchResponseresults: - The results list to render
public String renderEmptyResponse()
renderEmptyResponse in interface OpenSearchResponsepublic String renderError(String message)
renderError in interface OpenSearchResponseString: - The message to include in the response
public String contentType()
contentType in interface OpenSearchResponse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||