Uses of Interface
com.networknt.http.client.monad.Result
-
Packages that use Result Package Description com.networknt.http.client com.networknt.http.client.monad com.networknt.http.client.oauth -
-
Uses of Result in com.networknt.http.client
Methods in com.networknt.http.client that return Result Modifier and Type Method Description ResultHttpClientRequest. addCcToken(HttpRequest.Builder builder)Add Client Credentials token cached in the client for standalone applicationResultHttpClientRequest. populateHeader(HttpRequest.Builder builder, String authToken)Support API to API calls with scope token. -
Uses of Result in com.networknt.http.client.monad
Classes in com.networknt.http.client.monad that implement Result Modifier and Type Class Description classFailure<T>classSuccess<T>Fields in com.networknt.http.client.monad declared as Result Modifier and Type Field Description static ResultSuccess. OPTIONAL_SUCCESSstatic Result<Void>Success. SUCCESSMethods in com.networknt.http.client.monad that return Result Modifier and Type Method Description default <R> Result<R>Result. flatMap(Function<? super T,Result<R>> mapper)default Result<T>Result. ifFailure(Consumer<Failure<T>> failureConsumer)default Result<T>Result. ifSuccess(Consumer<? super T> successConsumer)default <R,Z>
Result<Z>Result. lift(Result<R> other, BiFunction<? super T,? super R,? extends Z> function)default <R> Result<R>Result. map(Function<? super T,? extends R> mapper)static <T> Result<T>Failure. of(Status error)static <T> Result<T>Success. of(T result)static <T> Result<Optional<T>>Success. ofOptional(T result)Methods in com.networknt.http.client.monad with parameters of type Result Modifier and Type Method Description default <R,Z>
Result<Z>Result. lift(Result<R> other, BiFunction<? super T,? super R,? extends Z> function)Method parameters in com.networknt.http.client.monad with type arguments of type Result Modifier and Type Method Description default <R> Result<R>Result. flatMap(Function<? super T,Result<R>> mapper) -
Uses of Result in com.networknt.http.client.oauth
Methods in com.networknt.http.client.oauth that return Result Modifier and Type Method Description Result<Jwt>TokenManager. getJwt()Result<Jwt>TokenManager. getJwt(Jwt.Key key)get a Jwt with a provided Key (Key is either scope or a service id inputted by user, for caching usage): 1.if a token is cached with provided key - if the token is expired, renew it right away.Result<Jwt>TokenManager. getJwt(Set<String> scopeSet, String serviceId)get a Jwt with a provided clientRequest, it will get token based on Jwt.Key (either scope or service_id) if the user declared both scope and service_id in header, it will get jwt based on scopestatic Result<TokenResponse>OauthHelper. getSignResult(SignRequest signRequest)Get a signed JWT token from token service to ensure that nobody can modify the payload when the token is passed from service to service.static Result<TokenResponse>OauthHelper. getSignResult(SignRequest signRequest, String envTag)Get a signed JWT token from token service to ensure that nobody can modify the payload when the token is passed from service to service.static Result<TokenResponse>OauthHelper. getTokenFromSamlResult(SAMLBearerRequest tokenRequest)Get an access token from the token service based on a SAML token request.static Result<TokenResponse>OauthHelper. getTokenFromSamlResult(SAMLBearerRequest tokenRequest, String envTag)Get an access token from the token service based on a SAML token request.static Result<TokenResponse>OauthHelper. getTokenResult(TokenRequest tokenRequest)Get an access token from the token service.static Result<TokenResponse>OauthHelper. getTokenResult(TokenRequest tokenRequest, String envTag)Get an access token from the token service.static Result<Jwt>OauthHelper. populateCCToken(Jwt jwt)populate/renew jwt info to the give jwt object.
-