Class StreamingRequest<T>
java.lang.Object
org.opensearch.client.StreamingRequest<T>
HTTP Streaming Request to OpenSearch. This is an experimental API.
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingRequest(String method, String endpoint, org.reactivestreams.Publisher<T> publisher) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String name, String value) Add a query string parameter.voidaddParameters(Map<String, String> paramSource) Add query parameters using the provided map of key value pairs.org.reactivestreams.Publisher<T> getBody()Body publisherGet endpointGet methodGet optionsGet parametersvoidsetOptions(RequestOptions options) Set the portion of an HTTP request to OpenSearch that can be manipulated without changing OpenSearch's behavior.voidsetOptions(RequestOptions.Builder options) Set the portion of an HTTP request to OpenSearch that can be manipulated without changing OpenSearch's behavior.
-
Constructor Details
-
StreamingRequest
-
-
Method Details
-
getEndpoint
-
getMethod
-
getOptions
-
getParameters
-
setOptions
Set the portion of an HTTP request to OpenSearch that can be manipulated without changing OpenSearch's behavior.- Parameters:
options- the options to be set.- Throws:
NullPointerException- ifoptionsis null.
-
setOptions
Set the portion of an HTTP request to OpenSearch that can be manipulated without changing OpenSearch's behavior.- Parameters:
options- the options to be set.- Throws:
NullPointerException- ifoptionsis null.
-
addParameter
Add a query string parameter.- Parameters:
name- the name of the url parameter. Must not be null.value- the value of the url url parameter. Ifnullthen the parameter is sent asnamerather thanname=value- Throws:
IllegalArgumentException- if a parameter with that name has already been set
-
addParameters
Add query parameters using the provided map of key value pairs.- Parameters:
paramSource- a map of key value pairs where the key is the url parameter.- Throws:
IllegalArgumentException- if a parameter with that name has already been set.
-
getBody
-