public class GenericSolrRequest extends SolrRequest<SimpleSolrResponse>
SolrRequest.METHOD
Modifier and Type | Field and Description |
---|---|
RequestWriter.ContentWriter |
contentWriter |
SolrParams |
params |
SimpleSolrResponse |
response |
SUPPORTED_METHODS, useBinaryV2, usev2
Constructor and Description |
---|
GenericSolrRequest(SolrRequest.METHOD m,
String path,
SolrParams params) |
Modifier and Type | Method and Description |
---|---|
protected SimpleSolrResponse |
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the server
|
RequestWriter.ContentWriter |
getContentWriter(String expectedType)
If a request object wants to do a push write, implement this method.
|
SolrParams |
getParams() |
GenericSolrRequest |
setContentWriter(RequestWriter.ContentWriter contentWriter) |
getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
public SolrParams params
public SimpleSolrResponse response
public RequestWriter.ContentWriter contentWriter
public GenericSolrRequest(SolrRequest.METHOD m, String path, SolrParams params)
public GenericSolrRequest setContentWriter(RequestWriter.ContentWriter contentWriter)
public RequestWriter.ContentWriter getContentWriter(String expectedType)
SolrRequest
getContentWriter
in class SolrRequest<SimpleSolrResponse>
expectedType
- This is the type that the RequestWriter would like to get. But, it is OK to send any formatpublic SolrParams getParams()
getParams
in class SolrRequest<SimpleSolrResponse>
protected SimpleSolrResponse createResponse(SolrClient client)
SolrRequest
createResponse
in class SolrRequest<SimpleSolrResponse>
client
- the SolrClient
the request will be sent toCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.