public class ContentNegotiation extends Object
Constructor and Description |
---|
ContentNegotiation() |
Modifier and Type | Method and Description |
---|---|
ContentNegotiation |
accept(MediaType contentType,
Throwing.Supplier<Object> supplier) |
ContentNegotiation |
accept(String contentType,
Throwing.Supplier<Object> supplier) |
ContentNegotiation |
accept(Throwing.Supplier<Object> fallback) |
Object |
render(Context ctx) |
Object |
render(String accept) |
public ContentNegotiation accept(String contentType, Throwing.Supplier<Object> supplier)
public ContentNegotiation accept(MediaType contentType, Throwing.Supplier<Object> supplier)
public ContentNegotiation accept(Throwing.Supplier<Object> fallback)
Copyright © 2019. All rights reserved.