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 |
useBinary(boolean flag) |
V2Request.Builder |
withMethod(SolrRequest.METHOD m) |
V2Request.Builder |
withParams(SolrParams params) |
V2Request.Builder |
withPayload(InputStream payload) |
V2Request.Builder |
withPayload(Object payload) |
V2Request.Builder |
withPayload(String payload)
Set payload for request.
|
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 withPayload(String payload)
payload
- as UTF-8 Stringpublic V2Request.Builder withPayload(Object payload)
public V2Request.Builder withPayload(InputStream payload)
public V2Request.Builder withParams(SolrParams params)
public V2Request.Builder useBinary(boolean flag)
public V2Request build()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.