public interface RestConversionFunction<F,T extends AbstractRestModel>
Modifier and Type | Method and Description |
---|---|
T |
apply(F input,
Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo)
Transforms a domain object to a
AbstractRestModel . |
default Function<F,T> |
toFunction(Expansion expansion,
javax.ws.rs.core.UriInfo uriInfo) |
@NotNull T apply(@NotNull F input, @NotNull Expansion expansion, @NotNull javax.ws.rs.core.UriInfo uriInfo)
AbstractRestModel
. The resource will include links.input
- The domain object to transformexpansion
- The expansion to use when transforming the objecturiInfo
- URI info from the requestCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.