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 parameters
-
Constructor Details
-
StreamingRequest
-
-
Method Details
-
getEndpoint
-
getMethod
-
getOptions
-
getParameters
-
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
-