Uses of Class
com.guinetik.rr.result.Result
-
Packages that use Result Package Description com.guinetik.rr com.guinetik.rr.api com.guinetik.rr.http com.guinetik.rr.result -
-
Uses of Result in com.guinetik.rr
Methods in com.guinetik.rr that return Result Modifier and Type Method Description <T> Result<T,ApiError>RocketRest.FluentApi. delete(String endpoint, Class<T> responseType)<Req,Res>
Result<Res,ApiError>RocketRest.FluentApi. execute(RequestSpec<Req,Res> requestSpec)<T> Result<T,ApiError>RocketRest.FluentApi. get(String endpoint, Class<T> responseType)<T> Result<T,ApiError>RocketRest.FluentApi. get(String endpoint, Class<T> responseType, Map<String,String> queryParams)<Res> Result<Res,ApiError>RocketRest.FluentApi. post(String endpoint, Class<Res> responseType)<Req,Res>
Result<Res,ApiError>RocketRest.FluentApi. post(String endpoint, Req body, Class<Res> responseType)<Res> Result<Res,ApiError>RocketRest.FluentApi. put(String endpoint, Class<Res> responseType)<Req,Res>
Result<Res,ApiError>RocketRest.FluentApi. put(String endpoint, Req body, Class<Res> responseType) -
Uses of Result in com.guinetik.rr.api
Methods in com.guinetik.rr.api that return Result Modifier and Type Method Description <Res> Result<Res,ApiError>FluentApiClient. delete(String endpoint, Class<Res> responseType)Performs a DELETE request using the Result pattern.<Res> Result<Res,ApiError>FluentApiClient. delete(String endpoint, Map<String,String> headers, Class<Res> responseType)Performs a DELETE request with headers using the Result pattern.<Req,Res>
Result<Res,ApiError>FluentApiClient. executeWithResult(RequestSpec<Req,Res> requestSpec)Executes a request and returns a Result object instead of throwing exceptions.<Res> Result<Res,ApiError>FluentApiClient. get(String endpoint, Class<Res> responseType)Performs a GET request using the Result pattern.<Res> Result<Res,ApiError>FluentApiClient. get(String endpoint, Map<String,String> headers, Class<Res> responseType)Performs a GET request with headers using the Result pattern.<Req,Res>
Result<Res,ApiError>FluentApiClient. post(String endpoint, Req body, Class<Res> responseType)Performs a POST request using the Result pattern.<Req,Res>
Result<Res,ApiError>FluentApiClient. post(String endpoint, Req body, Map<String,String> headers, Class<Res> responseType)Performs a POST request with headers using the Result pattern.<Req,Res>
Result<Res,ApiError>FluentApiClient. put(String endpoint, Req body, Class<Res> responseType)Performs a PUT request using the Result pattern.<Req,Res>
Result<Res,ApiError>FluentApiClient. put(String endpoint, Req body, Map<String,String> headers, Class<Res> responseType)Performs a PUT request with headers using the Result pattern. -
Uses of Result in com.guinetik.rr.http
Methods in com.guinetik.rr.http that return Result Modifier and Type Method Description <Req,Res>
Result<Res,ApiError>FluentHttpClient. executeWithResult(RequestSpec<Req,Res> requestSpec)Executes a request and returns a Result object containing either the response or an error. -
Uses of Result in com.guinetik.rr.result
Methods in com.guinetik.rr.result that return Result Modifier and Type Method Description static <T,E>
Result<T,E>Result. failure(E error)Creates a failed Result containing the given error.Result<T,E>Result. ifFailure(Consumer<? super E> consumer)Executes the given consumer if this Result is a failure.Result<T,E>Result. ifSuccess(Consumer<? super T> consumer)Executes the given consumer if this Result is a success.<U> Result<U,E>Result. map(Function<? super T,? extends U> mapper)Maps the value of this Result if it's a success, using the given mapping function.<F> Result<T,F>Result. mapError(Function<? super E,? extends F> mapper)Maps the error of this Result if it's a failure, using the given mapping function.Result<T,E>Result. match(Consumer<? super T> successConsumer, Consumer<? super E> errorConsumer)Pattern-matches over this Result, executing one of the consumers depending on success/failure.static <T,E>
Result<T,E>Result. success(T value)Creates a successful Result containing the given value.
-