Class V2Request.Builder
java.lang.Object
org.apache.solr.client.solrj.request.V2Request.Builder
- Enclosing class:
V2Request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()DELETE()forceV2(boolean flag) Only for testing.GET()POST()PUT()useBinary(boolean flag) withMimeType(String mimeType) withParams(SolrParams params) withPayload(Object payload) withPayload(String payload) Set payload for request.withResponseParser(ResponseParser parser)
-
Constructor Details
-
Builder
Create a Builder object based on the provided resource. The default method is GET.- Parameters:
resource- resource of the request for example "/collections" or "/cores/core-name"
-
-
Method Details
-
withMethod
-
POST
-
GET
-
PUT
-
DELETE
-
forceV2
Only for testing. It's always true otherwise -
withPayload
Set payload for request.- Parameters:
payload- as UTF-8 String- Returns:
- builder object
-
withPayload
-
withParams
-
useBinary
-
withResponseParser
-
withMimeType
-
build
-