mirror of https://github.com/apache/lucene.git
get content-type from request writer
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@421680 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1c06c77393
commit
82084a765f
|
@ -61,13 +61,19 @@ public class OutputWriterTest extends AbstractSolrTestCase {
|
||||||
public static class UselessOutputWriter implements QueryResponseWriter {
|
public static class UselessOutputWriter implements QueryResponseWriter {
|
||||||
|
|
||||||
public UselessOutputWriter() {}
|
public UselessOutputWriter() {}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response)
|
public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
writer.write(USELESS_OUTPUT);
|
writer.write(USELESS_OUTPUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getContentType(SolrQueryRequest request, SolrQueryResponse response) {
|
||||||
|
return CONTENT_TYPE_TEXT_UTF8;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue