Package | Description |
---|---|
io.jooby |
Modifier and Type | Method and Description |
---|---|
static <T> Reified<CompletableFuture<T>> |
Reified.completableFuture(Type type)
Creates a
CompletableFuture type literal. |
static <T> Reified<T> |
Reified.get(Class<T> type)
Gets type literal for the given
Class instance. |
static Reified<?> |
Reified.get(Type type)
Gets type literal for the given
Type instance. |
static Reified<?> |
Reified.getParameterized(Type rawType,
Type... typeArguments)
Gets type literal for the parameterized type represented by applying
typeArguments to
rawType . |
static <T> Reified<List<T>> |
Reified.list(Type type)
Creates a
List type literal. |
static <K,V> Reified<Map<K,V>> |
Reified.map(Type key,
Type value)
Creates an
Map type literal. |
static <T> Reified<Optional<T>> |
Reified.optional(Type type)
Creates an
Optional type literal. |
static <T> Reified<Set<T>> |
Reified.set(Type type)
Creates a
Set type literal. |
Modifier and Type | Method and Description |
---|---|
<T> T |
ForwardingContext.body(Reified<T> type) |
default <T> T |
DefaultContext.body(Reified<T> type) |
<T> T |
Context.body(Reified<T> type)
Convert the HTTP body to the given type.
|
<T> T |
ForwardingContext.body(Reified<T> type,
MediaType contentType) |
default <T> T |
DefaultContext.body(Reified<T> type,
MediaType contentType) |
<T> T |
Context.body(Reified<T> type,
MediaType contentType)
Convert the HTTP body to the given type.
|
<T> T |
ForwardingContext.form(Reified<T> type) |
default <T> T |
DefaultContext.form(Reified<T> type) |
<T> T |
Context.form(Reified<T> type)
Convert formdata to the given type.
|
<T> T |
ForwardingContext.multipart(Reified<T> type) |
default <T> T |
DefaultContext.multipart(Reified<T> type) |
<T> T |
Context.multipart(Reified<T> type)
Convert multipart data to the given type.
|
<T> T |
ForwardingContext.path(Reified<T> type) |
default <T> T |
DefaultContext.path(Reified<T> type) |
<T> T |
Context.path(Reified<T> type)
Convert the
Context.pathMap() to the given type. |
<T> T |
ForwardingContext.query(Reified<T> type) |
default <T> T |
DefaultContext.query(Reified<T> type) |
<T> T |
Context.query(Reified<T> type)
Convert the queryString to the given type.
|
default <T> T |
Value.to(Reified<T> type)
Convert this value to the given type.
|
Copyright © 2019. All rights reserved.