org.apache.solr.handler
Class ContentStreamLoader

java.lang.Object
  extended by org.apache.solr.handler.ContentStreamLoader

public abstract class ContentStreamLoader
extends Object

Load a ContentStream into Solr


Field Summary
protected  String errHeader
           
 
Constructor Summary
ContentStreamLoader()
           
 
Method Summary
 String getErrHeader()
           
abstract  void load(SolrQueryRequest req, SolrQueryResponse rsp, ContentStream stream)
          Loaders are responsible for closing the stream
 void setErrHeader(String errHeader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errHeader

protected String errHeader
Constructor Detail

ContentStreamLoader

public ContentStreamLoader()
Method Detail

getErrHeader

public String getErrHeader()

setErrHeader

public void setErrHeader(String errHeader)

load

public abstract void load(SolrQueryRequest req,
                          SolrQueryResponse rsp,
                          ContentStream stream)
                   throws Exception
Loaders are responsible for closing the stream

Parameters:
req - The input SolrQueryRequest
rsp - The response, in case the Loader wishes to add anything
stream - The ContentStream to add
Throws:
Exception


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.