class XsltXMLLoader extends XMLLoader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_TRANSFORMER_KEY |
static java.lang.String |
TRANSFORM_PARAM |
private java.lang.Integer |
xsltCacheLifetimeSeconds |
inputFactory, processor
errHeader
Constructor and Description |
---|
XsltXMLLoader(UpdateRequestProcessor processor,
javax.xml.stream.XMLInputFactory inputFactory,
java.lang.Integer xsltCacheLifetimeSeconds) |
Modifier and Type | Method and Description |
---|---|
protected javax.xml.transform.Transformer |
getTransformer(SolrQueryRequest request)
Get Transformer from request context, or from TransformerProvider.
|
void |
load(SolrQueryRequest req,
SolrQueryResponse rsp,
ContentStream stream)
Loaders are responsible for closing the stream
|
processDelete, processDelete, processUpdate, processUpdate, readDoc
getErrHeader, setErrHeader
public static final java.lang.String TRANSFORM_PARAM
public static final java.lang.String CONTEXT_TRANSFORMER_KEY
private final java.lang.Integer xsltCacheLifetimeSeconds
public XsltXMLLoader(UpdateRequestProcessor processor, javax.xml.stream.XMLInputFactory inputFactory, java.lang.Integer xsltCacheLifetimeSeconds)
public void load(SolrQueryRequest req, SolrQueryResponse rsp, ContentStream stream) throws java.lang.Exception
ContentStreamLoader
load
in class XMLLoader
req
- The input SolrQueryRequest
rsp
- The response, in case the Loader wishes to add anythingstream
- The ContentStream
to addjava.lang.Exception
protected javax.xml.transform.Transformer getTransformer(SolrQueryRequest request) throws java.io.IOException
java.io.IOException