public class XMLLoader extends ContentStreamLoader
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_TRANSFORMER_KEY |
static org.slf4j.Logger |
log |
static int |
XSLT_CACHE_DEFAULT |
Constructor and Description |
---|
XMLLoader() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultWT() |
XMLLoader |
init(SolrParams args)
This should be called once for each RequestHandler
|
void |
load(SolrQueryRequest req,
SolrQueryResponse rsp,
ContentStream stream,
UpdateRequestProcessor processor)
Loaders are responsible for closing the stream
|
SolrInputDocument |
readDoc(XMLStreamReader parser)
Given the input stream, read a document
|
public static org.slf4j.Logger log
public static final String CONTEXT_TRANSFORMER_KEY
public static final int XSLT_CACHE_DEFAULT
public XMLLoader init(SolrParams args)
ContentStreamLoader
init
in class ContentStreamLoader
public String getDefaultWT()
getDefaultWT
in class ContentStreamLoader
public void load(SolrQueryRequest req, SolrQueryResponse rsp, ContentStream stream, UpdateRequestProcessor processor) throws Exception
ContentStreamLoader
load
in class ContentStreamLoader
req
- The input SolrQueryRequest
rsp
- The response, in case the Loader wishes to add anythingstream
- The ContentStream
to addprocessor
- The UpdateRequestProcessor
to useException
public SolrInputDocument readDoc(XMLStreamReader parser) throws XMLStreamException
XMLStreamException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.