public class ApiUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<Collection<?>,javax.ws.rs.core.Response> |
MAP_COLLECTION |
static com.google.common.base.Function<Map<?,?>,javax.ws.rs.core.Response> |
MAP_MAP |
static com.google.common.base.Function<Optional<?>,javax.ws.rs.core.Response> |
MAP_VALUE |
static com.google.common.base.Function<Void,javax.ws.rs.core.Response> |
MAP_VOID |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.util.concurrent.ListenableFuture<javax.ws.rs.core.Response> |
badRequest(ApiError error) |
static com.google.common.util.concurrent.ListenableFuture<javax.ws.rs.core.Response> |
emptyPayload() |
static void |
executeAsync(javax.ws.rs.container.AsyncResponse asyncResponse,
Supplier<com.google.common.util.concurrent.ListenableFuture<javax.ws.rs.core.Response>> supplier) |
static javax.ws.rs.core.Response |
noContent() |
public static final com.google.common.base.Function<Void,javax.ws.rs.core.Response> MAP_VOID
public static final com.google.common.base.Function<Optional<?>,javax.ws.rs.core.Response> MAP_VALUE
public static final com.google.common.base.Function<Collection<?>,javax.ws.rs.core.Response> MAP_COLLECTION
public static final com.google.common.base.Function<Map<?,?>,javax.ws.rs.core.Response> MAP_MAP
public static javax.ws.rs.core.Response noContent()
public static com.google.common.util.concurrent.ListenableFuture<javax.ws.rs.core.Response> emptyPayload()
public static com.google.common.util.concurrent.ListenableFuture<javax.ws.rs.core.Response> badRequest(ApiError error)
public static void executeAsync(javax.ws.rs.container.AsyncResponse asyncResponse,
Supplier<com.google.common.util.concurrent.ListenableFuture<javax.ws.rs.core.Response>> supplier)
Copyright © 2014–2015 Red Hat, Inc.. All rights reserved.