Constructor and Description |
---|
Builder(String resource)
Create a Builder object based on the provided resource.
|
Modifier and Type | Method and Description |
---|---|
V2Request |
build() |
V2Request.Builder |
forceV2(boolean flag)
Only for testing.
|
V2Request.Builder |
useBinary(boolean flag) |
V2Request.Builder |
withMethod(SolrRequest.METHOD m) |
V2Request.Builder |
withMimeType(String mimeType) |
V2Request.Builder |
withParams(SolrParams params) |
V2Request.Builder |
withPayload(Object payload) |
V2Request.Builder |
withPayload(String payload)
Set payload for request.
|
V2Request.Builder |
withResponseParser(ResponseParser parser) |
public Builder(String resource)
resource
- resource of the request for example "/collections" or "/cores/core-name"public V2Request.Builder withMethod(SolrRequest.METHOD m)
public V2Request.Builder forceV2(boolean flag)
public V2Request.Builder withPayload(String payload)
payload
- as UTF-8 Stringpublic V2Request.Builder withPayload(Object payload)
public V2Request.Builder withParams(SolrParams params)
public V2Request.Builder useBinary(boolean flag)
public V2Request.Builder withResponseParser(ResponseParser parser)
public V2Request.Builder withMimeType(String mimeType)
public V2Request build()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.