public class Endpoint
extends java.lang.Object
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
withName(java.lang.String endpointName,
java.util.function.Supplier<T> f)
Used to wrap response creation with an HTTP endpoint name.
|
public static <T> T withName(java.lang.String endpointName, java.util.function.Supplier<T> f)
T
- return type of the functionendpointName
- the HTTP endpoint namef
- the function to performf
Cinnamon API. Copyright (c) 2015–2021 Lightbend.