public final class ClientUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static UserSession |
authenticate(java.net.URI baseUri,
java.lang.String login,
java.lang.String password) |
static void |
checkOk(javax.ws.rs.core.Response response) |
static javax.ws.rs.client.Client |
createClient() |
static <T> T |
readEntityIfOk(javax.ws.rs.core.Response response,
java.lang.Class<T> entityType) |
static <T> T |
readEntityIfOk(javax.ws.rs.core.Response response,
javax.ws.rs.core.GenericType<T> entityType) |
static <T> java.util.Optional<T> |
readOptionalEntityIfOk(javax.ws.rs.core.Response response,
java.lang.Class<T> entityType) |
public static javax.ws.rs.client.Client createClient()
public static void checkOk(javax.ws.rs.core.Response response)
public static <T> T readEntityIfOk(javax.ws.rs.core.Response response, java.lang.Class<T> entityType)
public static <T> T readEntityIfOk(javax.ws.rs.core.Response response, javax.ws.rs.core.GenericType<T> entityType)
public static <T> java.util.Optional<T> readOptionalEntityIfOk(javax.ws.rs.core.Response response, java.lang.Class<T> entityType)
public static UserSession authenticate(java.net.URI baseUri, java.lang.String login, java.lang.String password)
Copyright © 2019. All rights reserved.