Class DelegatingJsonEndpoint<Req,Res,Err>
java.lang.Object
co.elastic.clients.transport.endpoints.DelegatingJsonEndpoint<Req,Res,Err>
- All Implemented Interfaces:
Endpoint<Req,
,Res, Err> JsonEndpoint<Req,
Res, Err>
- Direct Known Subclasses:
EndpointWithResponseMapperAttr
public class DelegatingJsonEndpoint<Req,Res,Err>
extends Object
implements JsonEndpoint<Req,Res,Err>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the body for a request.errorDeserializer
(int statusCode) The entity parser for the error response body.Get the HTTP headers for a request.id()
The endpoint's identifier.boolean
isError
(int statusCode) Is this status code to be considered as an error?Get the endpoint's HTTP method for a request.queryParameters
(Req request) Get the query parameters for a request.requestUrl
(Req request) Get the URL path for a request.The entity parser for the response body.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.transport.Endpoint
withBinaryResponse
-
Field Details
-
endpoint
-
-
Constructor Details
-
DelegatingJsonEndpoint
-
-
Method Details
-
id
Description copied from interface:Endpoint
The endpoint's identifier. -
method
Description copied from interface:Endpoint
Get the endpoint's HTTP method for a request. -
requestUrl
Description copied from interface:Endpoint
Get the URL path for a request.- Specified by:
requestUrl
in interfaceEndpoint<Req,
Res, Err>
-
queryParameters
Description copied from interface:Endpoint
Get the query parameters for a request.- Specified by:
queryParameters
in interfaceEndpoint<Req,
Res, Err>
-
headers
Description copied from interface:Endpoint
Get the HTTP headers for a request. -
body
Description copied from interface:Endpoint
Get the body for a request. The caller must handle several cases depending on the interface implemented by the result:null
means the request has no body.NdJsonpSerializable
must be serialized as nd-json.BinaryData
must be serialized as is.- All other objects must be serialized as JSON using a
JsonpMapper
-
responseDeserializer
Description copied from interface:JsonEndpoint
The entity parser for the response body.- Specified by:
responseDeserializer
in interfaceJsonEndpoint<Req,
Res, Err>
-
isError
public boolean isError(int statusCode) Description copied from interface:Endpoint
Is this status code to be considered as an error? -
errorDeserializer
Description copied from interface:Endpoint
The entity parser for the error response body. Can benull
to indicate that there's no error body.- Specified by:
errorDeserializer
in interfaceEndpoint<Req,
Res, Err>
-