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)
ContentStreamLoaderinit in class ContentStreamLoaderpublic String getDefaultWT()
getDefaultWT in class ContentStreamLoaderpublic void load(SolrQueryRequest req, SolrQueryResponse rsp, ContentStream stream, UpdateRequestProcessor processor) throws Exception
ContentStreamLoaderload in class ContentStreamLoaderreq - The input SolrQueryRequestrsp - The response, in case the Loader wishes to add anythingstream - The ContentStream to addprocessor - The UpdateRequestProcessor to useExceptionpublic SolrInputDocument readDoc(XMLStreamReader parser) throws XMLStreamException
XMLStreamExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.