org.apache.solr.client.solrj
Class SolrRequest
java.lang.Object
org.apache.solr.client.solrj.SolrRequest
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AbstractUpdateRequest, CoreAdminRequest, DirectXmlRequest, DocumentAnalysisRequest, FieldAnalysisRequest, LukeRequest, QueryRequest, SolrPing
public abstract class SolrRequest
- extends Object
- implements Serializable
- Since:
- solr 1.3
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolrRequest
public SolrRequest(SolrRequest.METHOD m,
String path)
getMethod
public SolrRequest.METHOD getMethod()
setMethod
public void setMethod(SolrRequest.METHOD method)
getPath
public String getPath()
setPath
public void setPath(String path)
getResponseParser
public ResponseParser getResponseParser()
- Returns:
- The
ResponseParser
setResponseParser
public void setResponseParser(ResponseParser responseParser)
- Optionally specify how the Response should be parsed. Not all server implementations require a ResponseParser
to be specified.
- Parameters:
responseParser
- The ResponseParser
getStreamingResponseCallback
public StreamingResponseCallback getStreamingResponseCallback()
setStreamingResponseCallback
public void setStreamingResponseCallback(StreamingResponseCallback callback)
getParams
public abstract SolrParams getParams()
getContentStreams
public abstract Collection<ContentStream> getContentStreams()
throws IOException
- Throws:
IOException
process
public abstract SolrResponse process(SolrServer server)
throws SolrServerException,
IOException
- Throws:
SolrServerException
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.