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:
Yonik Seeley 2006-07-13 18:28:31 +00:00
parent 1c06c77393
commit 82084a765f
1 changed files with 7 additions and 1 deletions

View File

@ -61,13 +61,19 @@ public class OutputWriterTest extends AbstractSolrTestCase {
public static class UselessOutputWriter implements QueryResponseWriter {
public UselessOutputWriter() {}
public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response)
throws IOException {
writer.write(USELESS_OUTPUT);
}
public String getContentType(SolrQueryRequest request, SolrQueryResponse response) {
return CONTENT_TYPE_TEXT_UTF8;
}
}
}