Uses of Interface
net.ygbstudio.jbrave.api.response.ApiResponse
Packages that use ApiResponse
Package
Description
Public, fluent builders for constructing, configuring, and executing Brave Search API queries.
Sealed response model returned by the Brave Search API.
-
Uses of ApiResponse in net.ygbstudio.jbrave.api.builders
Classes in net.ygbstudio.jbrave.api.builders with type parameters of type ApiResponseModifier and TypeInterfaceDescriptioninterfaceBraveQueryBuilder<T,E extends ApiResponse> An interface for Brave API query builders, implemented by all builders that build Brave API queries.Methods in net.ygbstudio.jbrave.api.builders that return types with arguments of type ApiResponseModifier and TypeMethodDescriptiondefault Optional<ApiResponse> BraveQueryBuilder.getEitherPOJO()Converts the current response to a POJO instance of the builder's response typeEif the status code of the response is 200. -
Uses of ApiResponse in net.ygbstudio.jbrave.api.response
Classes in net.ygbstudio.jbrave.api.response that implement ApiResponseModifier and TypeClassDescriptionfinal recordError response object that the Brave Search API sends in case the client's request results in either 404, 422, or 429 http status codes.final recordRepresents the response from the Brave Search API for image searches.final recordRepresents the response from the Brave Search API for news searches.final recordRepresents the response from the Brave Search API for spell check.final recordRepresents the response from the Brave Search API for suggestions.final recordRepresents the response from the Brave Search API for video searches.final recordRepresents the top-level response from the Brave Search API.Methods in net.ygbstudio.jbrave.api.response with type parameters of type ApiResponseModifier and TypeMethodDescriptionstatic <T extends ApiResponse>
TDeserializes an API response from a JSON file.static <T extends ApiResponse>
TDeserializes an API response from a JSON reader.static <T extends ApiResponse>
TDeserializes an API response from a JSON string.static <T extends ApiResponse>
TApiResponse.from(@NotNull HttpResponse<String> dataResponse, Class<T> clazz) Deserializes an API response from the body of an HTTP response.