Class SolrRequest<T extends SolrResponse>

    • Field Detail

      • SUPPORTED_METHODS

        public static final Set<String> SUPPORTED_METHODS
      • usev2

        protected boolean usev2
      • useBinaryV2

        protected boolean useBinaryV2
    • Method Detail

      • setUserPrincipal

        public void setUserPrincipal​(Principal userPrincipal)
      • getUserPrincipal

        public Principal getUserPrincipal()
      • setUseV2

        public SolrRequest setUseV2​(boolean flag)
        If set to true, every request that implements V2RequestSupport will be converted to a V2 API call
      • setUseBinaryV2

        public SolrRequest setUseBinaryV2​(boolean flag)
        If set to true use javabin instead of json (default)
      • getBasicAuthUser

        public String getBasicAuthUser()
      • getBasicAuthPassword

        public String getBasicAuthPassword()
      • getPath

        public String getPath()
      • setPath

        public void setPath​(String path)
      • 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
      • getQueryParams

        public Set<String> getQueryParams()
        Parameter keys that are sent via the query string
      • setQueryParams

        public void setQueryParams​(Set<String> queryParams)
      • getParams

        public abstract SolrParams getParams()
      • getContentWriter

        public RequestWriter.ContentWriter getContentWriter​(String expectedType)
        If a request object wants to do a push write, implement this method.
        Parameters:
        expectedType - This is the type that the RequestWriter would like to get. But, it is OK to send any format
      • createResponse

        protected abstract T createResponse​(SolrClient client)
        Create a new SolrResponse to hold the response from the server
        Parameters:
        client - the SolrClient the request will be sent to
      • getCollection

        public String getCollection()
      • setBasePath

        public void setBasePath​(String path)
      • getBasePath

        public String getBasePath()