mirror of https://github.com/apache/lucene.git
use getDocBuilder()
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@888272 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c6073f5b9
commit
414532ac94
|
@ -44,7 +44,7 @@ public class BinContentStreamDataSource extends DataSource<InputStream> {
|
|||
}
|
||||
|
||||
public InputStream getData(String query) {
|
||||
contentStream = context.docBuilder.requestParameters.contentStream;
|
||||
contentStream = context.getDocBuilder().requestParameters.contentStream;
|
||||
if (contentStream == null)
|
||||
throw new DataImportHandlerException(SEVERE, "No stream available. The request has no body");
|
||||
try {
|
||||
|
|
|
@ -44,7 +44,7 @@ public class ContentStreamDataSource extends DataSource<Reader> {
|
|||
}
|
||||
|
||||
public Reader getData(String query) {
|
||||
contentStream = context.docBuilder.requestParameters.contentStream;
|
||||
contentStream = context.getDocBuilder().requestParameters.contentStream;
|
||||
if (contentStream == null)
|
||||
throw new DataImportHandlerException(SEVERE, "No stream available. The request has no body");
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue