Class DelegatingJsonEndpoint<Req,Res,Err>
java.lang.Object
org.opensearch.client.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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerrorDeserializer(int statusCode) The entity parser for the error response body.booleanGet the HTTP headers for a request.booleanisError(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, waitMethods inherited from interface org.opensearch.client.transport.Endpoint
exceptionConverter
-
Field Details
-
endpoint
-
-
Constructor Details
-
DelegatingJsonEndpoint
-
-
Method Details
-
method
Description copied from interface:EndpointGet the endpoint's HTTP method for a request. -
requestUrl
Description copied from interface:EndpointGet the URL path for a request.- Specified by:
requestUrlin interfaceEndpoint<Req,Res, Err>
-
queryParameters
Description copied from interface:EndpointGet the query parameters for a request.- Specified by:
queryParametersin interfaceEndpoint<Req,Res, Err>
-
headers
Description copied from interface:EndpointGet the HTTP headers for a request. -
hasRequestBody
public boolean hasRequestBody()- Specified by:
hasRequestBodyin interfaceEndpoint<Req,Res, Err>
-
responseDeserializer
Description copied from interface:JsonEndpointThe entity parser for the response body.- Specified by:
responseDeserializerin interfaceJsonEndpoint<Req,Res, Err>
-
isError
public boolean isError(int statusCode) Description copied from interface:EndpointIs this status code to be considered as an error? -
errorDeserializer
Description copied from interface:EndpointThe entity parser for the error response body. Can benullto indicate that there's no error body.- Specified by:
errorDeserializerin interfaceEndpoint<Req,Res, Err>
-