public abstract class SolrRequest<T extends SolrResponse> extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SolrRequest.METHOD |
Constructor and Description |
---|
SolrRequest(SolrRequest.METHOD m,
String path) |
public SolrRequest(SolrRequest.METHOD m, String path)
public SolrRequest setBasicAuthCredentials(String user, String password)
public String getBasicAuthUser()
public String getBasicAuthPassword()
public SolrRequest.METHOD getMethod()
public void setMethod(SolrRequest.METHOD method)
public String getPath()
public void setPath(String path)
public ResponseParser getResponseParser()
ResponseParser
public void setResponseParser(ResponseParser responseParser)
responseParser
- The ResponseParser
public StreamingResponseCallback getStreamingResponseCallback()
public void setStreamingResponseCallback(StreamingResponseCallback callback)
public Set<String> getQueryParams()
public abstract SolrParams getParams()
public abstract Collection<ContentStream> getContentStreams() throws IOException
IOException
protected abstract T createResponse(SolrClient client)
client
- the SolrClient
the request will be sent topublic final T process(SolrClient client, String collection) throws SolrServerException, IOException
SolrClient
and return the responseclient
- the SolrClient to communicate withcollection
- the collection to execute the request againstSolrServerException
- if there is an error on the Solr serverIOException
- if there is a communication errorpublic final T process(SolrClient client) throws SolrServerException, IOException
SolrClient
and return the responseclient
- the SolrClient to communicate withSolrServerException
- if there is an error on the Solr serverIOException
- if there is a communication errorCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.